/* === ZÁKLADNÉ NASTAVENIA === */
body {
  margin: 0;
  padding: 0;
  background-color: black;
}

/* === INFO LIŠTA === */
.info {
  font-weight: bold;
  margin: 0 3%;
}

.left-info {
  text-align: left;
  margin-right: auto;
}

.right-info {
  text-align: right;
  margin-right: auto;
}

.top-bar {
  font-size: 1.1em;
  color: #333;
  padding: 5px 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (max-width: 767px) {
  .top-bar {
    font-size: 100%;
    color: #333;
    width: 100%;
  }

  .left-info span,
  .right-info span {
    display: block;
    margin-bottom: 5px;
    text-align: left;
  }

  .hodiny,
  .pin {
    float: left;
    margin-right: 10px;
    clear: both;
  }
}

/* === LOGO === */
.logo {
  width: 40%;
  max-height: 55%;
  display: block;
  margin-left: 31%;
  position: relative;
}

@media (max-width: 767px) {
  .logo {
    width: 40%;
    max-height: 55%;
    display: block;
    margin-left: 31%;
    margin-top: 20%;
  }
}

/* === IKONY === */
.pin {
  width: 1.25%;
  max-height: 1.25%;
}
.hodiny {
  width: 1.5%;
  max-height: 1.5%;
}

@media (max-width: 767px) {
  .pin {
    width: 2.5%;
    max-height: 2.5%;
  }
  .hodiny {
    width: 4.5%;
    max-height: 4.5%;
  }
}

/* === MENU === */
.menu {
  text-align: right;
  padding: 1%;
  position: absolute;
  top: 7%;
  right: 1%;
}

@media (max-width: 767px) {
  .menu {
    top: 20%;
  }
}

.menu a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.menu a:hover::after {
  transform: scaleX(1);
}

/* === TEXTOVÉ FARBY === */
.uzke {
  font-weight: normal;
  color: #fff;
}

.cervene {
  color: rgb(255, 32, 32);
}

.service-bar {
  color: rgb(255, 32, 32);
  text-align: center;
  padding: 10px 0;
}

/* === FORMULÁR (kontakt) === */
.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  font-size: 120%;
}

h1 {
  text-align: center;
}

label {
  display: block;
  text-align: left;
  margin-top: 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 95%;
  padding: 10px;
  margin-top: 5px;
}

textarea {
  resize: vertical;
}

input[type="submit"] {
  background-color: black;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 10px auto;
  cursor: pointer;
  align-items: center;
  border-radius: 20px;
  width: auto;
  transition: transform 0.7s ease;
  display: block;
}

input[type="submit"]:hover {
  transform: scale(1.1);
}

/* === MAPA === */
.map {
  width: 100%;
  height: 450px;
}
@media (max-width: 768px) {
  .map {
    height: 300px;
  }
}

/* === SEKCIA SLUŽBY === */
.services-section {
  background-color: #0e0e0e;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.services-section h2 {
  font-size: 2.5em;
  color: #ff2020;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-section .intro-text {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #ddd;
}

.services-section .highlight {
  color: #ff2020;
  font-weight: bold;
}

/* === KARTY SLUŽBY === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin: 0 10%;
}

.service-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 32, 32, 0.1);
  max-width: 300px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(255, 32, 32, 0.25);
}

.service-icon {
  font-size: 2.5em;
  color: #ff2020;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.2);
}

.service-card h3 {
  color: #fff;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.service-card p {
  color: #bbb;
  font-size: 1em;
  line-height: 1.5;
}

/* --- 2. riadok centrovanie --- */
.services-grid > :nth-child(4),
.services-grid > :nth-child(5) {
  grid-column: span 1;
  justify-self: center;
}

/* --- Responzívne zobrazenie --- */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === SEKCIA O NÁS === */
.about-section {
  background-color: #111;
  color: #ddd;
  text-align: center;
  padding: 80px 10%;
}

.about-section h2 {
  color: #ff2020;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1em;
}

.about-section .highlight {
  color: #ff2020;
  font-weight: bold;
}

/* === FOOTER === */
footer {
  background: #0d0d0d;
  color: #aaa;
  padding: 20px 10%;
  font-size: 0.95em;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.creator {
  color: #777;
  font-size: 0.9em;
}

.creator span {
  color: #ff2020;
  font-weight: 600;
}

/* Login tlačidlo */
.login-link {
  color: #fff;
  background-color: #ff2020;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.login-link:hover {
  background-color: #e60000;
  transform: scale(1.05);
}

/* Responzívny footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }
}
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
              url('garage-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 160px 10%;
}

.hero-content h1 {
  font-size: 2.5em;
  color: #ff2020;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2em;
  color: #ddd;
  margin-bottom: 30px;
}

.hero-btn {
  background-color: #ff2020;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: #e60000;
  transform: scale(1.05);
}
#kontakt .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  #kontakt .container {
    grid-template-columns: 1fr;
  }
}

.map {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 32, 32, 0.2);
}
/* === ZÁKLADNÝ (mobilný) štýl ostáva nezmenený === */
/* Ten, čo tam už máš, sa automaticky použije na mobily. */


/* === NOVÝ štýl kontaktnej sekcie – iba pre PC === */
@media (min-width: 900px) {
  #kontakt .container {
    max-width: 1100px; /* väčšie biele pozadie */
    margin: 40px auto;
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;

    /* rozdelenie na 2 stĺpce */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .map {
    width: 100%;
    height: 550px; /* väčšia mapa */
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 32, 32, 0.3);
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100%;
    padding: 14px;
    font-size: 1em;
    margin-top: 8px;
  }
}

/* === ŠTANDARDNÉ ZOBRAZENIE (mobil, tablet) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin: 0 10%;
}

.service-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 32, 32, 0.1);
  max-width: 300px;
  text-align: center;
}

/* --- 2. riadok centrovanie (len pre pôvodné zobrazenie) --- */
.services-grid > :nth-child(4),
.services-grid > :nth-child(5) {
  grid-column: span 1;
  justify-self: center;
}

/* --- Responzívne grid rozloženie --- */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === NOVÉ ROZLOŽENIE – IBA PRE PC (od 901px vyššie) === */
@media (min-width: 901px) {
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* zarovná všetko na stred */
    gap: 20px;
    margin: 0 auto;
    max-width: 1100px;
  }

  .service-card {
    flex: 0 0 320px;
  }
}
/* === KONTAKT - hlavný nadpis centrovaný === */
#kontakt h1 {
  text-align: center;         /* vycentrovanie textu */
  font-size: 2.2em;           /* mierne väčší nadpis */
  margin-bottom: 30px;        /* odstup od obsahu */
  color: #000;                /* farba – môžeš zmeniť podľa štýlu */
}

/* === Upravíme kontajner pre lepší layout === */
#kontakt .container {
  margin-top: 20px;
}

/* Na PC – zachováva sa dvojstĺpcové rozloženie */
@media (min-width: 901px) {
  #kontakt .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

