/* Import czcionki Ubuntu Bold */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* Nagłówek */
header {
  background: linear-gradient(rgba(31, 112, 210, 0.9), rgba(106, 171, 250, 0.9));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  height: 60px;
}

header .logo {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffe600; /* złoty akcent */
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s, transform 0.2s;
}

header nav ul li a:hover {
  color: #f1c40f;
  transform: scale(1.05);
}

/* Sekcje */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}


#o-mnie {
    background: linear-gradient(rgba(31, 112, 210, 0.9), rgba(106, 171, 250, 0.9));
    color: white;
    font-size: 20px;
}

#uslugi {
    background: linear-gradient(rgba(106, 171, 250, 0.9), rgba(31, 112, 210, 0.9));
    color: white;
    font-size: 20px;
}
/* Sekcja powitalna */
.hero {
  background: linear-gradient(rgba(106, 171, 250, 0.9), rgba(31, 112, 210, 0.9));
  color: white;
  padding: 0 20px;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  font-weight: 700;
}

h1::after {
  content: "";
  display: block;
  width: 300px;
  height: 3px;
  background: #f1c40f;
  margin: 10px auto 0;
  border-radius: 3px;
}

.hero p {
  font-size: 25px;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Przyciski */
.btn, 
#kontakt button,
#kontakt .phone-btn {
  display: inline-block;
  padding: 14px 24px;
  font-size: 16px;
  color: #0b2545; /* zawsze ciemny granat */
  background: #f1c40f;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover,
#kontakt button:hover,
#kontakt .phone-btn:hover {
  background: #d4ac0d;
  transform: scale(1.05);
  color: #0b2545; /* żeby kolor się nie zmieniał */
}

h2 {
  font-size: 35px;
  margin-bottom: 25px;
  color: #0b2545;
  position: relative;
  font-weight: 700;
}

h3 {
  font-size: 35px;
  margin-bottom: 25px;
  color: #0b2545;
  position: relative;
  font-weight: 700;
}

h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: #f1c40f;
  margin: 10px auto 0;
  border-radius: 3px;
}

h3::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: #f1c40f;
  margin: 10px auto 0;
  border-radius: 3px;
}

/* Karty usług */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #ffffffcc;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(11,37,69,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 25px rgba(11,37,69,0.2);
}

.card h3 {
  font-size: 24px;
  color: #0b2545;
  margin-bottom: 12px;
  font-weight: 700;
}

.card p {
  font-size: 18px;
  color: #444;
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 15px;
}

.card ul li {
  font-size: 15px;
  color: #0b2545;
  background: #f1c40f;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
  cursor: default;
}

.card ul li:hover {
  background: #d4ac0d;
  color: #0b2545;
}

/* Stopka */
footer {
  background: linear-gradient(rgba(106, 171, 250, 0.9), rgba(11,37,69,0.9));
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 0px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsywne menu */
@media (max-width: 768px) {
  header nav {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: #0b2545;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  header nav.active {
    max-height: 300px;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
  }

  .hamburger {
    display: flex;
  }
}

/* Animacja hamburgera otwartego */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Sekcja kontakt */

#kontakt {
    background: linear-gradient(rgba(31, 112, 210, 0.9), rgba(106, 171, 250, 0.9));
    color: white;  /* Kolory tekstu na gradientowym tle */
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kontakt-box {
    background: white; /* biały box */
    color: #0b2545; /* ciemny tekst wewnątrz boxa */
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(11,37,69,0.2);
    max-width: 500px;
    width: 100%;
}

.kontakt-box h2 {
  color: #0b2545;
  margin-bottom: 15px;
}

.kontakt-box p {
  margin-bottom: 25px;
  font-weight: 500;
}

.phone-btn {
  display: inline-block;
  margin-bottom: 25px;
  padding: 14px 24px;
  background: #f1c40f;
  color: #0b2545;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.phone-btn:hover {
  background: #d4ac0d;
  transform: scale(1.05);
  color: #0b2545;
}

/* Formularz */
form label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: #0b2545;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 2px solid #0b2545;
  border-radius: 10px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #f1c40f;
}

form button {
  width: 100%;
  background: #f1c40f;
  color: #0b2545;
  padding: 15px 0;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s, transform 0.2s;
}

form button:hover {
  background: #d4ac0d;
  transform: scale(1.05);
}

