body
{
    background-color: #3e3e3e;
    font-family: "Roboto Condensed", sans-serif;
}

html
{
  scroll-behavior: smooth;
}

*
{
    box-sizing: border-box;
    transition: 0.3s ease;
}

footer
{
    background-color: #1a1a1a;
    color: #ccc;
    max-width: 980px;
    width: 100%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    text-align: center;
}

h1
{
    font-size: 36px;
    text-align: center;
}

header
{
    background-color: #2f2f2f;
    width: 100%;
    max-width: 980px;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    border-bottom: 2px solid #1a1a1a;    
}

h1 a
{
    color: #ffda27;
    text-decoration: none;
}

h1 a:visited
{
    color: #ffda27;
    text-decoration: none;
}

nav
{
    background-color: #2f2f2f;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.menu
{
    list-style-type: none;
    padding: 0px;
    font-size: 18px;
    min-height: 40px;
    line-height: 200%;
}

.menu > li
{
    display: inline-block;
    padding-left: 20px;
    padding-right: 20px;
    border-right: 2px dashed #3e3e3e;
}

.menu > li:first-child
{
    border-left: 2px dashed #3e3e3e;
}

.menu > li > a
{
    color: #fff;
    text-decoration: none;
}

.menu > li > a:visited
{
    color: #fff;
    text-decoration: none;
}

.menu > li > a:hover
{
    color: #ffda27;
}

.kafelek 
{
  background-color: #111;
  color: #ffda27;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
  text-align: left;
}

.kafelek:hover 
{
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255, 255, 0, 0.4);
}

.kafelki-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
    align-items: stretch;
    justify-items: center;
}

.kafelki-grid p
{
    color: #ccc;
    font-size: 18px;
}

#projekty
{
    width: 100%;
    max-width: 980px;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    background-color: #2f2f2f;
}

#projekty h2
{
    text-transform: uppercase;
    color: #ffda27;
    text-align: center;
    font-size: 24px;
}

.kafelki-grid h3
{
    font-size: 22px;
}

.kafelek a
{
    text-decoration: none;
    font-size: 18px;
    color: #000;
    border: 1px solid #ffda27;
    border-radius: 6px;
    background-color: #ffda27;
    text-align: center;
    width: 200px;
    height: 50px;
    align-items: center;
    justify-content: center;
    display: inline-block;
    padding: 12px 24px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.kafelek a:hover
{
    border: 2px solid #ffda27;
    color: #ffda27;
    background-color: #000;
}

.kafelek img 
{
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
  object-fit: cover;
  max-height: 200px;
}

.hero
{
    background-color: #1a1a1a;
    max-width: 980px;
    width: 100%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: center;
    padding-bottom: 15px;
}

.hero h2
{
    color: #ffda27;
    font-size: 28px;
    text-align: center;
}

.hero img
{
    width: 50%;
    height: 50%;
    border-radius: 10px 10px 10px 10px;
    padding-bottom: 20px;
}

.hero a,
#projekty a
{
    display: block;
    text-decoration: none;
    font-size: 18px;
    color: #000;
    border: 1px solid #ffda27;
    border-radius: 6px;
    background-color: #ffda27;
    text-align: center;
    width: 200px;
    height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.hero a:hover,
#projekty a:hover
{
    border: 2px solid #ffda27;
    color: #ffda27;
    background-color: #000;
}

.about,
#cennik,
#kontakt
{
    background-color: #2f2f2f;
    max-width: 980px;
    width: 100%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about h2,
#cennik h2,
#kontakt h2
{
    color: #ffda27;
}

.about p,
#cennik p,
#kontakt p
{
    color: #fff;
}

#cennik a,
#kontakt a
{
    display: block;
    text-decoration: none;
    font-size: 18px;
    color: #000;
    border: 1px solid #ffda27;
    border-radius: 6px;
    background-color: #ffda27;
    text-align: center;
    width: 200px;
    height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

#kontakt a
{
    width: 250px;
}

#cennik a:hover,
#kontakt a:hover
{
    border: 2px solid #ffda27;
    color: #ffda27;
    background-color: #000;
}

@media (max-width: 480px) 
{
  .kafelek img 
  {
    max-height: 160px;
  }
}


@media (max-width: 700px) 
{
  .kafelki-grid 
  {
    grid-template-columns: 1fr; /* na małych ekranach 1 kolumna */
  }
}

@media (max-width: 768px) 
{
  h1 
  {
    font-size: 1.6rem;
  }

  .kafelek 
  {
    padding: 16px;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2rem;
  }

  .kafelki-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kafelki-grid {
    grid-template-columns: 1fr;
  }

  .kafelek {
    padding: 16px;
    font-size: 0.95rem;
  }

  h1, h2 {
    font-size: 1.4rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .kafelek {
    padding: 12px;
  }

  header {
    padding: 10px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  footer {
    font-size: 0.85rem;
    text-align: center;
  }
}

@media (max-width: 768px) 
{
  .menu 
  {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* mniejszy odstęp */
    padding: 0;
    margin: 0;
  }

  .menu li 
  {
    list-style: none;  /* usuwa kreski */
    width: 100%;
    text-align: center;
    margin: 0;          /* usuwa dodatkowe marginesy */
    border-left: none;
    border-right: none;
    gap: 0.5rem;
  }
  .menu li:first-child 
  {
    border-left: none;
  }

  .menu li a 
  {
    display: inline-block;
    padding: 8px 0;
    font-size: 16px;
  }
}