* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

.price-item {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  max-width: 700px;
  margin: 0 auto;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 0.5fr; /* název + cena */
  align-items: baseline;
  font-weight: 600;
  font-size: 1.3rem;
  color: #003366;
}

.price-value {
  white-space: nowrap;
  text-align: right;
}

.price-desc {
  text-align: justify;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #777;
}

.energie-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.energie-logo img {
  max-width: 180px;
  height: auto;
}

.energie-text {
  text-align: justify;
  flex: 1;
  min-width: 300px;
}

.topbar {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.topbar a {
  color: white;
  text-decoration: none;
}

.hero {
  background: #e6f0ff;
  padding-bottom: 1rem;
}

.hero-content {
  text-align: center;
  padding: 2rem;
  align-items: flex-start;
  flex: 1 1 300px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: 1.2rem;
}

.hero-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #111;
}

.hero-ad {
  display: flex;
  align-items: center; /* zarovnání obsahu na střed */
  flex-direction: column;
  text-align: left;
  margin: 0 auto;       /* zajistí středové zarovnání v řádku */
  width: 300px;
  flex-shrink: 0;
}

.hero-ad object {
  display: block;
  margin: 0 auto;       /* zarovná objekt na střed */
}

.hero-ad .ad-note {
  max-width: 300px;     /* volitelné – zarovnání s šířkou reklamy */
  margin-top: 1rem;
  text-align: justify;     /* zajistí zarovnání textu vlevo */
}

.contact-section {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
}

.contact-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.contact-info {
  text-align: center;
  flex: 1;
  min-width: 300px;
  color: #777;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form label {
  font-weight: 500;
}

.contact-form button {
  background-color: #0055aa;
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.big-phone {
  font-size: 1.8rem;
  color: #0055aa;
  margin: 0.5rem 0 1rem;
}

.map-heading {
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  background-color: #000000;
  color: white;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.7); /* nebo #000 pro neprůhlednou */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #00aaff; /* jemný efekt při přejetí */
}

.nav-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
  .nav-right {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 100%;
    right: 1rem;
    padding: 1rem;
    border-radius: 8px;
    z-index: 1000;
  }

  .nav-right.show {
    display: flex;
  }

  .nav-right a {
    margin: 0.5rem 0;
  }
}

.pc-background {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 100vh;
  padding: 6rem 2rem;  /* vnitřní mezery */
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.pc-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("pc_p1.png"); /* cesta k obrázku */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  filter: blur(4px);
  transform: scale(1.1); /* lehké zvětšení kvůli rozostření */
  z-index: -1;
}

.energie-background {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  z-index: 1;
}

.energie-background::before {
  width: 100vw;
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("logoOE.png"); /* nahraď správnou cestou */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: -1;
  opacity: 0.05;
}

.energie-background > * {
  position: relative;
  z-index: 2;
}

.logo {
  height: 28px;
  width: 28px;
}

.price-value a,
.contact-info a,
.hero-content a {
  color: #005b8f; /* jemně modrá */
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

.price-value a:hover,
.contact-info a:hover,
.hero-content a:hover {
  color: #003b5f; /* tmavší modrá při najetí */
  border-bottom: 1px solid currentColor;
}

.nav-right a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}

.nav-left a:hover {
  text-decoration: underline;
}

.navbar .nav-link {
  position: relative;
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.4s ease, left 0.4s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
  left: 0;
}

.section {
  max-width: 960px;
  margin: auto;
  padding: 3rem 1rem;
}

h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.8); /* bílé pozadí s 70% krytím */
  backdrop-filter: blur(4px);                /* volitelné rozmazání pozadí */
  -webkit-backdrop-filter: blur(4px);        /* pro Safari */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.center-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%; /* zajistí výšku ve sloupci gridu */
}

.center-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px; /* přibližná výška ostatních dlaždic */
}

.card strong {
  display: block;
  font-size: 1.4rem;       /* nebo 1.3rem, podle potřeby */
  font-weight: 600;        /* mírně silnější než default */
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card:hover strong {
  transform: scale(1.05);
  color: #0055aa;
}

.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  background-color: #f0f8ff;
  cursor: pointer;
}

.price-list li {
  background: white;
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 5px solid #0055aa;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  padding: 0.75rem;
  background: #0055aa;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #003366;
}

footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

.tel-link::before {
  content: attr(data-label);
}

.email-link::before {
  content: attr(data-label);
}

/* Mobilní styl */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
 .tel-link::before {
    content: "";
  }
  .email-link::before {
    content: "";
  }
  }

  /* Mobilní styl - velmi malé displeje*/
@media (max-width: 400px) {
  .hero-ad {
    display: none;
  }
}

@media (min-width: 769px) {
  .nav-right {
    display: flex !important;
    flex-direction: row;
    gap: 1.5rem;
    position: static;
    background: transparent;
    padding: 0;
  }

  .nav-toggle {
    display: none;
  }
}