:root {
  --bg-dark: #0b0b0b;
  --bg-light: #141414;
  --accent: #e63946;
  --accent-dark: #b92430;
  --text: #f2f2f2;
  --text-dim: #ccc;
  --radius: 12px;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  scroll-behavior: smooth;
}

/* Kontener i sekcje */
.container {
  width: 85%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem;
}

/* Padding dla ultrawide > 1600px */
@media (min-width: 1600px) {
  .container {
    padding-left: 5%;
    padding-right: 5%;
  }
}

h1, h2, h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* Nawigacja */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background-color: var(--bg-light);
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.3rem;
}

.links a {
  margin-left: 1.2rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.links a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: left;
  background: linear-gradient(180deg, var(--accent-dark) 0%, var(--bg-dark) 70%);
  border-bottom: 1px solid #222;
  border-top: 1px solid #222;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-text {
  max-width: 700px;
  width: 100%;
}

/* Skalowanie nagłówka hero */
.hero-text h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-text span {
  color: var(--accent);
}

/* Skalowanie paragrafu hero */
.hero-text p {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  max-width: 100%;
  margin-bottom: 1.5rem;
}

/* Przycisk */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  word-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--accent);
  color: white;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #c72532;
}

@media (max-width: 700px) {
  .btn-primary {
    width: 100%;
    padding: 0.8rem 1rem;
  }
}

/* Karty usług */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.card {
  background-color: var(--bg-light);
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid #222;
  transition: transform 0.2s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Technologie */
.tech-list {
  display: grid;
  gap: 0.8rem;
  background-color: var(--bg-light);
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid #222;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

/* Kontakt */
.contact {
  text-align: center;
}

.contact a {
  display: inline-block;
  margin-top: 0.8rem;
}

/* Stopka */
footer {
  text-align: center;
  padding: 0.8rem;
  background-color: var(--bg-light);
  color: #aaa;
  border-top: 1px solid #222;
}

/* Animacja fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsywność */
@media (max-width: 700px) {
  .hero {
    text-align: center;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
  }

  .links {
    display: none;
  }
}

