* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: #333;
    scroll-behavior: smooth;
}

body a {
    color: #333
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    width: 125px;
    height: auto;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a,
.social-links a,
.big-part a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px
}

.nav-links a:hover,
.social-links a:hover, {
    color: #39b549;
}

.social-links {
    display: flex;
    gap: 0.25rem;
}

.social-links i {
    font-size: 2rem;
    transition: all 0.3s ease
}

.big-part {
    padding: 7.5px 20px;
    background-color: #39b349;
    border-radius: 50px;
    border: 1px solid #39b349;
    transition: all 0.3s ease
}

.big-part i {
    margin-right: 5px;
    font-size: 1.25rem;
    color: white
}

.big-part a {
    color: white;
    align-items: center;
    display: flex
}

.big-part:hover {
    background-color: #2ea03b
}

.social-links i:hover,
.nav-links a:hover {
    color: #39b349;
}

.cta-link {
  color: #39b349;
  font-weight: 700;
  position: relative;
}

.cta-link::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 2px;
  width: 50%;
  height: 2px;
  background: #39b349;
  animation: fadeUnderline 2s infinite;
}

@keyframes fadeUnderline {
  0%   { opacity: 1; }
  50%  { opacity: 0.2; }
  100% { opacity: 1; }
}

@media (max-width: 1100px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
  }

  .nav-links,
  .social-links,
  .big-part {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
    
    .big-part {
        flex-basis: 50%;
    }

  .big-part {
    justify-content: center;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .logo {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .nav-links a,
  .social-links a,
  .big-part a {
    font-size: 0.9rem;
  }

  .social-links i {
    font-size: 1.75rem;
  }

  .big-part {
    padding: 6px 16px;
  }

  .logo img {
    width: 125px;
  }
 
  .big-part {
        flex-basis: 90%;
    }
}

.article-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.8;
  color: #333;
}

.article-container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: left;
    font-weight: 700;
    line-height: 1.4
}

.article-container h1 .highlight {
  color: #39b349;
}

.article-container h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: #222;
}

.article-container p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

/* Tabela */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.grammar-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.grammar-table th {
  background: #39b349;
  color: white;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
}

.grammar-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.grammar-table tr:nth-child(even) {
  background: #f9f9f9;
}

.grammar-table tr:hover {
  background: rgba(57,179,73,0.3);
}

.grammar-table tr:hover {
    transition: background 0.5s ease
}
/* Box z konstrukcją */
.construction-box {
  background: #f1fdf4;
  border-left: 6px solid #39b349;
  padding: 15px 20px;
  margin: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  border-radius: 6px;
}

/* Lista przykładów */
.examples {
  margin: 15px 0 20px 20px;
  padding-left: 15px;
  list-style: disc;
}

.examples li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.examples strong {
  color: #222;
}

/* RESPONSYWNOŚĆ */

/* TABLETY – poniżej 1024px */
@media (max-width: 1024px) {
  .article-container {
    padding: 0 15px;
  }
  .article-container h1 {
    font-size: 2rem;
  }
  .article-container h2 {
    font-size: 1.3rem;
  }
  .grammar-table th, 
  .grammar-table td {
    padding: 10px 12px;
  }
}

/* MAŁE TABLETY i TELEFONY – poniżej 768px */
@media (max-width: 768px) {
  .article-container {
    padding: 0 12px;
    line-height: 1.6;
  }
  .article-container h1 {
    font-size: 1.8rem;
    text-align: center;
  }
  .article-container h2 {
    font-size: 1.2rem;
  }
  .construction-box {
    font-size: 1rem;
    padding: 12px 15px;
  }
  .examples li {
    font-size: 1rem;
  }
}

/* SMARTFONY – poniżej 480px */
@media (max-width: 480px) {
  .article-container {
    padding: 0 10px;
      margin: 1rem auto
  }
  .article-container h1 {
    font-size: 1.6rem;
    line-height: 1.3;
      text-align: left;
  }
  .article-container h2 {
    font-size: 1.1rem;
  }
  .grammar-table {
    font-size: 0.9rem;
  }
  .grammar-table th, 
  .grammar-table td {
    padding: 8px 10px;
  }
  .construction-box {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
  .examples {
    margin-left: 15px;
  }
}



/* Styl dla footera */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px 20px;
    text-align: left;
    margin-top: 50px
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-container div {
    flex: 1;
    min-width: 200px;
}

.footer-container h4 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer-container p, 
.footer-container ul li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-container a {
    text-decoration: none;
    color: #39b549;
    transition: color 0.3s ease;
}

.footer-container a:hover {
    color: #fff;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
}

.footer-navigation ul li {
    margin-bottom: 10px;
}

.footer-map iframe {
    width: 90%;
    height: 200px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.footer-map p {
    margin-bottom: 15px
}

.footer-socials {
    display: 
}

.footer-socials i {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #39b349;
    transition: color 0.3s ease;
}

.footer-socials i:hover {
    color: #fff;
}

.socialek {
    margin: 10px 0
}

.socialek a{
    align-items: center;
    margin-left: auto;
    display: flex;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #aaa;
    width: 60%;
    margin: auto
}

.footer-bottom p{
    color: #fff
}

.footer-bottom a {
    color: #39b349;
    text-decoration: none;
    
}

.orl img {
    width: 100px;
    margin-top: 25px
}


