* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #05070d;
  color: white;
  overflow-x: hidden;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(90deg, #00c3ff, #ff3c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #ccc;
}

nav a:hover {
  color: white;
}

.contact-btn {
  border: 1px solid #1e90ff;
  padding: 10px 20px;
  border-radius: 25px;
  background: transparent;
  color: #1e90ff;
  box-shadow: 0 0 15px rgba(0,123,255,0.4);
  text-decoration: none;
}

/* HERO */
.hero {
  position: relative;
  height: 95vh;
  display: flex;
  align-items: center;
  padding: 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, #0b1a3a, #05070d);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/stardust.png");
  opacity: 0.35;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,7,13,0.85) 30%, transparent);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 70% 60%, rgba(255,0,0,0.25), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
}

.hero h1 {
  font-size: 56px;
  margin: 20px 0;
}

.checks span {
  display: block;
  margin: 6px 0;
  color: #8bd3ff;
}

/* BUTTONS */
.buttons {
  margin-top: 25px;
}

.btn {
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 600;
}

.blue {
  background: linear-gradient(90deg, #007bff, #00c3ff);
}

.red {
  background: linear-gradient(90deg, #ff3c3c, #ff0000);
}

/* AUTO */
.car-wrap {
  position: absolute;
  right: 50px;
  bottom: -20px;
  width: 900px;
  z-index: 2;
}

.car {
  width: 100%;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.7));
  z-index: 3;
}

.car-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.8), transparent);
  filter: blur(35px);
}

.car-glow {
  position: absolute;
  bottom: 20px;
  right: 150px;
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,0,0,0.6), transparent);
  filter: blur(80px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  color: #777;
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    padding: 40px 20px;
    height: auto;
  }

  .hero h1 {
    font-size: 32px;
  }

  .car-wrap {
    position: relative;
    width: 100%;
    margin-top: 40px;
  }

  .car {
    width: 100%;
  }
}

/* ========================= */
/* 🔥 POPUP */
/* ========================= */

.contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 999;
}

.popup-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("engine.jpg") center/cover no-repeat;
  filter: brightness(0.4);
}

.popup-content {
  position: relative;
  max-width: 420px;   /* 🔥 menšie okno */
  margin: 120px auto;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b132b, #1c2541);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  text-align: center; /* 🔥 všetko na stred */
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 20px;
}



/* INPUTY */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
}




/* BUTTON dole */
.contact-form button {
  grid-column: 1 / -1;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg, #007bff, #00c3ff);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* MOBILE FORM */
@media (max-width: 700px) {
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form textarea {
    grid-column: auto;
    grid-row: auto;
  }
}
.contact-info {
  margin-top: 20px;
  line-height: 1.9;
  font-size: 16px;
  color: #ddd;
  text-align: center; /* 🔥 centrovanie */
}

.contact-info strong {
  font-size: 20px;
  color: white;
  display: block;
  margin-bottom: 10px;
}

/* veľký popup – formulár */
#contactPopup .popup-content {
  max-width: 700px;
}

/* malý popup – kontakty */
.small-popup .popup-content {
  max-width: 420px;
}

.form-grid {
  display: grid;
  grid-template-columns: 240px 1fr; /* ľavo fix, pravo flex */
  gap: 30px;
  margin-top: 20px;
}

/* ĽAVÁ STRANA */
.form-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* INPUTY */
.form-left input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
}

/* PRAVÁ STRANA */
.form-right {
  width: 100%;
}

/* TEXTAREA */
.form-right textarea {
  width: 100%;
  height: 100%;
  min-height: 240px;

  padding: 16px;
  border-radius: 12px;

  resize: none; /* ❌ zakáže roztahovanie */
}

.contact-form button {
  margin-top: 20px; /* ⬅️ posunie tlačidlo nižšie */
}