/* Resetowanie stylów podstawowych dla wszystkich elementów */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Wprowadzenie clearfix dla pływających elementów */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* Stylizacja nagłówka */
header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; /* Wyrównanie do środka dla całej zawartości */
  min-height: 70vh; /* Dostosuj wysokość w zależności od zawartości */
  background-image: url('images/ph1 (4).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 20px; /* Dodano padding dla bezpiecznego marginesu */
}

/* Stylizacja div.welcome w nagłówku */
div.welcome {
  width: 100%; /* Pełna szerokość do wykorzystania przez Flexbox */
  max-width: 1200px; /* Maksymalna szerokość dla lepszego wyglądu na dużych ekranach */
  font-family: 'Saira Condensed', sans-serif;
  color: white;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.5); /* Poprawa czytelności tekstu */
  padding: 20px; /* Odpowiedni padding dla wygodnej odsłony */
}

/* Stylizacja pozostałych elementów nagłówka */
header h1, header h2, header p {
  margin-top: 15px; /* Drobne marginesy dla lepszego rozdzielenia tekstu */
}

header h2 {
  font-weight: normal;
}
header .phone-wrap{margin-top:15px;}
header .phone{
  display:inline-block;
  color: inherit;
  text-decoration: none;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 1px;
}
header .phone:focus-visible{
  outline: 3px solid white;
  outline-offset: 4px;
}
header .cta, header .hours{
  margin-top: 15px;
  font-weight: normal;
}


header button {
  font-family: 'Saira', sans-serif;
  font-weight: 300;
  line-height: 32px;
  padding: 0 20px;
  text-transform: uppercase;
  color: white;
  background-color: transparent;
  font-size: 15px;
  border: 2px solid white;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s; /* Dodano płynne przejście */
}

header button:hover {
  background-color: #fff;
  color: #111;
}

/* Różne media queries dla odpowiedniego dostosowania do urządzeń */
@media (orientation: portrait) and (min-width: 360px) {
  header h1, header h2 {
    font-size: 24px;
  }

  header button {
    margin-top: 24px;
    line-height: 40px;
    font-size: 16px;
  }
}

/* Kontynuacja media queries... */

/* Sekcja 1 nasze cechy*/

.features {
  max-width: 1600px;
  margin: 50px auto 0;
  padding: 5%;
  text-align: center;
}

.features > h2 {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.features h3 {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}

.features p {
  font-family: 'Saira', sans-serif;
  font-size: 12px;
  font-weight: 300;
  margin: 20px 0;
}

.features img {
  width: 100%;
  margin: 5px 0;
  max-width: 375px;
}

@media (min-width:360px) {
  .features > h2 { font-size: 28px; }
  .features h3 { font-size: 24px; }
  .features p { font-size: 14px; }
}

@media (min-width:768px) {
  .features > h2 { font-size: 36px; }
  .features h3 { font-size: 28px; }
  .features p { font-size: 18px; }
}

@media (min-width:1024px) {
  .features {
    margin-top: 50px;
    padding: 5% 2%;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
  }
  .features > h2 { grid-column: 1 / -1; }

  .feature { padding: 20px; }

  .features h3 { font-size: 22px; }
  .features p {
    font-size: 16px;
    line-height: 120%;
    padding: 0 10px;
  }
}

@media (min-width:1600px) {
  .feature { padding: 20px 50px; }
  .features > h2 { font-size: 60px; }
  .features h3 { font-size: 32px; }
  .features p {
    font-size: 21px;
    line-height: 140%;
    padding: 0 10px;
  }
}

.portfolio {
  background-color: black;
  padding: 10px 0 30px;
}

.portfolio h1 {
  font-size: 28px;
  font-family: 'Saira Condensed',
  sans-serif;
  text-transform: uppercase;
  color: white;
  text-align: center;
  padding: 10px 20px;
  margin-bottom: 15px;
}

.portfolio .web img {
  width: 100%;
}

.portfolio .about {
  color: white;
  font-family: 'Saira',
  sans-serif;
  font-weight: normal;
  padding: 10px 20px 20px 0;
  text-align: left;
}

.portfolio .about h2 {
  font-size: 18px;
  border-bottom: 2px solid white;
  margin-bottom: 12px;
  padding-bottom: 6px;
  text-indent: 20px;
}

.portfolio .about p {
  font-size: 12px;
  padding-left: 20px;
}

.portfolio .project {
  max-width: 1400px;
  margin: 0 auto 20px;
}

.portfolio .project:nth-of-type(odd) {
  background-color: #ff4f2c;
}

.portfolio .project:nth-of-type(even) {
  background-color: #29a6dc;
}

@media (min-width:768px) {

  .portfolio h1 {
    font-size: 40px;
  }

  .portfolio .about h2 {
    font-size: 28px;
    text-indent: 40px;
  }

  .portfolio .about p {
    font-size: 18px;
    padding-left: 40px;
  }

  .portfolio .project {
    margin-bottom: 40px;
  }

}

@media (orientation: landscape) {
  .web,
  .about {
    width: 50%;
    float: left;
  }

  .web img {
    display: block;
  }

  .portfolio .project:nth-of-type(even) .web {
    float: right;

  }
  .portfolio .project:nth-of-type(even) .about {
    padding-right: 0;
  }
  .portfolio .project:nth-of-type(even) .about p {
    padding-right: 20px;
  }
  .portfolio .project:nth-of-type(even) .about h2 {
    text-indent: 0;
    margin-left: 40px;
  }


}


@media (orientation: landscape) and (min-width: 1400px) {
  .portfolio h1 {
    font-size: 60px;
    padding: 30px 0;
  }

  .portfolio .about h2 {
    padding-top: 50px;
    font-size: 28px;
    text-indent: 40px;
    margin-bottom: 50px;
  }

  .portfolio .about p {
    font-size: 18px;
    padding-left: 40px;
    line-height: 180%;
  }

  .portfolio .project {
    margin-bottom: 40px;
  }
}


/* Sekcja telefon*/

.telefon {
  text-align: center;
  background-image: url('images/ph1.jpg');
  background-size: cover;
  background-position: center;
  

  color: white;
}

.telefon h1 {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 25px;

}

.telefon p {
  font-family: 'Saira', sans-serif;
  font-size: 18px;
}

.telefon p.author {
  margin-top: 20px;
  font-size: 12px;
}

.telefon .bg {
  padding: 30px 10px;
  background-color: #29a6dc;
  /*  #003f72*/
}

.telefon img {
  height: 0%;
  bottom: 220;
  right: 0;
}

@media (orientation: landscape) {
  .telefon p {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {

  .telefon .bg {
    padding: 50px 10px;

  }

  .telefon h1 {
    font-size: 48px;
    margin-bottom: 35px;

  }

  .telefon p {
    font-size: 26px;
    width: 100%;
    margin: 0 auto;
  }

  .telefon p.author {
    margin-top: 40px;
    font-size: 18px;
  }
}

@media (min-width: 1024px) {

  .telefon .bg {
    padding: 80px 10px;

  }

  .telefon h1 {
    font-size: 60px;
    margin-bottom: 55px;

  }

  .telefon p {
    font-size: 40px;
    width: 100%;
  }

  .telefon p.author {
    margin-top: 40px;
    font-size: 26px;
  }
}

/* Sekcja hobby*/

.hobby {
  max-width: 1920px;
  margin: 0 auto;
}

.hobby .item {
  height: 25vh;

}

.hobby .item {
  background-position: center;
  background-repeat: no-repeat;
}

.hobby .item:nth-of-type(1) {
  background-image: url(../images/hobby1.jpg);
}

.hobby .item:nth-of-type(2) {
  background-image: url(../images/hobby2.jpg);
}

.hobby .item:nth-of-type(3) {
  background-image: url(../images/hobby3.jpg);
}

.hobby .item:nth-of-type(4) {
  background-image: url(../images/hobby4.jpg);
}


.hobby .item p {
  font-family: 'saira', sans-serif;
  color: white;
  text-align: center;
  /*  line-height: 25vh;*/
  text-shadow: 0 0 4px black;
  background-color: rgba(0, 0, 0, .5);
  font-size: 20px;
  padding: 5px 0;
}

.hobby h1 {
  font-family: 'saira condensed', sans-serif;
  padding: 20px;
  text-align: center;
  font-size: 36px;
  text-transform: uppercase;
}

@media (min-width:533px) {
  .hobby .item {
    float: left;
    width: 50%;
    height: 40vh;
  }
}

@media (min-width:768px) {

  .hobby h1 {
    font-size: 48px;
    margin-top: 40px;
    margin-bottom: 35px;

  }

  .hobby .item p {
    font-size: 30px;
    padding: 15px 0;
  }
}

@media (min-width: 1024px) {
  .hobby .item p {
    padding: 0;
    line-height: 40vh;
    opacity: 0;
    transition: 1s;
    cursor: default;
  }

  .hobby .item:hover p {
    opacity: 1;
  }

  .hobby .item {
    background-size: 100%;
    transition: 1s;
  }

  .hobby .item:hover {
    background-size: 130%;
  }

}

@media (min-width: 1600px) {
  .hobby h1 {
    font-size: 60px;
    margin-top: 50px;
    margin-bottom: 45px;

  }

  .hobby .item p {
    font-size: 40px;
  }
}


/* sekcja contact */

.contact {
  background-color: #000;
  padding: 30px 20px;
}

.contact h1 {
  font-family: 'Saira Condensed',
  sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: white;
  text-align: center;
}

.contact .wrap {
  padding-top: 20px;
  max-width: 1024px;
  margin: 0 auto;
}

.contact input,
.contact button,
.contact textarea {
  width: 100%;
  margin-bottom: 25px;
  font-family: saira, sans-serif;
  font-size: 12px;
  padding: 5px;
}

.contact input {

  height: 36px;

}

.contact textarea {
  height: 120px
}

.contact button {
  font-size: 14px;
  line-height: 40px;
  background-color: black;
  color: white;
  border: 2px solid white;
}

.contact .socials {
  padding-top: 30px;
  font-size: 0;
}

.contact .social {

  padding: 10px 0;
  color: white;
  font-family: saira condensed, sans-serif;

}

.contact .social img {
  float: left;

}

.contact .social span {
  line-height: 72px;
  padding-left: 20px;
  float: left;
  font-size: 20px;
}

@media (min-width: 533px) {
  .contact .social {
    display: inline-block;
    width: 50%;
  }
}

@media (min-width: 1024px) {

  .contact h1 {
    font-size: 60px;
    padding: 30px 0;
  }
  .contact form,
  .contact .socials {
    float: left;
    width: 50%;
    padding: 0 20px
  }

  .contact .social {
    display: block;
    width: 50%;
    margin: 0 auto;
  }

  .contact input,
  .contact button,
  .contact textarea {
    margin-bottom: 35px;

  }
  .contact input {

    height: 46px;
    font-size: 24px;

  }

  .contact textarea {
    height: 180px;
    font-size: 24px;
  }

  .contact button {
    font-size: 20px;
    line-height: 50px;
    transition: .3s;
    cursor: pointer;

  }
  .contact button:hover {
    color: black;
    background-color: #fff;
  }
}


footer {
  background-color: #29a6dc;
  color: white;
  font-family: saira, sans-serif;
  text-align: center;
  padding: 20px;
  font-size: 20px;
}



@media (min-width:1024px) {
  .telefon { background-attachment: fixed; }
}
