:root {
  --main-color: #c00;
  --secondary-color: #2b2b2b;
  --third-color: #fff; 
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'MojaCzcionka';
  src: url('../fonts/Orbitron-Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: Arial, sans-serif;
  background: #f3f3f3;
  color: #222;
  line-height: 1.6;
}

body.menu-active {
  overflow: hidden;
}

header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 15px 25px;
  background: linear-gradient(90deg, var(--secondary-color), #444);
  color: var(--third-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  top: 0;
  left: 0;
}

.title {
  font-size: 1.8em;
  font-family: 'MojaCzcionka', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-menu {
  display: flex;
  background: var(--secondary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  justify-content: center;
  align-items: center;
}

.menu {
  flex: 1;
  padding: 12px;
  text-align: center;
  color: var(--third-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menu.active {
  background-color: var(--main-color) !important;
  font-weight: bold;
}

.menu.none {
  background-color: transparent;
}

.menu:hover {
  background-color: var(--main-color);
}



.dropdown {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  background-color: var(--secondary-color);
  min-width: 100%;
  z-index: 10;
  border-top: 1px solid #444;
}

.dropdown-content a {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  color: var(--third-color);
  text-decoration: none;
  font-weight: 500;
  background: var(--secondary-color);
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background-color: var(--main-color);
}



.dropdown-content {
  display: none;
  top: 50px;
  position: absolute;
  background-color: #333;
  min-width: 240px;
  z-index: 10;
}

.dropdown-content a {
  color: white;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #575757;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  cursor: pointer;
}

main {
  display: flex;
  min-height: 600px;
  margin: 20px;
  gap: 20px;
}

.sidebar {
  width: 250px;
  background: var(--third-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  font-size: 1.2em;
  font-family: 'MojaCzcionka', sans-serif;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--main-color);
  display: inline-block;
  padding-bottom: 5px;
}

.sidebar h3 {
  color: #333;
  margin-top: 10px;
}

.sidebar p {
  font-size: 0.95em;
  margin-bottom: 1.5em;
  color: #555;
}

.sidebar a {
  display: block;
  background: var(--main-color);
  color: var(--third-color);
  text-decoration: none;
  text-align: center;
  padding: 8px;
  margin-top: 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

.sidebar a:hover {
  background: #ff3b3b;
}

.content {
  flex: 1;
  background: var(--third-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.05em;
}

.content h1 {
  color: var(--main-color);
  margin: 30px 0px 15px 0;
  font-size: 1.8em;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--main-color);
  display: inline-block;
}

.content p {
  margin-bottom: 15px;
  text-align: justify;
  font-size: 20px;
}

.wiadomosc h2 {
  margin-top: 15px;
}
.list {
  margin-top: 10px;
}

footer {
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
  padding: 10px 0;
  background: var(--secondary-color);
  color: var(--third-color);
  font-weight: bold;
  border-top: 3px solid var(--main-color);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.main-menu .dropdown {
  flex: 1;
  text-align: center;
}

.main-menu .dropbtn {
  display: block;
  width: 100%;
  padding: 12px;
  color: var(--third-color);
  text-decoration: none;
  background: transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-menu .dropbtn:hover {
  background-color: var(--main-color);
}

.main-menu .dropbtn.active {
  background-color: var(--main-color);
  font-weight: bold;
}

.regulamin-body.body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}


.regulamin-body .content p {
  display: inline-block;
  margin: 5px 0;
}

.regulamin-body .content p::before {
  content: "• ";
  color: black;
  font-weight: bold;
}

.garage-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
}

.okienka {
  width: 48%;
  background: var(--third-color);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;


}

.zdjecie {
  width: 100%;
  height: 400px;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
  border: 1px solid #eee;
}

.okienka h3 {
  color: var(--main-color);
  font-size: 1.15em;
  margin-top: 5px;
  margin-bottom: 5px;
}

.okienka p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
  text-align: justify;
}

.okienka .details-link {
  display: inline-block;
  background: var(--main-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.content .add-ad-button {
  display: inline-block;
  background: var(--main-color);
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s;
}

.content .add-ad-button:hover {
  background: #ff3b3b;
}

.button-form {
  text-align: center; 
  margin: 30px 0;
}

.Archiwum {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.Archiwum li {
  padding: 8px 0;
  border-bottom: 1px dotted #ccc;
}

.Archiwum li a {
  color: #333;
  text-decoration: none;
  font-size: 1em;
}

.Archiwum li a:hover {
  color: var(--main-color);
  text-decoration: underline;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: none;
  height: 3px;
  border-radius: 2px;
  background: var(--third-color);
}

.mobile-menu {
  text-align: left !important;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.85);
  transform: translateY(-100%);
  z-index: 9;
  transition: transform 0.5s ease-in-out;

}

.mobile-menu.active {
  transform: translateY(120px);
}

.mobile-menu .menu:hover,
.mobile-menu .dropbtn:hover {
  background-color: transparent !important;
  color: var(--main-color);
}

.submenu {
  display: flex;
  flex-direction: column;
  padding: 20px;
  list-style: none;
}

.submenu a, .custommenu {
  color: var(--third-color);
  text-decoration: none;
  padding: 15px 0;
}

.submenu a:hover {
  color: var(--main-color);
}

.oferta-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.oferta-img {
  flex: 0 0 250px;
}

.oferta-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
}

.oferta-info {
  flex: 1;
}

.oferta-info h2 {
  margin-top: 10px;
}

.car-button {
  padding: 10px 20px;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 17px;
  margin-bottom: 10px;
}

.car-form {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  display: none;
  animation: fade 0.4s ease;
}

.car-form h2 {
  text-align: center;
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.car-form label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.car-form input,
.car-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #bbb;
  box-sizing: border-box;
  font-size: 15px;
  transition: 0.2s;
}

.car-form input:focus,
.car-form textarea:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 4px rgba(0, 94, 255, 0.5);
}

.upload {
  width: 100%;
  padding: 12px;
  background: #ececec;
  border: 1px dashed #888;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #555;
  text-align: center;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  display: flex;
  justify-content: center;
  background: var(--main-color);
  color: var(--third-color);
  border: none;
  border-radius: 10px;
  font-size: 17px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
}


.submit-btn:hover {
  background: var(--main-color);
}

@media (min-width: 2560px) {
  body {
    font-size: 18px;
  }

  header {
    padding: 20px 40px;
  }

  .title {
    font-size: 2.6em;
    letter-spacing: 3px;
  }

  .content h1 {
    font-size: 2.4em;
  }

  .dropdown-content {
    min-width: 333px;
    top: 57px;
  }

  .sidebar {
    width: 340px;
    padding: 28px;
  }

  .okienka {
    width: 48%;
    padding: 28px;
  }

  .zdjecie {
    height: 600px;
  }

  .menu,
  .dropbtn {
    font-size: 1.05em;
    padding: 14px;
  }

  .car-button,
  .content .add-ad-button,
  .okienka .details-link {
    padding: 14px 26px;
    font-size: 1.15em;
  }



  .garage-gallery {
    gap: 28px;
  }
}


@media (max-width: 1200px) {
  header {
    justify-content: space-between;
  }

  .main-menu {
    display: none;
  }

  .hamburger {
    cursor: pointer;
  }

  .hamburger span {
    display: block;
  }

  .okienka {
    width: 100%;
  }

  .garage-gallery {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  main {
    flex-direction: column-reverse;
    margin-bottom: 60px;
  }

  .sidebar {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 14px;
  }

  .title {
    font-size: 1.3em;
    letter-spacing: 1px;
  }

  .content h1 {
    font-size: 1.4em;
  }

  .sidebar h2 {
    font-size: 1em;
  }

  .content p,
  .sidebar p {
    font-size: 16px !important;
  }

  .menu,
  .dropbtn {
    font-size: 0.9em;
  }

  .oferta-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .oferta-img {
    width: 100%;
    max-width: 260px;
  }

  .okienka {
    width: 100%;
  }

  .oferta-info {
    width: 100%;
    margin-top: 10px;
  }

  .content .add-ad-button,
  .car-button,
  .details-link {
    font-size: 0.9em;
    padding: 8px 15px;
  }

  .zdjecie {
    height: 250px;
  }
}