/* ============================================================
   ExcelNinja.pro — style strony
   Paleta: #3e92cc (akcent) · #2a628f · #13293d · #16324f · #18435a
   ============================================================ */

:root {
  --accent:      #3e92cc;
  --blue-mid:    #2a628f;
  --navy-900:    #13293d;
  --navy-800:    #16324f;
  --navy-700:    #18435a;

  --bg:          #f4f7fa;
  --surface:     #ffffff;
  --text:        #13293d;
  --text-muted:  #4a6076;
  --border:      #dde6ee;

  --radius: 14px;
  --shadow: 0 2px 6px rgba(19, 41, 61, 0.06), 0 10px 30px rgba(19, 41, 61, 0.07);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

section { scroll-margin-top: 80px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }

h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }

p { margin-bottom: 1rem; }

a { color: var(--blue-mid); }

/* ---------- Nagłówek / nawigacja ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 41, 61, 0.97);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: #cddbe7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}

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

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  transition: background 0.15s;
}

.nav-links .nav-cta:hover { background: #5aa3d6; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(62, 146, 204, 0.28), transparent 65%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.hero-sub {
  color: #c3d3e0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 58ch;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #5aa3d6; }

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* Przycisk ghost na jasnym tle */
.section:not(.section-dark) .btn-ghost {
  border-color: var(--blue-mid);
  color: var(--blue-mid);
}

/* ---------- Sekcje ---------- */

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.section-alt { background: var(--surface); }

.section-dark {
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900));
  color: #fff;
}

.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: #c3d3e0; }

.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

/* ---------- O mnie ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.about-text p { font-size: 1.05rem; }

.about-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 320px;
  width: 100%;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.75rem;
}

.about-facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  display: grid;
  gap: 0.1rem;
}

.about-facts strong { font-size: 1rem; }

.about-facts span { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Karty szkoleń ---------- */

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.section-alt .card { background: var(--bg); }

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

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }

.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }

.card-highlight {
  background: var(--navy-800);
  border-color: var(--navy-700);
}

.card-highlight h3 { color: #fff; }
.card-highlight p { color: #c3d3e0; }
.card-highlight .card-icon { background: rgba(62, 146, 204, 0.18); }

.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* ---------- Analiza danych ---------- */

.analiza-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1rem;
}

.analiza-text p { font-size: 1.05rem; }

.analiza-text .btn { margin-top: 0.5rem; }

.mini-dash {
  background: linear-gradient(155deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.mini-dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.mini-kpi {
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-dash-chart {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--blue-mid);
}

.mini-bar-accent { background: var(--accent); }

/* ---------- Kontakt ---------- */

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

.contact-inner .section-lead { margin-inline: auto; }

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stopka ---------- */

.site-footer {
  background: var(--navy-900);
  color: #8ba3b8;
  font-size: 0.9rem;
  padding: 1.4rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a { color: #cddbe7; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Podstrona: raporty ---------- */

.page-hero {
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(62, 146, 204, 0.25), transparent 65%),
    linear-gradient(155deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 0.9rem; }

.page-hero p { color: #c3d3e0; max-width: 62ch; margin-bottom: 0; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  color: #8ba7bd;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb > span:first-of-type { opacity: 0.6; }

.report { margin-bottom: 4rem; }
.report:last-of-type { margin-bottom: 0; }

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.report-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin-bottom: 0;
}

.report-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 70ch;
  margin-bottom: 1.4rem;
}

.report-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.report-tags span {
  background: #e7f0f8;
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Lista raportów (teasery) ---------- */

.teasers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.report-teaser {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.report-teaser:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.teaser-visual {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0 20px,
      rgba(255, 255, 255, 0.06) 20px 40px
    ),
    linear-gradient(155deg, var(--navy-800), var(--navy-700));
  display: grid;
  place-items: center;
  color: var(--accent);
}

.teaser-visual svg { width: 64px; height: 64px; }

.teaser-body {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.teaser-body h2 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

.teaser-body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
  flex: 1;
}

.teaser-link {
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.25rem;
}

.teaser-link-btn { text-decoration: none; }
.teaser-link-btn:hover { text-decoration: underline; }

.report-teaser-empty {
  border-style: dashed;
  background: transparent;
}

.report-teaser-empty:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.report-teaser-empty .teaser-visual { opacity: 0.55; }

/* ---------- Blok "Zobacz też" na końcu listy raportów ---------- */

.see-also {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.see-also-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(62, 146, 204, 0.18);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.see-also-icon svg { width: 28px; height: 28px; }

.see-also-body { flex: 1; }

.see-also-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.35rem;
}

.see-also-body h3 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.see-also-body p {
  color: #c3d3e0;
  font-size: 0.95rem;
  margin: 0;
}

.see-also-arrow {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.see-also:hover .see-also-arrow { transform: translateX(4px); }

/* ---------- Info-box "Dostęp" na podstronie z prywatnym embedem ---------- */

.access-note {
  background: #fff7ed;
  border: 1px solid #f5d5a3;
  border-left: 4px solid #e08a3e;
  color: #6b4620;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.access-note strong { color: #b96a1c; }

/* ---------- Meta na dedykowanej podstronie raportu ---------- */

.report-embed-lg {
  margin-bottom: 2.5rem;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.report-meta > div p:last-child {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.report-meta .section-eyebrow { margin-bottom: 0.35rem; }

.back-home .btn { margin: 0 0.4rem; }

/* ---------- Stary embed (używany na dedykowanej podstronie) ---------- */

.report-embed,
.calendar-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow);
}

.calendar-embed {
  aspect-ratio: 16 / 10;
  margin-top: 1rem;
}

.report-embed iframe,
.calendar-embed iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.embed-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0 20px,
      rgba(255, 255, 255, 0.05) 20px 40px
    ),
    linear-gradient(155deg, var(--navy-800), var(--navy-700));
}

.embed-placeholder-inner {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.embed-placeholder-inner svg {
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.embed-placeholder-inner p {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.back-home {
  margin-top: 3.5rem;
  text-align: center;
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .analiza-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .reports { grid-template-columns: 1fr; }
  .teasers { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 12px 24px rgba(19, 41, 61, 0.35);
  }

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

  .nav-links li { text-align: center; }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
  }

  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .contact-actions .btn { width: 100%; justify-content: center; }
}
