/*GLOBAL BASICS*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  background: #ebebeb;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  position: relative;
  animation: pageFade 0.18s ease-out;
  opacity: 1;
  transition: opacity 0.18s ease;
}

main.fade-out {
  opacity: 0;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/*HEADER*/
.header {
  position: sticky;
  background-color: #ffffff;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*FOOTER*/
.footer {
  position: relative;
  background-color: #ffffff;
  display: flex;
  align-items: center;
}

.footer-inner {
  height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*HEADER LOGO*/
.logo-header {
  display: flex;
  align-items: center;
}

.logo-header img {
  height: 30px;
  display: block;
}

/*FOOTER LOGO*/
.logo-footer img {
  height: 30px;
  position: static;
  display: flex;
  align-items: center;
}

/*NAV MOBILE*/
.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav a:hover {
  background-color: #ebebeb;
  color: #ee3031;
}

.nav a[aria-current="page"] {
  background-color: #ee3031;
  color: #ffffff;
}

/*HOMEPAGE CONTENT*/
.homepage {
  height: calc(100vh - 128px);
  background: #ebebeb;
  position: relative;
  overflow: hidden;
}

.homepage-number {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 82vw;
  max-width: 320px;
}

.homepage-number img {
  display: block;
  width: 100%;
  height: auto;
}

.homepage-number-default {
  display: block;
}

.homepage-number-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.homepage-number:hover .homepage-number-hover {
  opacity: 1;
}

.homepage-text {
  position: absolute;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 320px;
  text-align: center;
}

.homepage-text h1 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.25;
}

.homepage-text h2,
.homepage-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.homepage-call {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 430px;
  padding: 16px 36px;
  font-size: 18px;
  letter-spacing: 2px;
  background-color: #ee3031;
  color: #ffffff;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.homepage-call:hover {
  background-color: #000000;
  color: #ffffff;
}

/*SLUŽBY CONTENT*/
.sluzby {
  height: calc(100dvh - 128px);
  background: #ebebeb;
  position: relative;
  overflow: hidden;
  padding: 60px 0 150px;
}

.sluzby-text {
  max-width: 300px;
  margin: 0 auto 20px;
  padding: 0;
  text-align: center;
}

.sluzby-text h1 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.sluzby-text h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.sluzby-list {
  margin: 0 auto;
  max-width: 300px;
}

.sluzby-list-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.sluzby-side1,
.sluzby-side2 {
  text-align: center;
}

.sluzby-side1 h2,
.sluzby-side2 h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.2;
}

.sluzby-seznam1,
.sluzby-seznam2 {
  font-size: 14px;
  line-height: 1.35;
}

.sluzby-seznam1 p,
.sluzby-seznam2 p {
  margin: 0 0 8px;
}

.divider {
  display: none;
}

.sluzby-call {
  display: block;
  margin: 20px auto 0;
  padding: 14px 30px;
  font-size: 16px;
  letter-spacing: 2px;
  border-radius: 40px;
}

/*KONTAKT CONTENT*/
.kontakt {
  min-height: calc(100dvh - 128px);
  padding: 32px 0 150px;
  background: #ebebeb;
}

.kontakt-head {
  max-width: 320px;
  margin: 0 auto 24px;
  text-align: center;
}

.kontakt-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.kontakt-card {
  max-width: 360px;
  margin: 0 auto 20px;
  padding: 18px 0;
  border-top: 1px solid #000000;
}

.kontakt-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kontakt-row + .kontakt-row {
  margin-top: 12px;
}

.kontakt-row-2 {
  gap: 12px;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}

.kontakt-icon {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}

.kontakt-map {
  max-width: 360px;
  margin: 24px auto 0;
  overflow: hidden;
}

.kontakt-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

/*CAR*/
.car img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  width: 72vw;
  max-width: 280px;
  height: auto;
}

/*DESKTOP*/
@media (min-width: 1024px) {

  html, body {
    background: #ebebeb;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
  }

  main {
    animation: pageFade 0.18s ease-out;
    opacity: 1;
    transition: opacity 0.18s ease;
  }

  /*FOOTER DESKTOP*/
  .footer {
    position: relative;
    background-color: #ffffff;
    display: flex;
    align-items: center;
  }

  .footer-inner {
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /*HEADER LOGO DESKTOP*/
  .logo-header {
    display: flex;
    align-items: center;
  }

  .logo-header img {
    height: 50px;
    display: block;
  }
  
  /*NAV DESKTOP*/
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 24px;
    font-size: 20px;
  }

  .nav a:hover {
    background-color: #ebebeb;
    color: #ee3031;
  }

  .nav a[aria-current="page"] {
    background-color: #ee3031;
    color: #ffffff;
  }

  /*HOMEPAGE CONTENT DESKTOP*/
  .homepage {
    height: calc(100vh - 128px);
    background: #ebebeb;
    position: relative;
    overflow: hidden;
  }

  .homepage-number {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
  }

  .homepage-number img {
    display: block;
    width: 100%;
    height: auto;
  }

  .homepage-text {
    position: absolute;
    top: 330px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 900px;
    text-align: center;
  }

  .homepage-text h1 {
    margin-bottom: 35px;
    font-size: 35px;
    line-height: 1.25;
  }

  .homepage-text h2 {
    font-size: 23px;
    line-height: 1.45;
  }

  .homepage-call {
    top: 600px;
    position: absolute;
    padding: 20px 60px;
    font-size: 30px;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 4px;
    background-color: #ee3031;
    color: #ffffff;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .homepage-call:hover {
    background-color: #000000;
    color: #ffffff;
  }

  /*SLUŽBY CONTENT DESKTOP*/
    .sluzby {
    height: calc(100vh - 128px);
    background: #ebebeb;
    position: relative;
    overflow: hidden;
    padding: 0;
  }

  .sluzby-text {
    margin-top: 120px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
  }

  .sluzby-text h1 {
    margin: 0 0 20px;
    font-size: 35px;
    line-height: 1.25;
  }

  .sluzby-text h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.45;
  }

  .sluzby-list {
    position: relative;
    top: 50px;
    margin: 0 auto;
    max-width: 900px;   /* klíčové */
  }

  .sluzby-list-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 60px;
  }

  .sluzby-side1 {
    text-align: right;
  }

  .sluzby-side2 {
    text-align: left;
  }

  .sluzby-side1 h2,
  .sluzby-side2 h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.5;
  }

  .sluzby-seznam1,
  .sluzby-seznam2 {
    font-size: 20px;
    line-height: 1.5;
  }

  .sluzby-seznam1 p,
  .sluzby-seznam2 p {
    margin: 0 0 10px;
  }

  .divider {
    display: block;
    width: 3px;
    background: #000;
    height: 100%;
  }

  .sluzby-call {
    position: relative;
    top: 125px;
    display: block;
    margin: 0 auto;
    padding: 20px 60px;
    font-size: 30px;
    letter-spacing: 4px;
    background-color: #ee3031;
    color: #ffffff;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .sluzby-call:hover {
    background-color: #000000;
    color: #ffffff;
  }

  /*KONTAKT CONTENT DESKTOP*/
  .kontakt {
    min-height: calc(100vh - 128px);
    padding: 80px 0 180px;
  }

  .kontakt-head {
    max-width: 900px;
    margin-bottom: 40px;
  }

  .kontakt-head h1 {
    font-size: 40px;
  }

  .kontakt-card {
    max-width: 900px;
    margin-bottom: 28px;
    padding: 24px 0;
  }

  .kontakt-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .kontakt-item {
    font-size: 20px;
  }

  .kontakt-map {
    max-width: 900px;
    margin-top: 32px;
  }

  .kontakt-map iframe {
    height: 320px;
    border-radius: 20px;
  }

  /*CAR DESKTOP*/
  .car img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 64px;
    width: 75vw;
    max-width: 900px;
    height: auto;
  }
}