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

:root {
  --color-dark-blue: #003C52;
  --color-blue: #3095B4;
  --color-yellow: #FAB600;
  --color-yellow-hover: #E5A600;
  --color-grey-1: #EDF1F3;
  --color-grey-2: #E5EBED;
  --color-lila: #FBDFEA;
  --color-red: #ED6C53;
  --color-middle-blue: #00577A;
  --color-white: #ffffff;
  --color-muted: #7A929D;
  --color-placeholder: #9BAFB9;
  --color-yellow-light: rgba(250, 182, 0, 0.15);
  --color-red-light: rgba(237, 108, 83, 0.15);
  --color-blue-light: rgba(48, 149, 180, 0.15);
  --color-lila-light: rgba(251, 223, 234, 0.5);
  --color-grey-light: var(--color-grey-1);
  --shadow-sm: 0 4px 16px rgba(0, 60, 82, 0.18);
  --shadow-md: 0 8px 40px rgba(0, 60, 82, 0.1);
  --shadow-lg: 0 12px 36px rgba(0, 60, 82, 0.1);
  --font-main: 'Nunito Sans', sans-serif;
  --font-heading: 'Be Vietnam Pro', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--color-dark-blue);
  line-height: 1.6;
  background: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-grey-2);
  padding: 16px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo svg, .nav-logo img {
  height: 64px;
  width: auto;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-yellow);
  color: var(--color-dark-blue);
}

.btn-primary:hover {
  background: var(--color-yellow-hover);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: var(--color-lila);
  border-radius: 50%;
  opacity: 0.35;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: var(--color-yellow);
  opacity: 0.2;
  border-radius: 12px;
  transform: rotate(15deg);
}

.hero-decor-circle-red {
  position: absolute;
  top: 60px;
  left: 5%;
  width: 80px;
  height: 80px;
  background: var(--color-red);
  opacity: 0.12;
  border-radius: 50%;
}

.hero-decor-rect-blue {
  position: absolute;
  bottom: 100px;
  right: 8%;
  width: 120px;
  height: 60px;
  background: var(--color-blue);
  opacity: 0.1;
  border-radius: var(--radius-sm);
}

.hero-decor-ring-yellow {
  position: absolute;
  top: 40%;
  right: 15%;
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-yellow);
  opacity: 0.2;
  border-radius: 50%;
}

.hero-decor-stairs {
  position: absolute;
  bottom: 40px;
  right: 4%;
  opacity: 0.08;
}

.hero-decor-stairs div {
  width: 40px;
  height: 40px;
  background: var(--color-blue);
}

.hero-decor-stairs div:nth-child(1) { margin-left: 80px; }
.hero-decor-stairs div:nth-child(2) { margin-left: 40px; }

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-red);
  background: var(--color-red-light);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--color-blue);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-middle-blue);
  margin-bottom: 36px;
  max-width: 520px;
}

/* ===== Form ===== */
.signup-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-grey-2);
  max-width: 460px;
}

.signup-form h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-grey-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-dark-blue);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--color-blue);
}

.form-group input::placeholder {
  color: var(--color-placeholder);
}

.signup-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 12px;
  text-align: center;
}

.form-note a {
  color: var(--color-blue);
  text-decoration: underline;
}

.form-note a:hover {
  color: var(--color-dark-blue);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px 16px;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--color-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-dark-blue);
  fill: none;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-middle-blue);
  font-size: 0.95rem;
}

.form-error {
  display: none;
  font-size: 0.85rem;
  color: var(--color-red);
  text-align: center;
  margin-top: 12px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Sections shared ===== */
section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-label-blue { color: var(--color-blue); }
.section-label-red { color: var(--color-red); }
.section-label-yellow { color: var(--color-yellow); }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-middle-blue);
  max-width: 580px;
  margin-bottom: 48px;
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }

/* ===== Subpage Cards ===== */
.subpages {
  background: var(--color-grey-1);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--color-grey-2);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-middle-blue);
  line-height: 1.65;
}

.card-yellow .card-accent { background: var(--color-yellow); }
.card-yellow .card-number { background: var(--color-yellow-light); }

.card-red .card-accent { background: var(--color-red); }
.card-red .card-number { background: var(--color-red-light); }

.card-blue .card-accent { background: var(--color-blue); }
.card-blue .card-number { background: var(--color-blue-light); }

/* ===== Webinar ===== */
.webinar {
  background: var(--color-white);
}

.webinar-card {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-middle-blue) 100%);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.webinar-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--color-blue);
  border-radius: 50%;
  opacity: 0.15;
}

.webinar-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 20%;
  width: 120px;
  height: 120px;
  background: var(--color-yellow);
  border-radius: 50%;
  opacity: 0.1;
}

.webinar-card .section-label {
  color: var(--color-yellow);
}

.webinar-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
}

.webinar-points {
  list-style: none;
  position: relative;
}

.webinar-points li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.webinar-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  opacity: 0.8;
}

.webinar-points li:nth-child(1)::before { background: var(--color-yellow); }
.webinar-points li:nth-child(2)::before { background: var(--color-red); }
.webinar-points li:nth-child(3)::before { background: var(--color-lila); }
.webinar-points li:nth-child(4)::before { background: var(--color-blue); }
.webinar-points li:nth-child(5)::before { background: var(--color-yellow); }

.webinar-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  border-left: 3px solid var(--color-yellow);
}

.webinar-accent-bar {
  display: flex;
  height: 5px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  margin: -48px -40px 32px;
  position: relative;
}

.webinar-accent-bar span { flex: 1; }
.webinar-accent-bar span:nth-child(1) { background: var(--color-yellow); }
.webinar-accent-bar span:nth-child(2) { background: var(--color-red); }
.webinar-accent-bar span:nth-child(3) { background: var(--color-lila); }
.webinar-accent-bar span:nth-child(4) { background: var(--color-blue); }

/* ===== Dla kogo ===== */
.audience {
  background: var(--color-grey-1);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-2);
  transition: transform 0.3s;
}

.audience-item:hover {
  transform: translateX(6px);
}

.audience-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-icon svg {
  width: 26px;
  height: 26px;
}

.audience-icon-yellow { background: var(--color-yellow-light); }
.audience-icon-red { background: var(--color-red-light); }
.audience-icon-blue { background: var(--color-blue-light); }
.audience-icon-lila { background: var(--color-lila-light); }

.audience-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.audience-item p {
  font-size: 0.9rem;
  color: var(--color-middle-blue);
}

/* ===== Author Section ===== */
.author-section {
  background: var(--color-white);
}

.author-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: var(--color-grey-1);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
}

.author-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.author-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.author-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.author-bio {
  font-size: 1rem;
  color: var(--color-middle-blue);
  line-height: 1.7;
}

.author-bio p {
  margin-bottom: 12px;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .nav-logo svg, .nav-logo img { height: 44px; }
  .nav .btn { font-size: 0.82rem; padding: 10px 18px; }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .author-photo {
    width: 160px;
    height: 160px;
  }
}

/* ===== CTA Section ===== */
.audience + .cta-section {
  padding-top: 20px;
}

.cta-section {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: var(--color-lila);
  border-radius: 50%;
  opacity: 0.25;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: var(--color-yellow);
  opacity: 0.15;
  border-radius: 12px;
  transform: rotate(20deg);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-inner .section-title {
  max-width: 600px;
}

.cta-inner .signup-form {
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo svg, .footer-logo img {
  height: 30px;
  width: auto;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content { max-width: none; }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signup-form { max-width: 440px; }
}

@media (min-width: 1024px) {
  section { padding: 100px 0; }

  .hero { padding: 100px 0 120px; }

  .nav-logo svg, .nav-logo img { height: 72px; }

  .webinar-card { padding: 56px 52px; }

  .webinar-accent-bar {
    margin: -56px -52px 40px;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-text { text-align: right; }
}

/* ===== Subpage & Archive — newsletter card layout ===== */
.sub-wrapper { background: var(--color-grey-1); padding: 40px 16px 60px; }
.sub-card { background: var(--color-white); border-radius: 12px; max-width: 620px; margin: 0 auto 40px; overflow: hidden; }
.sub-card[hidden] { display: none; }
.sub-accent { height: 5px; }
.sub-header { padding: 32px 40px 0; text-align: center; }
.sub-badge { display: inline-block; font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 5px 14px; border-radius: 16px; margin-bottom: 16px; color: var(--color-dark-blue); }
.sub-header h1, .sub-header h2 { font-size: clamp(1.4rem, 3.5vw, 1.65rem); font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.sub-intro { font-size: 0.95rem; line-height: 1.7; color: var(--color-middle-blue); }
.sub-divider { border: none; border-top: 1px solid var(--color-grey-2); margin: 28px 40px 0; }
.sub-body { padding: 28px 40px 32px; font-size: 0.95rem; line-height: 1.7; color: var(--color-dark-blue); }

/* Sections inside card */
.sub-block { margin-bottom: 16px; }
.sub-block p, .sub-block > div { margin: 0 0 16px; }
.sub-block p:last-child, .sub-block > div:last-child { margin-bottom: 0; }
.sub-block h3 { font-size: 1.12rem; margin-bottom: 16px; font-weight: 700; }
.sub-highlight, .sub-box { padding: 20px 24px; border-radius: 10px; margin-bottom: 20px; }
.sub-highlight strong.sub-num { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--color-middle-blue); }
.sub-highlight h4 { font-size: 1rem; font-weight: 700; margin: 4px 0 10px; }
.sub-highlight p, .sub-highlight div { color: var(--color-middle-blue); }
.sub-box p, .sub-box > div { color: var(--color-middle-blue); margin: 0 0 12px; }
.sub-box p:last-child, .sub-box > div:last-child { margin-bottom: 0; }
.sub-box ul, .sub-box ol { color: var(--color-middle-blue); padding-left: 20px; margin: 0; }
.sub-box li { padding: 2px 0; }
.sub-border-items { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.sub-border-item { padding: 12px 16px; border-left: 3px solid; font-size: 0.95rem; line-height: 1.6; }
.sub-outro { padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--color-grey-2); }
.sub-outro p, .sub-outro > div { margin: 0 0 16px; }
.sub-outro p:last-child, .sub-outro > div:last-child { margin-bottom: 0; }

/* Table of contents */
.sub-toc { max-width: 620px; margin: 0 auto 24px; }
.sub-toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sub-toc a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; color: var(--color-dark-blue); text-decoration: none; background: var(--color-white); border: 1px solid var(--color-grey-2); transition: background 0.15s, border-color 0.15s; }
.sub-toc a:hover { border-color: var(--color-middle-blue); }
.sub-toc a.sub-toc--active { border-color: var(--color-dark-blue); }
.sub-toc-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 12px; color: var(--color-dark-blue); }

@media (max-width: 620px) {
  .sub-header { padding: 24px 20px 0; }
  .sub-divider { margin: 20px 20px 0; }
  .sub-body { padding: 20px 20px 24px; }
}
