/* =========================================================
   MediaSmart – Erasmus+ KA210-ADU
   Arkusz stylów strony projektu
   Kolory pochodzą z logo projektu (granat / indygo / turkus / pomarańcz)
   ========================================================= */

:root {
  --ms-navy: #1f2433;
  --ms-indigo: #2f3a9a;
  --ms-indigo-dark: #262e7a;
  --ms-teal: #14a3a3;
  --ms-teal-dark: #0f8484;
  --ms-teal-light: #e6f6f6;
  --ms-orange: #f5a623;
  --ms-grey: #5b6472;
  --ms-grey-light: #f4f6fa;
  --ms-border: #e3e7ee;
  --ms-radius: 1rem;
  --ms-shadow: 0 10px 30px rgba(31, 36, 51, 0.08);
  --ms-shadow-hover: 0 16px 40px rgba(31, 36, 51, 0.14);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ms-navy);
  background: #fff;
  line-height: 1.65;
}

h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.01em; color: var(--ms-navy); }
a { color: var(--ms-teal-dark); }
a:hover { color: var(--ms-indigo); }

.text-teal { color: var(--ms-teal) !important; }
.text-indigo { color: var(--ms-indigo) !important; }
.bg-light-soft { background: var(--ms-grey-light); }

.section { padding: 5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }

.section-title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); margin-bottom: 0.75rem; }
.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-teal);
  margin-bottom: 0.75rem;
}
.section-lead { font-size: 1.1rem; color: var(--ms-grey); max-width: 760px; }

/* ---------- Przyciski ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: 0.7rem 1.5rem; }
.btn-teal { background: var(--ms-teal); border-color: var(--ms-teal); color: #fff; }
.btn-teal:hover, .btn-teal:focus { background: var(--ms-teal-dark); border-color: var(--ms-teal-dark); color: #fff; }
.btn-outline-light { border-width: 2px; }
.btn-indigo { background: var(--ms-indigo); border-color: var(--ms-indigo); color: #fff; }
.btn-indigo:hover { background: var(--ms-indigo-dark); border-color: var(--ms-indigo-dark); color: #fff; }

/* ---------- Nawigacja ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ms-border);
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: 0 6px 20px rgba(31, 36, 51, 0.08); }
.navbar-brand img { height: 46px; width: auto; }
.navbar .nav-link {
  font-weight: 700;
  color: var(--ms-navy);
  padding: 0.5rem 0.8rem !important;
  border-radius: 999px;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--ms-teal-dark); background: var(--ms-teal-light); }

.lang-switch { display: flex; gap: 0.25rem; align-items: center; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 32px;
  border-radius: 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em;
  color: var(--ms-grey); text-decoration: none;
  border: 1px solid var(--ms-border);
}
.lang-switch a:hover { color: var(--ms-indigo); border-color: var(--ms-indigo); }
.lang-switch a.active { background: var(--ms-indigo); border-color: var(--ms-indigo); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(20, 163, 163, 0.18), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(47, 58, 154, 0.16), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47, 58, 154, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 58, 154, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--ms-border);
  border-radius: 999px; padding: 0.4rem 1rem;
  font-size: 0.85rem; font-weight: 700; color: var(--ms-indigo);
  box-shadow: var(--ms-shadow);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ms-teal); }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.12; margin: 1.25rem 0 1rem; }
.hero h1 span { color: var(--ms-teal); }
.hero p.lead { color: var(--ms-grey); font-size: 1.15rem; max-width: 620px; }
.hero-logo { max-width: 520px; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(31, 36, 51, 0.12)); }

.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; max-width: 560px; }
@media (min-width: 576px) { .hero-facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  background: #fff; border: 1px solid var(--ms-border); border-radius: 0.9rem;
  padding: 0.9rem 1rem; box-shadow: var(--ms-shadow);
}
.fact strong { display: block; font-size: 1.35rem; color: var(--ms-indigo); line-height: 1.1; }
.fact span { font-size: 0.78rem; color: var(--ms-grey); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Karty ogólne ---------- */
.card-soft {
  background: #fff; border: 1px solid var(--ms-border); border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow-hover); }
.icon-circle {
  width: 54px; height: 54px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ms-teal-light); color: var(--ms-teal-dark); font-size: 1.5rem;
}
.icon-circle.indigo { background: #e9ebf7; color: var(--ms-indigo); }
.icon-circle.orange { background: #fff3df; color: #c77d0a; }

.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.9rem; margin-bottom: 0.55rem; }
.list-check li::before {
  content: "\F26B"; /* bootstrap icon: check2-circle */
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: 0.1rem;
  color: var(--ms-teal); font-weight: 700;
}

/* ---------- Działania ---------- */
.activity-card { border-top: 6px solid var(--ms-teal); }
.activity-card.a1 { border-top-color: var(--ms-indigo); }
.activity-card.a2 { border-top-color: var(--ms-teal); }
.activity-card.a3 { border-top-color: var(--ms-orange); }
.activity-card.a4 { border-top-color: #d64561; }
.activity-code {
  display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem; border-radius: 999px; color: #fff; background: var(--ms-teal);
}
.a1 .activity-code { background: var(--ms-indigo); }
.a3 .activity-code { background: var(--ms-orange); }
.a4 .activity-code { background: #d64561; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; color: var(--ms-grey); }
.activity-meta i { color: var(--ms-teal-dark); margin-right: 0.3rem; }
.activity-budget { font-size: 1.4rem; font-weight: 800; color: var(--ms-indigo); }

.budget-bar { height: 12px; border-radius: 999px; background: var(--ms-border); overflow: hidden; display: flex; }
.budget-bar span { height: 100%; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.88rem; }
.budget-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.4rem; vertical-align: -1px; }

/* ---------- Harmonogram ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.6rem; top: 0.4rem; bottom: 0.4rem;
  width: 3px; background: linear-gradient(var(--ms-indigo), var(--ms-teal), var(--ms-orange), #d64561);
  border-radius: 3px;
}
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.2rem; top: 0.35rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: #fff; border: 4px solid var(--ms-teal);
  box-shadow: 0 0 0 4px #fff;
}
.timeline-item.a1::before { border-color: var(--ms-indigo); }
.timeline-item.a3::before { border-color: var(--ms-orange); }
.timeline-item.a4::before { border-color: #d64561; }
.timeline-item.milestone::before { border-color: var(--ms-navy); width: 1rem; height: 1rem; left: -2.05rem; top: 0.5rem; }
.timeline-date { font-weight: 800; color: var(--ms-indigo); font-size: 0.9rem; letter-spacing: 0.03em; }
.timeline-item h5 { margin: 0.2rem 0 0.3rem; font-size: 1.1rem; }
.timeline-item p { margin: 0; color: var(--ms-grey); }

.year-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 2rem; }
.year-strip div {
  text-align: center; font-weight: 800; padding: 0.6rem; border-radius: 0.75rem;
  background: var(--ms-teal-light); color: var(--ms-teal-dark);
}

/* ---------- Partnerzy ---------- */
.partner-logo {
  height: 110px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 0.75rem; border: 1px dashed var(--ms-border); margin-bottom: 1rem; padding: 0.6rem;
}
.partner-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.partner-logo .text-logo {
  font-weight: 800; font-size: 1.1rem; color: var(--ms-indigo); text-align: center; line-height: 1.2;
}
.partner-role {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--ms-teal-light); color: var(--ms-teal-dark); margin-bottom: 0.6rem;
}
.partner-role.coord { background: #e9ebf7; color: var(--ms-indigo); }
.partner-flag { font-size: 1.3rem; margin-right: 0.3rem; }

/* ---------- Rezultaty ---------- */
.stat-tile {
  background: linear-gradient(135deg, var(--ms-indigo), var(--ms-teal));
  color: #fff; border-radius: var(--ms-radius); padding: 1.5rem; height: 100%;
}
.stat-tile strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-tile span { font-size: 0.9rem; opacity: 0.92; }
.stat-tile.light { background: #fff; color: var(--ms-navy); border: 1px solid var(--ms-border); box-shadow: var(--ms-shadow); }
.stat-tile.light strong { color: var(--ms-teal-dark); }
.stat-tile.light span { color: var(--ms-grey); }

/* ---------- Aktualności ---------- */
.news-card .news-date {
  font-size: 0.8rem; font-weight: 800; color: var(--ms-teal-dark); letter-spacing: 0.06em; text-transform: uppercase;
}
.news-card .news-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.6rem;
  border-radius: 999px; background: #e9ebf7; color: var(--ms-indigo); margin-left: 0.5rem;
}
.news-cover {
  height: 150px; border-radius: var(--ms-radius) var(--ms-radius) 0 0;
  display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff;
  background: linear-gradient(135deg, var(--ms-indigo), var(--ms-teal));
}
.news-cover.orange { background: linear-gradient(135deg, var(--ms-orange), #d64561); }
.news-cover.teal { background: linear-gradient(135deg, var(--ms-teal), #4cc9c9); }

/* ---------- Kontakt ---------- */
.form-control, .form-select { border-radius: 0.75rem; padding: 0.75rem 1rem; border-color: var(--ms-border); }
.form-control:focus, .form-select:focus { border-color: var(--ms-teal); box-shadow: 0 0 0 0.25rem rgba(20, 163, 163, 0.18); }
.contact-box { background: var(--ms-navy); color: #fff; border-radius: var(--ms-radius); padding: 2rem; height: 100%; }
.contact-box a { color: #8fe3e3; }
.contact-box .ci { display: flex; gap: 0.9rem; margin-bottom: 1.1rem; }
.contact-box .ci i { font-size: 1.3rem; color: var(--ms-teal); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Stopka ---------- */
footer { background: #f7f9fc; border-top: 1px solid var(--ms-border); padding: 3rem 0 1.5rem; font-size: 0.92rem; }
footer .eu-logo { max-width: 260px; width: 100%; height: auto; }
footer .disclaimer { color: var(--ms-grey); font-size: 0.85rem; }
footer .project-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700;
  background: #fff; border: 1px dashed var(--ms-teal); padding: 0.2rem 0.6rem; border-radius: 6px;
}
footer .partner-links a { color: var(--ms-navy); font-weight: 700; text-decoration: none; }
footer .partner-links a:hover { color: var(--ms-teal-dark); }
footer .cc img { height: 28px; }

/* ---------- Przycisk "do góry" ---------- */
#toTop {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 1030;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ms-indigo); color: #fff; font-size: 1.2rem;
  box-shadow: var(--ms-shadow-hover); opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------- Animacja pojawiania ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
