html {
  scroll-behavior: smooth;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  caret-color: transparent;

}

input:focus,
textarea:focus,
select:focus {
  caret-color: auto;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: #333;
}




/* === Výchozí světlý motiv === */
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --accent-color: #333333;
  --card-bg: #f9f9f9;
}

/* === Tmavý režim podle systému === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --card-bg: #1e1e1e;
  }
}





.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
/* MENU */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: rgba(255, 255, 255, 1);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  margin-top: 50px;
}

.site-header.transparent {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

.logo {
  height: 65px;
  vertical-align: middle;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.main-nav a.active {
  color: var(--accent-color);
  font-weight: bold;
}


.main-nav a:hover {
  background: #eee;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.section {
  padding: 80px 0;
  text-align: center;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.has-submenu {
  position: relative;
}

.has-submenu .submenu {
  display: none;
  position: absolute;
  background: white;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid #ccc;
  z-index: 1000;
  min-width: 160px;
}

.has-submenu:hover .submenu {
  display: block;
}

.has-submenu .submenu li {
  border-bottom: 1px solid #eee;
}

.has-submenu .submenu li:last-child {
  border-bottom: none;
}

.has-submenu .submenu li a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}

.has-submenu .submenu li a:hover {
  background-color: #f5f5f5;
}


/* DESKTOP */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  padding: 6px 10px;
  transition: color 0.3s;
}

.main-nav a.active {
  font-weight: bold;
  color: #000;
}

.main-nav a::after {
  width: 100%;
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #333;
  transition: width 0.3s ease;
  
}

.main-nav a:hover {
  background: none;
  color: #111;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* RESPONSIVITA */
@media (max-width: 768px) {

  .nav-right {
    position: relative;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    background: #fff;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    top: 70px;
    right: 20px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: 0.3s ease;
  }
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* JAZYKOVÝ PŘEPÍNAČ */

.language-selector {
  position: relative;
  margin-left: 20px;
}

#lang-btn {
  padding: 8px 12px;
  border: none;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#lang-btn:hover {
  background: #ddd;
}

#lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  z-index: 999;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

#lang-dropdown.hidden {
  display: none;
}

#lang-dropdown li {
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}

#lang-dropdown li:hover {
  background: #f5f5f5;
}



/* ZÁPATÍ */

.site-footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  font-size: 0.9em;
  margin-top: 50px;
}


/* O MNĚ */

.about-me-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.about-me {
  background: #fff;
  color: #333;
  flex: 1 1 300px;
  padding: 60px 10vw;
  text-align: justify;
}

.about-me h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-me p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.9; /* dříve bylo 1.8 */
  text-align: justify;
}

.about-me-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-text {
  flex: 1 1 50%;
  min-width: 300px;
  max-width: 600px; /* přidáno – omezí šířku textu */
}

.about-photo {
  flex: 1 1 350px;
  max-width: 400px;
  text-align: center;
}

.about-photo {
  flex: 1 1 250px;
  text-align: center;
}

.about-photo img {
  width: 100%;
  height: auto;
  max-width: 300px; /* kontrola velikosti */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

#more-about {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

#more-about p {
  text-align: justify;
}

#more-about.expanded {
  max-height: 1000px;
}

#about-toggle {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#about-toggle:hover {
  background: #444;
}

/* === RESPONSIVITA SEKCE O MNĚ === */
 @media (max-width: 768px) {
  .about-me-container {
    flex-direction: column;
    padding: 40px 20px;
  }

  .about-photo img {
    max-width: 220px;
  }
}

  #about-toggle {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
  }

[data-aos] {
  will-change: transform, opacity;
}


/* SLUŽBY */
.services {
  background-color: var(--card-bg);
  padding: 80px 20px;
}

.services h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.4rem;
  color: var(--text-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--bg-color);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.service-card img {
  max-width: 100px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.service-card p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  text-align: justify;
}

.service-btn {
  margin-top: 30px;
  padding: 10px 18px;
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.service-btn:hover {
  background: #444;
}

/* Tmavý režim */
@media (prefers-color-scheme: dark) {
  .service-card {
    background: #1a1a1a;
    color: #f2f2f2;
    border: 1px solid #333;
    text-align: justify;
  }

  .service-card p {
    color: #ccc;
    text-align: justify;
  }

  .services {
    background-color: #111;
  }

  .service-btn {
    background: #f2f2f2;
    color: #111;
    margin-top: 20px;
    text-decoration: none;
  }

  .service-btn:hover {
    background: #ddd;
  }

#close-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-color);
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
}





/* REFERENCE */
.references h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.reference-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.reference-card:hover {
  transform: translateY(-5px);
}

.reference-card img {
  width: 100%;
  display: block;
}

.reference-card h3 {
  font-size: 1.2rem;
  padding: 15px 20px 5px;
}

.reference-card p {
  font-size: 1rem;
  padding: 0 20px 20px;
  text-align: justify;
}

/* CENÍK */

.pricing {
  padding: 60px 20px;
  background: var(--bg-color);
}

.pricing-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: stretch;
  margin-top: 50px;
  margin-bottom: 50px;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 350px;
  min-height: 520px; /* nastav dostatečně velkou výšku */
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  text-align: justify;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-align: center;
}

.pricing-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.pricing-card img {
  display: block;
  margin: 0 auto 15px auto;
  width: 64px;
  height: auto;
}

.price {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 15px;
}

.pricing-card p {
  min-height: 80px;
  margin: 20px;
  text-align: center;
}

.pricing-card strong {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-size: 1.2rem;
  text-align: center;
}

.pricing-card .pricing-description {
  flex-grow: 1;
  text-align: justify;
}

.pricing-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
  transition: background 0.3s ease;
  text-align: center;
  width: auto;
  max-width: 90%;
  align-self: center;
}

.pricing-btn:hover {
  background: #444;
}

@media (max-width: 500px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card {
    width: 100%;
    padding: 20px;
  }
}



/* KONTAKT */

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start; /* ← to je klíčová změna */
}

.contact-info {
  flex: 1 1 300px;
  font-size: 1.1rem;
  padding-top: 120px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form button {
  padding: 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #555;
}

.hidden {
  display: none;
}


/* Responsivita */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}

/* AUTOMATICKÝ TMAVÝ REŽIM */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
    color: #f2f2f2;
  }

  .site-header {
    background: rgba(25, 25, 25, 0.9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .main-nav a {
    color: #f2f2f2;
  }

  .main-nav a::after {
    background-color: #f2f2f2;
  }

  .main-nav a:hover {
    color: #fff;
  }

  [id]::before {
  content: "";
  display: block;
  height: 100px; /* uprav podle výšky tvé hlavičky */
  margin-top: -100px;
  visibility: hidden;
}

  .pricing-card,
  .reference-card,
  .service-card,
  .contact-form,
  .language-selector,
  #lang-dropdown {
    background-color: #222;
    color: #f2f2f2;
    border-color: #444;
  }

  input,
  textarea,
  select {
    background-color: #1a1a1a;
    color: #f2f2f2;
    border: 1px solid #555;
  }

  #lang-btn {
    background: #333;
    color: #f2f2f2;
  }

  #lang-btn:hover {
    background: #444;
  }

  #lang-dropdown li:hover {
    background: #333;
  }

  .menu-toggle span {
    background: #f2f2f2;
  }
}




/* SERVICES - WEBDESIGN */

.service-detail {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.service-detail {
    text-align: justify;
  }

.service-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.service-section {
  margin-bottom: 40px;
}

.service-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  margin-top: 150px;
  margin-bottom: 30px;
  text-align: center;
}

.service-section ul,
.service-section ol {
  padding-left: 20px;
  text-align: justify;
}

.cta-center {
  text-align: center;
  margin-top: 40px;
}

.cta-center .pricing-btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
}

.benefits .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.benefit-item {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.benefit-item p {
  font-size: 1.05rem;
  text-align: center;
  color: var(--text-color);
}

@media (max-width: 768px) {
.timeline {
    padding: 0 20px;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    width: 90%;
    max-width: 360px;
    text-align: center;
  }


    .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

   .timeline-icon {
    left: 50%;
    top: -24px; /* nebo uprav dle velikosti ikony */
    transform: translateX(-50%);
    margin-bottom: 10px;
    z-index: 2;
  }
}



/* ČASOVÁ OSA */

.timeline-section {
  padding: 4rem 2rem;
  background: none;
  text-align: center;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 2rem auto;
  padding: 0;
  max-width: 700px;
  padding-bottom: 0px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: auto;
  width: 4px;
  background-color: #222;
  transform: translateX(-50%);
  z-index: 1;
  height: calc(100% - 60px); /* zkrácení čáry o 60px */
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  min-height: 160px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: -22px; /* posune ikonu nad box */
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 2 2px 2px rgba(0, 0, 0, 0.1);
  z-index: 2;
}


.timeline-content {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: inline-block;
  width: 100%;              /* přidáno */
  max-width: 400px;         /* upraveno: omezuje max šířku */
  min-height: 80px;         /* přidáno: zajišťuje stejnou výšku */
  box-sizing: border-box;   /* přidáno pro konzistenci výpočtu šířky */
  text-align: center;
  position: relative;
  z-index: 2;
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*SEO stránka*/

/*CEN9K stránka*/
/* === CENÍK STRÁNKA === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto;
}

.pricing-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  min-height: 3.2em; /* pevná výška nadpisu pro zarovnání */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-description {
  list-style: disc;
  text-align: left;
  padding-left: 20px;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}


.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #000;
  margin: 20px 0;
  min-height: 1.5em;
  text-align: center;
}

.pricing-btn {
  margin-top: auto;
  padding: 12px 24px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-block;
}

.pricing-btn:hover {
  background: #444;
}

.contact-form {
  padding: 70px;
  max-width: 600px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .pricing h2 {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 25px 20px;
  }
}

@media (prefers-color-scheme: dark) {
  .benefit-item,
  .timeline-content,
  .form-message {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--accent-color);
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .timeline-content {
    margin-top: 40px;
    font-size: 0.95rem;
    width: 90%;
    max-width: 360px;
    text-align: center;
  }
}