body {
    font-family: 'Roboto', sans-serif;
    background: #222 url('images/street-4472321\ \(1\).png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 40px;
    padding-top: 170px;
    position: relative;
    font-family: 'Merriweather', serif;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.header_nav{
    position: absolute;
    top: 60px;               
    left: 50%;              
    transform: translateX(-50%); 
    display: flex;
    gap: 30px;
}

.logo {
    position: absolute;
    top: 15px;
    left: 20px;
    height: 150px;
}

.burger {
  background: rgba(255,0,0,0.3);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 40px;
  right: 20px;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 4px;
  background: rgb(207, 72, 25);
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 100%;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

.header_nav_link{
    white-space: nowrap;
    color: rgb(207, 72, 25);
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px; 
    background-color: rgb(255, 233, 187);
    border-radius: 15px;
    transition: 0.3s ease-in-out;
}
.header_nav a:hover {
    color: rgb(255, 233, 187);
    background-color: rgb(207, 72, 25);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.card, .card * {
    position: relative;
    z-index: 1;
}

.card {
    display: flex;
    flex-direction: column;
    background: rgb(255, 233, 187);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    padding: 15px;
}

.card-content {
    position: relative;
    padding: 20px;
    background: rgb(255, 233, 187);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.card-price {
    position: absolute;
    bottom: 24px;
    left: 20px;
    background-color: rgba(207, 72, 25, 0.9);
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    align-self: flex-end;
    background: linear-gradient(45deg, #d84315, #ff9800);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Merriweather', serif;
    font-weight: bold;
    width: 150px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.card-button:hover {
    background: linear-gradient(45deg, #ff5722, #ffb74d);
    transform: scale(1.05);
}

/* Efekt pojawiania się */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.slider {
    position: relative;
    width: 100%;
    height: 275px;
    overflow: hidden;
    margin-bottom: 15px;
    border-top-left-radius: 65px;
    border-bottom-right-radius: 50px;
}

.slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-top-left-radius: 65px;
    border-bottom-right-radius: 50px;
}

.slider .slide.active {
    opacity: 1;
}

.swiper-pagination{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider .prev,
.slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
}

/* Pozycja przy krawędziach */
.slider .prev {
   left: 10px;
}

.slider .next {
   right: -5px;
}

/* SVG rozmiar i animacja */
.arrow-icon {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Hover эффект */
.slider .prev:hover .arrow-icon,
.slider .next:hover .arrow-icon {
    transform: scale(1.2);
}

@media (max-width: 900px) {
  body{
    background: #222 url('images/street-4472321\ \(1\).png') no-repeat center top fixed;
  }

  .header_nav {
    position: fixed !important;
    top: 100px;
    left: auto;                 
    transform: none;              
    right: -100%;
    width: 250px;
    flex-direction: column;
    background-color: rgb(255, 233, 187);
    padding: 20px;
    gap: 20px;
    z-index: 1000;
    transition: right 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }

  .header_nav.active {
    right: 20px;
  }

    .burger {
        display: flex;
    }
}

@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: 1fr !important;
  }

  .card {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body{
    padding: 140px 0px 40px 0px !important;
  }
}

@media (max-width: 500px){
    .card-content a {
        width: 25%;
        font-size: 14px;
    }
    .card-price {
        width: 25%;
        font-size: 14px;
    }
}