
/* ===== ZMIENNE GLOBALNE ===== */
:root {
  --color-glowny: #1b1d2a;
  --color-glowny2: #2d2f36;
  --color-kafel: #2b2d3a;
  --color-podkreslenie: #7aa2f7;
  --color-tekst: #ffffff;
  --color-najechanie: #a0a8ff;
  --radius: 8px;
  --font-family: 'Lora', serif;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(to bottom, var(--color-glowny) 0%, var(--color-glowny) 30%, var(--color-glowny2) 100%);
  color: var(--color-tekst);
  min-height: 100vh;
  font-size: 16px; /* bazowo 100% */
  line-height: 1.5;
  font-family: var(--font-family);
}

/* ===== TYPOGRAFIA ===== */
h1, h2 {
  text-align: center;
  font-weight: bold;
}
h2, p {
  font-size: 1.1em;
}
h1, h2, p {
  margin-bottom: 0.5em;
  line-height: 1.3;
  color: var(--color-tekst);
}
p {
  margin-bottom: 1.5em;
  line-height: 1.6;
}
a {
  color: var(--color-tekst);
  font-size: 1.1em;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--color-najechanie);
  text-decoration: none;
}
.intro-text {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}


/* ===== NAWIGACJA ===== */
nav {
  background-color: var(--color-glowny);
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0.5rem 2rem 0 2rem; 
  align-items: flex-start; 
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}

.logo {
  font-size: 2em;
  font-family: 'Sacramento', cursive;
  letter-spacing: 0.02em;
}

nav a.active {
  color: var(--color-podkreslenie);
  border: none;
  text-decoration: none;
}

/* ===== PRZYCISKI ===== */
.button {
  display: inline-flex;
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
  background-color: var(--color-kafel);
  color: var(--color-tekst);
  border: 1px solid var(--color-tekst);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  line-height: 1;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.4em 0.6em;
}
.button:hover {
  transform: translateY(-2px);
}
.card .button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0 auto;
  font-size: 0.95rem;
  padding: 0.6em 0.6em;
  border-radius: 6px;
  line-height: 1.2;
  text-align: center;       
}
/* ===== CARDS ===== */
.card {
  background-color: var(--color-kafel);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  padding: 1.5rem;
  max-width: 800px; 
  margin: 1rem auto;
}
.card-center {
  text-align: center;
}
.card-link {
  text-align: center;
}
.card-left {
    text-align: left;
    text-indent: 2em;
    min-height: 160px;
}

.container, main {
  max-width: 1200px;
  margin: 0.5em auto;
}
.card-link:hover{
  transform: translateY(-2px);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1em;
  justify-content: center;
}

/* ===== FORMULARZ KONTAKTOWY ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 100%;
}
form input,
form textarea {
  padding: 0.75em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-family: var(--font-family);
}
form .button {
  width: 100%;
  margin-top: 1em;
}

/* ===== SIDEBAR DO PROJEKTÓW ===== */
.sidebar {
  width: 320px;
  padding: 1em 2em 2em 2em;
  flex-shrink: 0;
}

.sidebar-title {
  color: var( --color-tekst);
  font-weight: 700;
  margin-bottom: 1em;
  letter-spacing: 0.3px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 0.5em;
}

.sidebar .nav-link {
  display: block;
  color: var(--color-tekst);
  padding: 0.3em 0.5em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sidebar .nav-link:hover {
  color: var( --color-najechanie);
  text-decoration: none;
}

.sidebar .nav-link.active {
  color: var(--color-podkreslenie);
  
  text-decoration: none;
}

.two-column {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.two-column main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0rem;
  padding-left: 1rem;
}

.two-column main h1 {
  margin-top: 0;
  padding: 0 0 0 0.5rem;
  text-align: center;
}

.two-column main .card {
  text-align: left;
  padding: 1.5rem;
}
