@charset "utf-8";
/* CSS Document */
* {
  box-sizing: border-box;
}
.container {
  display: grid;
  grid-template-areas:
    '. header header header header .'
    '. navigation navigation navigation navigation .'
    '. figure figure figure figure .'
    '. main main main main .'
    '. footer footer footer footer .';
  grid-template-columns: 15% repeat(4, minmax(100px, auto)) 15%;
  max-width: 1550px; margin: 0 auto; width: 100%;
}
.item1 {
  grid-area: header; 
    	}
.item2 {
  grid-area: navigation; 
}
.item3 {
  grid-area: figure;
}
.item4 {
  grid-area: main;
}
.item5 {
  grid-area: footer;
}
body {
  background-image: url("liscie.png");
}
header.item1 { padding: 10px 0; }
header {
  display: flex;
  margin-top: 0px;
  margin-bottom: 10px;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  border-top: 4px solid rgba(254, 193, 12, 1.00);
}
header img {
	width: 10%;
	}
header a {
  text-decoration: none;
  color: #231F20;
}
header h1 {
  font-family: 'HelveticaNeue ExtBlackCondObl';
  font-size: 3em;
  text-transform: uppercase;
  line-height: 0.43;
  font-style: oblique;
  color: #231F20;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
	
}
h1 > sup {
  font-size: 0.5em;
  margin-left: -5px;
}
.skos {
  background-color: rgba(254, 193, 12, 1.00);
  padding: 6px 15px;
  font-size: 0.7em;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  border: 1px solid silver;
} 
figure.item3 {
  position: relative;
  overflow: hidden; /* ważne! */ 
  border-radius:  12px; /* lub ile chcesz */
}

figure.item3 .figure-title {
  position: absolute;
  bottom: 35%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2.2em;
  font-family: 'HelveticaNeue ExtBlackCondObl';
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
  text-align: center;
  width: 90%;
  
}
figure.item3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
figure {
  margin: 15px 0 0 0;
  padding: 0;
  
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  
}

nav ul {
  display: flex;
  flex-wrap: wrap; /*sprawia że leement owija się*/
  list-style: none;
  font-family: 'Roboto Bold';
  text-transform: capitalize;
  padding: 0;
  margin: 0;
  width: 100%;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  
	
}
nav li {
  flex: auto;
}
nav li a {
  display: block;
  text-align: center;
  white-space: nowrap;
  border-right: 2px solid #000;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  color: #231F20;
  font-size: 1.1em;
  padding-block: 5px;

}
nav li a:hover {
  text-decoration: none;
  color: inherit;
  border-bottom-color:  rgba(254, 193, 12, 1.00);
}
/* --- UKŁAD ARTYKUŁÓW PREMIUM --- */
main {
  display: grid;
  grid-auto-rows: auto;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 20px;
}

article {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border: 7px solid silver;
  background-color: black;
  padding: 14px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

article img {
  flex: 1;
  max-width: 35%;
  object-fit: cover;
  border-radius: 10px;
}

article .text {
  flex: 1;
  min-width: 0;
}

article h2 {
  font-size: 1.2em;
  font-family: "Roboto Bold";
  text-transform: uppercase;
  color: rgba(254, 193, 12, 1);
  border-bottom: 3px solid rgba(254, 193, 12, 1);
  padding-bottom: 5px;
  margin-bottom: 0.5em;
}

article p {
  font-size: 1em;
  font-family: "Roboto Regular";
  color: white;
  text-align: justify;
}

article a {
  display: inline-block;
  font-family: "Roboto Bold";
  font-size: 0.8rem;
  text-decoration: none;
  color: black;
  background-color: rgba(254, 193, 12, 1);
  padding: 5px 8px;
  margin-top: 0.6em;
  border-radius: 4px;
}

/* --- STOPKA PREMIUM — WERSJA FINALNA --- */

/* Ogólne ustawienia footera */
footer {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
  margin-top: 2.8em;
  width: 100%;
  box-sizing: border-box;
  font-family: "Roboto Regular";
}

/* --- ŻÓŁTY BLOK --- */
aside.yellow {
  display: flex;
  flex-direction: row-reverse;
  padding: 1.6em 1.8em;
  background: rgba(254, 193, 12, 1);
  border-radius: 12px;
  gap: 1.4em;
  line-height: 1.55;
  color: black;
  border: 1px solid silver;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

aside.yellow h3 {
  font-size: 1.1em;
  margin-bottom: 0.6em;
  padding-bottom: 6px;
  border-bottom: 2px solid black;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

aside.yellow img {
  max-width: 34%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

aside.yellow p {
  font-size: 0.95em;
  margin-top: 0.4em;
  line-height: 1.55em;
}

/* --- CZARNY BLOK (TŁO) --- */
aside.black {
  background: black;
  color: white;
  border-radius: 12px;
}

/* --- 3 KOLUMNY PREMIUM --- */
.footer-3col {
  display: flex;
  justify-content: space-between;
  gap: 3em;
  flex-wrap: wrap;
  padding: 2.4em 2em;
  line-height: 1.55;
}

.footer-3col .col {
  flex: 1;
  min-width: 180px;
  padding-right: 1em;
}

.footer-3col h4 {
  margin-top: 0;
  margin-bottom: 0.75em;
  font-size: 1.1em;
  font-weight: 700;
  color: rgba(254, 193, 12, 1);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 6px;
  letter-spacing: 0.4px;
}

.footer-3col p {
  margin: 0.28em 0;
  font-size: 1.02em;
}

.footer-3col .brand {
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 0.4em;
}

.footer-3col .region {
  font-style: italic;
  opacity: 0.88;
  margin-top: 0.4em;
}

.footer-3col .label {
  color: rgba(254, 193, 12, 1);
  font-weight: 600;
  margin-right: 4px;
}

.footer-3col a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-3col a:hover {
  opacity: 0.75;
}

/* --- MOBILE --- */
@media (max-width: 720px) {
  .footer-3col {
    padding: 2em 1.4em;
    gap: 2em;
  }
  .footer-3col .col {
    min-width: 100%;
    padding-right: 0;
  }
}


@media (max-width: 950px) {  

figure.item3 .figure-title { font-size: 1.4em; bottom: 35%; }
  header.item1 { padding: 6px 0; }      

  header img {  visibility: hidden;  }
  
  header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap:0;
  }
  header h1 { font-size: 2em;}
  header .phone {
    margin-top: -1.5em;
    
    /* opcjonalnie, żeby było bliżej logo */
  }
   
  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav li {
    flex: none;
    width: 100%;
  }

  nav li a {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 1em;
    padding: 8px 0;
  }
  main { padding-top: 15px; padding-bottom: 10px; }

    article {
      flex-direction: column;
      max-width: 55%;
      padding: 12px;
    }
  
    article img {
      max-width: 100%;
      width: 100%;
    }
  footer { padding: 10px 0; }

  aside.yellow {
    flex-direction: column;
    text-align: left;

  }

  aside.yellow img {
    display: none;
  }

.container {
  grid-template-areas: 
  'header header header header'
  'navigation navigation navigation navigation'
  'figure figure figure figure'
  'main main main main'
  'footer footer footer footer';
  grid-template-columns: repeat(4, minmax(100px, auto));
}

}

@media (max-width: 500px) { 
  
  header { gap: 0; }
  nav li a { font-size: 0.9em; padding: 5px 0; }
  header h1 { font-size: 1.9em; }
  header .phone a { font-size: 0.8em; padding: 3px 8px; }
    article {
      max-width: 90%;
      padding: 8px;
    }
  
    article h2 {
      font-size: 1em;
    }
  
    article p {
      font-size: 0.9em;
    }
  
    aside.yellow,
    aside.black {
      padding: 0.6em;
    }
  
    aside.yellow h3 {
      font-size: 1em;
    }
    
 }
 @media (max-width: 430px) { 
.container {grid-template-columns:  repeat(4, minmax(80px, auto));}
figure.item3 .figure-title {  font-size: 1.2em; bottom: 25%;}
header .phone {    margin-top: -1.3em;  }

}
