html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
  line-height: 1.6;
  background: #f8f8f8;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3 {
  margin-bottom: 0.5em;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 2rem;
  transition: 0.3s;
}

.navbar .logo {
  position: absolute;
  left: 2rem;
}

.navbar .logo img {
  width: 170px;
  height: auto;
}


.nav-links {
  display: flex;
  gap: 3.5rem;
  list-style: none;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1.5rem;
}

.nav-links a:hover {
  color: #00d4ff;
}


.hero {
  height: 90vh;
  background: url(/assets/images/komis.png) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 12px 30px;
  background: #00d4ff;
  color: #0f172a;
  font-weight: bold;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
}

.oferta {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
  font-size: 1.5rem;
}

.car-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.car-card {
  flex: 1 1 calc(33.333% - 1.5rem);
  max-width: 350px;
}

.car-card {
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  height: auto;
}

.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #ddd;
}

.car-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
  color: #444;
  justify-content: flex-start;
  padding: 0.5rem 1rem;
}

.car-info p {
  margin: 0;
  flex: 1 1 45%;
}

.car-card h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  text-align: center;
}

.car-card .price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0f172a;
  margin: 0.3rem 0 0.8rem;
  text-align: center;
}

.car-card a {
  display: block;
  margin: 0.5rem auto 1rem;
  padding: 6px 16px;
  background: #00d4ff;
  color: #0f172a;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  width: fit-content;
  transition: 0.2s;
}

.car-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.pomoc {
  padding: 60px 20px;
  background: #f8f9fa;
  text-align: center;
}

.pomoc h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0f172a;
}

.pomoc-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.pomoc-text {
  flex: 1 1 400px;
  text-align: left;
}

.pomoc-text p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.pomoc .cta-button {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.pomoc .cta-button i {
  margin-right: 8px;
}

.pomoc .cta-button {
  background: #0f172a;
  color: #fff;
}

.pomoc .cta-button:hover {
  background: #00d4ff;
  color: #0f172a;
}

.pomoc .cta-button.secondary {
  background: #e0e0e0;
  color: #0f172a;
}

.pomoc .cta-button.secondary:hover {
  background: #00d4ff;
  color: #fff;
}

.pomoc-image {
  flex: 1 1 400px;
}

.pomoc-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px
}





@media (max-width: 1024px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .car-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.onas {
  padding: 4rem 2rem;
  background: #f8f8f8;
  text-align: center;
  font-size: 1.5rem;
}

.kontakt {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}

.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
}

.kontakt form {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt input,
.kontakt textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
}

.kontakt button {
  padding: 12px;
  background: #00d4ff;
  color: #0f172a;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kontakt button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.contact-info {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: left;
}


footer {
  padding: 2rem;
  background: #0f172a;
  color: #fff;
  text-align: center;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.2s ease;
  cursor: grab;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.lightbox .close {
  top: 20px;
  right: 30px;
}

.lightbox .prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
}

.lightbox-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
}

.lightbox-thumbs img.active {
  border-color: #00d4ff;
}

footer {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

footer a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}



@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .kontakt-grid {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    gap: 1rem;
    display: none;
    padding: 1rem 0;
    justify-content: center;
    align-items: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}