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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: #111;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  background: #f5f5f5;
  padding: 6rem 2rem 4rem;
  text-align: center;
  cursor: default;
  user-select: none;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}
.cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta .btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #111;
  border-radius: 6px;
  background: #111;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  min-width: 170px;
}

.cta .btn.outline {
  background: #fff;
  color: #111;
}

.cta .btn:hover,
.cta .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.cta .btn:not(.outline):hover,
.cta .btn:not(.outline):focus-visible {
  background: #fff;
  color: #111;
}

.cta .btn.outline:hover,
.cta .btn.outline:focus-visible {
  background: #111;
  color: #fff;
}

/* About */
.about-cards {
  background-color: #fff;
  padding: 5rem 2rem;
}

.about-card-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr; /* domyślnie jedna kolumna (mobile) */
}

/* Desktop: dokładnie 2 kolumny */
@media (min-width: 900px) {
  .about-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-card:nth-child(3) {
    grid-column: 1 / -1; /* trzecia na pełną szerokość */
  }
}

.about-card {
  background: linear-gradient(145deg, #ffffff, #f2f4f7);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  /* usuń pozostałości po flexie: */
  max-width: none;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  background: linear-gradient(145deg, #ffffff, #eef1f5);
}

.about-card i {
  font-size: 2.8rem;
  color: #007bff;
  margin-bottom: 1.2rem;
  display: block;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #111;
  cursor: default;
  user-select: none;
}

.about-card p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.75;
  cursor: default;
  user-select: none;
}

/* Projects */
.projects {
  background: #f9f9f9;
  padding: 4rem 2rem;
  cursor: default;
  user-select: none;
}
.projects .eyebrow {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.25rem;
}

.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}
.projects h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, #007bff, #60a5fa);
  border-radius: 3px;
}

.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  width: 320px;
  text-align: left;
  transition: 0.3s ease;
  cursor: default;
  user-select: none;
  flex: 1 1 calc(33.333% - 2rem);
  max-width: 350px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
  flex: 1;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #0f172a;
}

.card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  text-align: center;
}
.card .tags {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin: 0.5rem 0 1rem;
  text-align: center;
}

.card a {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  margin-top: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 640px) and (max-width: 991px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Technologie */
.tech-stack {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
  cursor: default;
  user-select: none;
}
.tech-stack .eyebrow {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.25rem;
}
.tech-stack h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, #007bff, #60a5fa);
  border-radius: 3px;
}

.tech-stack h2 {
  font-size: 1.7rem;
  margin-bottom: 3.5rem;
}

.tech-stack .note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech {
  background: #f0f0f0;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tech.strong {
  background: #007bff;
  color: white;
  font-weight: 600;
}

/* Zainteresowania */

.interests {
  background: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
  cursor: default;
  user-select: none;
}
.interests .eyebrow {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.25rem;
}
.interests h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, #007bff, #60a5fa);
  border-radius: 3px;
}

.interests h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.interest-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .interest-grid {
    flex-wrap: wrap;
  }
}

.interest {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  flex: 0 1 300px;
  transition: 0.3s ease;
  text-align: left;
}

.interest:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.interest i {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.interest h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  cursor: default;
  user-select: none;
  text-align: center;
}

.interest p {
  line-height: 1.65;
  font-size: 1rem;
  color: #3a3a3a;
  max-width: 56ch;
  text-align: center;
}

@media (max-width: 640px) {
  .interest {
    text-align: center;
  }
  .interest i {
    margin-left: auto;
    margin-right: auto;
  }
  .interest p {
    margin-left: auto;
    margin-right: auto;
  }
}

.interest:hover {
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: #0f0f10;
  color: #fff;
  padding: 3.25rem 1rem 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #cfcfcf;
  letter-spacing: 0.2px;
  cursor: default;
  user-select: none;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #a6a6a6;
  margin-bottom: 1.6rem;
  font-style: italic;
  cursor: default;
  user-select: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.96rem;
  gap: 1.5rem 2.25rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0.1rem;
  outline: 0;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  opacity: 0.85;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-links a:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
  border-radius: 6px;
}

@media (max-width: 480px) {
  .footer-links {
    gap: 1rem 1.5rem;
    font-size: 1rem;
  }
  footer {
    padding: 2.75rem 1rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-links a,
  .footer-links a::after {
    transition: none;
  }
}

/* mockbank */

/* spójne przyciski w całej podstronie -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 91, 187, 0.35);
}

.btn.outline {
  background: #fff;
  color: #0f172a;
  border-color: #d6d9e0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.btn.outline:hover {
  background: #f7f8fb;
  border-color: #c7cbd6;
}

/* przyciski w .project-links mają odstęp także na mobile */
.project-links {
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Notka o Renderze (cold start) */
.note-warn {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid #ffe2a8;
  background: #fff8e6;
  color: #5a4200;
  border-radius: 10px;
  text-align: center;
  font-size: 0.98rem;
}

/* pre/code – bardziej czytelne */
.o-projekcie pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.8rem;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.o-projekcie code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

/* Layout kart endpointów */
.endpoints-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 960px) {
  .endpoints-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.endpoints-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.25rem 1rem;
}

/* Niebieskie nagłówki w kartach (spójne z innymi sekcjami) */
.endpoints-card h3 {
  margin: 0.25rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d4ed8; /* ten sam odcień co w "Co potrafi MockBank" */
  text-align: center;
  border-bottom: 1px solid #dbe3ff;
  padding-bottom: 0.6rem;
}
.endpoints-card h4 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: #0f172a;
  font-weight: 700;
}

/* Pojedyncza linia endpointu */
.ep {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #f7f8fb;
  border: 1px solid #eceef4;
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.5rem;
}
.ep code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.92rem;
}

/* Wersja "stacked" na listy nagłówków itp. */
.ep.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.ep.stacked code {
  background: #fff;
  border: 1px dashed #e5e7eb;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}

/* Badge z metodą HTTP */
.verb {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #0f172a;
  background: #e8eefc; /* domyślnie niebieskawy */
  border-color: #d6e2ff;
}
.verb.get {
  background: #eaf7ef;
  border-color: #cfe9d8;
}
.verb.post {
  background: #e8eefc;
  border-color: #d6e2ff;
}

/* Drobne etykiety i notatki */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.note {
  font-size: 0.85rem;
  color: #475569;
}

/* Ujednolicenie odstępów z resztą strony */
.endpoints-card .ep-group + .ep-group {
  margin-top: 0.8rem;
}

/* --- Endpointy: wyróżnione tytuły grup (Auth, Konta, itp.) --- */
.endpoints-card h4 {
  /* wygląd „pigułki” */
  display: inline-block;
  margin: 1rem auto 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff; /* jasny niebieski */
  border: 1px solid #dbe3ff;
  color: #1d4ed8; /* ten sam niebieski co H3 */
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* wyśrodkowanie w karcie */
.endpoints-card {
  text-align: left; /* domyślnie treść po lewej */
}
.endpoints-card .ep-group {
  text-align: center; /* tytuł grupy na środek... */
}
.endpoints-card .ep-group > .ep {
  text-align: left; /* ...ale same endpointy nadal wyrównane do lewej */
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* delikatny separator między grupami dla czytelności */
.endpoints-card .ep-group + .ep-group {
  border-top: 1px dashed #e8ecff;
  padding-top: 0.9rem;
}

/* zwężenie chipów metod na mobile, żeby ładnie się mieściły */
@media (max-width: 520px) {
  .verb {
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
  }
  .endpoints-card h4 {
    font-size: 0.9rem;
  }
}

.data-format {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.data-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  max-width: 700px;
}
.data-card h3 {
  text-align: center;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #dbe3ff;
  padding-bottom: 0.5rem;
}
.data-card pre {
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.data-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.9rem;
}
.data-card p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.data-card .note {
  background: #f9fafc;
  border-left: 4px solid #1d4ed8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #475569;
}

/* --- Environment: layout dwóch kart --- */
.env-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 960px) {
  .env-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.env-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.25rem 1rem;
}
.env-card h3 {
  margin: 0.25rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d4ed8; /* spójny niebieski */
  text-align: center;
  border-bottom: 1px solid #dbe3ff;
  padding-bottom: 0.6rem;
}

/* „pigułki” po lewej */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.85rem;
  justify-content: center;
}
.pill-list li {
  background: #f7f8fb;
  border: 1px solid #eceef4;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.92rem;
  color: #0f172a;
}

/* pre/code w tej sekcji – ciemny blok jak w innych */
.env-card pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 10px;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  margin: 0;
}
.env-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

/* mniejsza wersja ostrzeżenia (reuse .note-warn z wcześniejszego patcha) */
.note-warn.small {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
/* Pojedyncza karta deploymentu na środku */
.env-card.single {
  max-width: 860px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.25rem 1rem;
}
.env-card.single h3 {
  margin: 0.25rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d4ed8;
  text-align: center;
  border-bottom: 1px solid #dbe3ff;
  padding-bottom: 0.6rem;
}
.muted {
  text-align: center;
  color: #64748b;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.inline-link {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.inline-link:hover {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.demo-note {
  margin: 2.5rem auto 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  max-width: 860px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.demo-note h3 {
  margin-bottom: 0.75rem;
  color: #1d4ed8;
  text-align: center;
  font-weight: 600;
}
.demo-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0.75rem 0 0.5rem;
}
.demo-credentials .label {
  display: inline-block;
  min-width: 120px;
  font-weight: 600;
  color: #374151;
}
@media (max-width: 640px) {
  .demo-credentials {
    grid-template-columns: 1fr;
  }
}
.note-warn.small {
  font-size: 0.95rem;
}
.btn.primary {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  color: #fff;
}
.btn.secondary {
  background: #111;
  color: #fff;
}
.btn.primary,
.btn.secondary {
  padding: 0.8rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary:hover,
.btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* Prostsze listy tylko dla sekcji UI */
.ui-plain .list-plain {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.ui-plain .list-plain li {
  margin: 0.4rem 0;
  line-height: 1.7;
  color: #2a2a2a;
}

.ui-plain .column p {
  margin-bottom: 0.75rem;
}

.ui-plain h3 {
  text-align: center;
  margin-bottom: 0.75rem;
}

/* --- Demo card --- */
.demo-note {
  background: #fff;
  border: 1px solid #e8e8ee;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 0.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.demo-note h3 {
  text-align: center;
  margin: 0 0 0.35rem;
  color: #2563eb; /* niebieski akcent */
}

.demo-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0.65rem 0 1rem;
}
@media (max-width: 640px) {
  .demo-credentials {
    grid-template-columns: 1fr;
  }
}

.demo-credentials .label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #eef3ff;
  color: #2343c2;
  margin-right: 0.5rem;
}

.demo-credentials code {
  background: #f7f7fb;
  border: 1px solid #ececf4;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

/* --- Linki/przyciski w rzędzie --- */
.project-links--row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
@media (max-width: 700px) {
  .project-links--row {
    grid-template-columns: 1fr;
  }
}

/* Bazowa klasa przycisku */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.2px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

/* Warianty */
.btn-primary {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.33);
}

.btn-github {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.25);
}
.btn-github:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.33);
}

.btn-outline {
  background: #ffffff;
  color: #1f2937;
  border-color: #d7d8df;
}
.btn-outline:hover {
  border-color: #2563eb;
  color: #0f1d40;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.12);
}

/* Drobne ujednolicenie linku w tekście */
.inline-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover {
  color: #1d4ed8;
}

.card {
  position: relative;
  overflow: hidden;
}

.ribbon {
  position: absolute;
  top: 28px;
  right: -35px;
  width: 210px;
  background: linear-gradient(135deg, #ff7b7b, #ff4b4b);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 0;
  transform: rotate(38deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 2;
  line-height: 1.2;
  white-space: pre-line;
}

.lang-switch {
  position: absolute;
  right: 40px;
  top: 30px;

  display: flex;
  align-items: center;
  gap: 0.35rem;

  font-size: 0.9rem;
  color: #6b7280;
}

.lang-switch .current {
  font-weight: 600;
  color: #111827;
}

.lang-switch .divider {
  opacity: 0.5;
}

.lang-switch a {
  text-decoration: none;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  transition: 0.15s ease;
}

.lang-switch a:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #eff6ff;
}
