﻿/* ======================================== 
  style.css – zoptymalizowany odpowiednik Tailwind 
  dla strony ZPUH ROAD (Wersja 100/100)
======================================== */

/* Reset i podstawy */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1f2937; background-color: #f8fafc; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }

/* Kontenery */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* Utility classes – spacing */
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; } .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; } .px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-2 { padding-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; } .mb-20 { margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.ml-1 { margin-left: 0.25rem; } .mx-auto { margin-left: auto; margin-right: auto; }
.space-x-2 > * + * { margin-left: 0.5rem; } .space-x-3 > * + * { margin-left: 0.75rem; } .space-x-4 > * + * { margin-left: 1rem; } .space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; } .space-y-3 > * + * { margin-top: 0.75rem; } .space-y-4 > * + * { margin-top: 1rem; } .space-y-8 > * + * { margin-top: 2rem; }
.gap-1 { gap: 0.25rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; }

/* Flexbox */
.flex { display: flex; } .inline-flex { display: inline-flex; } .flex-col { flex-direction: column; } .flex-row { flex-direction: row; } .flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; } .items-center { align-items: center; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Width / Height */
.w-full { width: 100%; } .w-4 { width: 1rem; } .w-6 { width: 1.5rem; }
.h-4 { height: 1rem; } .h-6 { height: 1.5rem; } .h-20 { height: 5rem; } .h-48 { height: 12rem; } .h-screen { height: 100vh; } .min-h-screen { min-height: 100vh; }
.max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; } .max-w-5xl { max-width: 64rem; } .max-w-7xl { max-width: 80rem; } .max-w-xl { max-width: 36rem; }

/* Typografia */
.font-sans { font-family: 'Inter', sans-serif; } .font-display { font-family: 'Oswald', sans-serif; }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; }
@media (min-width: 768px) { .md\:text-2xl { font-size: 1.5rem; } .md\:text-6xl { font-size: 3.75rem; } }
.font-light { font-weight: 300; } .font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; } .leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; } .text-left { text-align: left; } .underline { text-decoration: underline; }

/* Kolory */
.text-white { color: #ffffff; } .text-gray-200 { color: #e5e7eb; } .text-gray-300 { color: #d1d5db; } .text-gray-500 { color: #6b7280; } .text-gray-600 { color: #4b5563; } .text-gray-700 { color: #374151; } .text-gray-800 { color: #1f2937; } .text-dark { color: #0f172a; } .text-primary { color: #FF6B00; } .text-secondary { color: #1E3A8A; }
.hover\:text-primary:hover { color: #FF6B00; } .hover\:text-yellow-300:hover { color: #fcd34d; } .hover\:text-white:hover { color: #ffffff; } .hover\:text-dark:hover { color: #0f172a; }

/* Tła */
.bg-white { background-color: #ffffff; } .bg-black { background-color: #000000; } .bg-dark { background-color: #0f172a; } .bg-gray-50 { background-color: #f9fafb; } .bg-gray-900 { background-color: #111827; } .bg-neutral-900 { background-color: #171717; } .bg-neutral-950 { background-color: #0a0a0a; } .bg-primary { background-color: #FF6B00; } .bg-\[\#8B1E1E\] { background-color: #8B1E1E; }
.hover\:bg-\[\#6B0F0F\]:hover { background-color: #6B0F0F; } .bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); } .bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); } .bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); } .bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); } .bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); } .hover\:bg-white:hover { background-color: #ffffff; }
.backdrop-blur { backdrop-filter: blur(8px); } .backdrop-blur-md { backdrop-filter: blur(12px); } .backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Obramowania */
.border { border-width: 1px; border-style: solid; } .border-2 { border-width: 2px; } .border-t { border-top-width: 1px; }
.border-white { border-color: #ffffff; } .border-white\/10 { border-color: rgba(255, 255, 255, 0.1); } .border-white\/40 { border-color: rgba(255, 255, 255, 0.4); } .border-gray-100 { border-color: #f3f4f6; } .border-gray-500 { border-color: #6b7280; } .border-neutral-700 { border-color: #404040; } .border-neutral-800 { border-color: #262626; }
.rounded { border-radius: 0.25rem; } .rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: 0.75rem; } .rounded-2xl { border-radius: 1rem; } .rounded-full { border-radius: 9999px; }

/* Cienie */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); } .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } .shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); } .shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Pozycjonowanie i Overflow */
.absolute { position: absolute; } .relative { position: relative; } .fixed { position: fixed; } .inset-0 { top: 0; right: 0; bottom: 0; left: 0; } .top-0 { top: 0; } .right-0 { right: 0; } .z-10 { z-index: 10; } .z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; } .object-cover { object-fit: cover; }

/* Transformacje i animacje */
.transform { transform: translate(0); } .hover\:scale-105:hover { transform: scale(1.05); } .transition { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Efekty specjalne */
.hero-gradient { background: linear-gradient(135deg, rgba(15,23,42,0.65), rgba(30,58,138,0.55)); }

/* Karty (NAPRAWIONY KONTRAST) */
.card-hover {
  transition: all 0.3s ease;
  /* Usunięto czarne tło i sztywną ramkę. HTML nadaje klasę bg-white, co rozwiązuje problem kontrastu. */
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* Nav link */
.nav-link {
  position: relative;
  color: white;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #8B1E1E;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}/* Listy */
.list-disc { list-style-type: disc; } .list-inside { list-style-position: inside; }

/* Lang item */
.lang-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background-color: #1f2937; color: #ffffff; font-weight: 600; transition: all 0.2s ease; }
.lang-item:hover { background-color: #374151; }
.lang-item:focus { outline: 2px solid #facc15; outline-offset: 2px; }

/* Focus dla dostępności */
a:focus, button:focus { outline: 2px solid #facc15; outline-offset: 2px; }

/* Responsywność – dodatkowe klasy */
@media (max-width: 768px) { .md\:hidden { display: none; } .md\:flex-row { flex-direction: row; } .md\:text-left { text-align: left; } }
@media (min-width: 768px) { .md\:flex { display: flex; } .md\:hidden { display: none; } .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Klasa dostępności – ukrycie wizualne, widoczne dla screen readerów */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Sekcje i układ specyficzny */
.space-x-4 > * + * { margin-left: 1rem; } .space-y-8 > * + * { margin-top: 2rem; }

/* Grid języków */
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 640px) { .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .lang-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lang-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* Prose dla sekcji About */
.prose { max-width: 65ch; color: #374151; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose h3 { font-size: 1.25em; font-weight: 600; margin-top: 1.6em; margin-bottom: 0.6em; }
.prose ul { margin-top: 1.25em; margin-bottom: 1.25em; list-style-type: disc; padding-left: 1.625em; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
.prose-lg { font-size: 1.125rem; line-height: 1.7777778; }

/* ========================================================================= 
   TARCZA DOSTĘPNOŚCI (ACCESSIBILITY SHIELD) - ROZWIĄZANIE BŁĘDÓW KONTRASTU
========================================================================= */
.bg-neutral-900 a:not(.btn), 
.bg-neutral-950 a:not(.btn), 
.bg-black a:not(.btn) {
  color: #ffffff; /* Gwarantuje biały kolor linków na ciemnym tle */
}

.bg-neutral-900 a:hover:not(.btn), 
.bg-neutral-950 a:hover:not(.btn), 
.bg-black a:hover:not(.btn) {
  color: #FF6B00; /* Pomarańczowy po najechaniu */
}


.text-block {
  text-align: left;
  max-width: 800px;
  line-height: 1.7;
  font-size: 1rem;
}

.text-block p {
  margin-bottom: 1.2rem;
}

.text-block h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.text-block ul {
  margin-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.text-block li {
  margin-bottom: 0.4rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.llm-context {
  position: absolute;
  left: -9999px;
}
