/* === RESET === */
* {
  font-family: monospace;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* === KOLORY I STYL GŁÓWNY === */
:root {
  --burgundy: #800020;
  --burgundy-dark: #4d0012;
  --accent: #aaa9a7;
  --accent-hov: #494949;
  --light-bg: #f7f3f2;
  --text-light: #f5f5f5;
  --text-dark: #222;
  --transition: all 0.3s ease;
  --radius: 12px;
}

/* === NAGŁÓWEK === */
header {
  background-image: linear-gradient(
      rgba(128, 0, 32, 0.6),
      rgba(41, 32, 32, 0.66)
    ),
    url("/img/s2.jpg");
  background-size: cover;
  background-position: center;
  height: 550px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeIn 1.5s ease both;
}

#headgl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
  background-image: linear-gradient(rgba(165, 0, 41, 0.6),rgba(128, 0, 32, 0.6)),url("/img/s2.jpg");
  background-size: cover;
  background-position: center 27.7%;
}

#headgl{
  position: sticky;
  top: 0;
  width: 100%;
 
}
#headgl.scroll{
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 1000;
  top: 0;
  border-radius: 10px;
  padding: 15px;
}

#navheader a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  background-color: var(--burgundy);
  border-radius: var(--radius);
  transition: var(--transition);
}

#navheader a:hover {
  background-color: var(--accent);
  color: #111;
  transform: translateY(-3px);
}

/* === PRZYCISKI === */
#btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 20px;
}
#hdpok{
  display: flex;
  background-color: linear-gradient(0deg,#4d0012,#800020);

  border-radius: 10px;

  height: 300px;
  width: 300px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.hdpok1 h3,.hdpok1 h3, .hdpok1 h3{
  background: linear-gradient(0deg,#3b3b3b,#838383);
  border-radius: 10px 10px 0 0;
  width: 100%;
}
.hdpok1{
  cursor: pointer;
  display: flex;
  background-color: linear-gradient(0deg,#4d0012,#800020);
  border-radius: 10px;
  height: 300px;
  width: 300px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.hdpok1:hover,#hdpok2:hover,#hdpok:hover{
  transform: scale(1.1);
  transition: 2s;
  box-shadow: #910303 0px 6px 20px 0px;
}

.btn {
  padding: 15px 25px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  border-radius: var(--radius);
  color: white;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn:hover {
  background: var(--accent);
  color: #111;
  transform: scale(1.05);
}

/* === OFERTY === */
#oferty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px;
  background: linear-gradient(180deg, #fff, #f5e9e9);
}

.kartaoferta {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  overflow: hidden;
}

.kartaoferta:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(128, 0, 32, 0.3);
}

.kartaoferta img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.kartaoferta h3 {
  margin: 15px 0;
  color: var(--burgundy-dark);
}

/* === SEKCJA KONTAKT === */
#glowny {
  padding: 60px 20px;
  background: linear-gradient(135deg, #b6b5b5, var(--burgundy-dark));
  color: var(--text-light);
  animation: fadeIn 1s ease both;

    background-image: linear-gradient(
      rgba(128, 0, 32, 0.6),
      rgba(199, 198, 198, 0.685)
    ),
    url("/img/s2.jpg");
  background-size: cover;

}

#kontakt h2,.akt-container h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: rgb(226, 225, 222);
  position: relative;
}

#kontakt h2::after,.akt-container h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 3px;
}

.kontakt-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  
}

.infoktn, .formktn {
  flex: 1 1 320px;
  /*background: linear-gradient(0deg,#3b3b3b,#838383);*/
  background-image: url('/img/s0.jpg') ;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  animation: slideUp 1s ease both;
  box-shadow: #a35b5b 10px 9px 20px 2px;
}
.infoktn table{

  margin-left: 35%;
  font-size: 125%;
}

.infoktn a {
  color: rgb(255, 0, 0);
  text-decoration: none;
}

.infoktn .mapa {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: var(--radius);
  margin: 15px 0;
}

.socials a {
  margin-right: 15px;
  font-size: 28px;
  color: #bbb;
  transition: var(--transition);
}

.socials a:hover {
  color: var(--accent);
  transform: rotate(10deg);
}

/* Formularz */
.formktn form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formktn input,
.formktn textarea {
  padding: 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #111;
  color: #eee;
  transition: var(--transition);
}

.formktn input:focus,
.formktn textarea:focus {
  border: 1px solid var(--accent);
  outline: none;
}

.formktn button {
  padding: 14px;
  background: var(--accent);
  color: #111;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.formktn button:hover {
  transform: translateY(-3px);
  background: var(--accent-hov);
}

/* === OPINIE === */
#opinie {
  padding: 60px 20px;
  /*background-image: linear-gradient(rgba(199, 198, 198, 0.685) 0%,rgba(100, 9, 9, 0.596) 75%, rgba(77, 0, 18, 0.849) 100%),url('./img/s2.jpg');
  background-size: cover;
  background-position: center 62.5%;
  background-repeat: no-repeat;*/
  text-align: center;
  overflow: hidden;
}

#opinie h2 {
  margin-bottom: 25px;
  color: var(--accent);
}

.opinie-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.opinie-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  border-radius: 10px;
}

.element {
  min-width: 100%;
  box-sizing: border-box;
  padding: 25px;
  background: rgba(34, 34, 34, 0.9);
  border-radius: 15px;
  color: #ddd;

  color: var(--light-bg);
}

/* === STOPKA === */

footer {
  background-image:
    linear-gradient(
      to bottom,
      rgba(77, 0, 18, 0.7) 0%,       /* zaczyna się tam, gdzie footer kończy */
      rgba(128, 0, 32, 0.8) 50%,    /* jaśniejszy burgund */
      rgba(109, 31, 31, 0.6) 100%    /* ciemne zakończenie na dole */
    ),
    url("/img/s2.jpg");
      background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

#stp2{
  color: whitesmoke;
  padding: 20px;
  text-align: center;
  text-decoration: none;
}
#stp2 a{
  color: red;
}

#stp1{
  padding: 20px;
  
  color: white;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  font-size: 1.05rem;
}
#stp1 h2{
  margin-bottom: 15px;
}
#stp1 a {
  color: red;
  
}
footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 6px;
}

/* === ANIMACJE === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


#scrollTopBtn {
  display: none; /* domyślnie ukryty */
  position: fixed;
  bottom: 40px;
  right: 120px;
  z-index: 100;
  font-size: 24px;
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 50px;
  width: 50px;
}

#scrollTopBtn:hover {
  background-color: #555;
}

#aibtn,#telbtn{
  cursor: pointer;

  font-size: 24px;
  text-align: center;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  position: fixed;
  bottom: 40px;
}
#aibtn{
  right: 40px;
}
#telbtn{
  left: 40px;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--burgundy);
  border-radius: 4px;
}


@media screen and (max-width: 600px) {
  #headgl{
    display: block;
  }
  #navheader{
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  #btns{
    flex-direction: column;
    align-items: center;
    height: 200px;
  }
  .hdpok1{
    height: 100px;
  }

  header h1, header h2{
    padding: 10px;
  }
  

  .infoktn table {
    margin-left: 0%;
  }
  #stp1 iframe{
    width: 100%;
  }
}

@media screen and (max-width: 992px) {
  .kontakt-container{
    flex-direction: column;
  }
}