﻿/* ===== ZÁKLAD: RESET A PROMĚNNÉ ===== */

html{
  scroll-behavior: smooth;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --scroll-offset: 70px;
  --c-text: #0f172a;
  --c-white: #F9F9F9;
  --c-bg-soft: #eef2f6;
  --c-primary: #0b5aa6;
  --c-primary-2: #0a3f75;
  --c-accent: #d51f2f;
  --c-accent-soft: rgba(213,31,47,0.06);
  --b-soft: 1px solid rgba(15, 23, 42, 0.10);
  --b-soft-2: 1px solid rgba(15, 23, 42, 0.08);
  --b-accent: 1px solid rgba(213,31,47,0.22);
  --r-8: 8px;
  --r-12: 12px;
  --r-14: 14px;
  --r-16: 16px;
  --r-18: 18px;
  --sh-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
  --sh-soft-2: 0 10px 22px rgba(15, 23, 42, 0.06);
  --sh-strong: 0 18px 35px rgba(15, 23, 42, 0.10);
  --t-fast: 0.2s;
  --t-med: 0.3s;
}

body{
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--c-white);
  color: var(--c-text);
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

a{
  color: inherit;
  text-decoration: none;
}

img:not(.lightbox-img):not(.zoomable){
  pointer-events: none;
}

.container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.anchor-offset{
  scroll-margin-top: var(--scroll-offset);
}

/* ===== HEADER: HLAVIČKA A DESKTOP NAVIGACE ===== */

.site-header{
  background: #F9F9F9;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--b-soft);
}

.header-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  min-height: 80px;
}

.logo{
  height: 42px;
  display: block;
}

.logo-link{
  display: inline-block;
  position: relative;
  left: 0;
  margin: 0;
  transform: translateX(0);
  transition: transform var(--t-med) ease, left var(--t-med) ease;
}

.logo-link:hover{
  transform: scale(1.05);
}

nav{
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-btn{
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-12);
  font-weight: 500;
  color: var(--c-text);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-btn:hover{
  background: rgba(11, 90, 166, 0.10);
}

.nav-btn.primary{
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff;
}

.nav-btn.primary:hover{
  filter: brightness(1.2);
}

.desktop-header{
  display: flex;
}

.mobile-header{
  display: none;
}

/* ===== MOBILE MENU: MOBILNÍ NAVIGACE ===== */

.mobile-header{
  overflow: hidden;
  transition: max-height var(--t-med) ease;
  max-height: 85px;
}

.mobile-header.open{
  max-height: 330px;
}

.mobile-header.open .logo-link{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-header-content{
  padding: 0.75rem 1rem;
}

.mobile-top{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  transition: justify-content var(--t-med) ease;
}

.mobile-header.open .mobile-top{
  justify-content: center;
}

.mobile-toggle{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: var(--r-12);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-toggle:hover{
  background: rgba(11, 90, 166, 0.10);
}

.hamburger{
  width: 22px;
  height: 2px;
  background: var(--c-text);
  position: relative;
  display: block;
  border-radius: 999px;
}

.hamburger::before,
.hamburger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 999px;
  transition: transform var(--t-fast) ease, top var(--t-fast) ease, opacity var(--t-fast) ease;
}

.hamburger::before{
  top: -7px;
}

.hamburger::after{
  top: 7px;
}

.mobile-header.open .hamburger{
  background: transparent;
}

.mobile-header.open .hamburger::before{
  top: 0;
  transform: rotate(45deg);
}

.mobile-header.open .hamburger::after{
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu{
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) ease;
  padding: 0.25rem 0 0.75rem;
}

.mobile-header.open .mobile-menu{
  opacity: 1;
  visibility: visible;
}

.mobile-links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

/* ===== HERO: ÚVODNÍ SEKCE ===== */

.hero{
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url("images/main.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1;
}

.hero-text{
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 1rem;
  margin: 0 auto;
  width: 100%;
  max-width: 1140px;
}

.hero-text h1,
.hero-text h2{
  text-align: left;
}

.hero-status-wrap{
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.hero-text h1{
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.hero-text h2{
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 400;
  color: #dbeafe;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.hero-status{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.hero-status.kontakt-stav-soon{
  color: #fff7ed;
  background: rgba(255, 165, 0, 0.3);
}

.hero-status::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: currentColor;
}

.hero-status.kontakt-stav-loading{
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.65);
}

.hero-status.kontakt-stav-open{
  color: #dcfce7;
  background: rgba(22, 101, 52, 0.72);
}

.hero-status.kontakt-stav-closed{
  color: #fee2e2;
  background: rgba(153, 27, 27, 0.72);
}

@media (max-width: 768px){
  .hero-status-wrap{
    margin-top: 1.1rem;
  }

  .hero-status{
    font-size: 0.95rem;
    max-width: 100%;
  }
}

/* ===== INFOBOX: AKTUÁLNÍ INFORMACE ===== */

.infobox-section{
  padding: 2rem 0 1.5rem;
}

.infobox{
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: var(--b-soft);
  border-radius: 22px;
  padding: 1.6rem 1.75rem 1.6rem 1.9rem;
  margin: 0 auto;
  max-width: 1140px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.infobox::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--c-accent);
}

.infobox-header{
  margin: 0 0 1rem 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.infobox-title{
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
}

#infobox-content{
  display: grid;
  gap: 0.85rem;
}

.infobox h3,
.infobox p,
.infobox li{
  margin: 0;
  color: var(--c-text);
}

.infobox h3{
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 600;
}

.infobox p,
.infobox li{
  font-size: 1rem;
  line-height: 1.65;
}

.infobox p + p,
.infobox h3 + p,
.infobox h3 + ul,
.infobox p + ul,
.infobox ul + p{
  margin-top: 0.15rem;
}

.infobox ul,
.infobox ol{
  margin: 0;
  padding-left: 1.2rem;
}

.infobox li + li{
  margin-top: 0.35rem;
}

.infobox strong{
  font-weight: 800;
  color: var(--c-text);
}

.infobox a{
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 90, 166, 0.22);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.infobox a:hover{
  color: var(--c-primary-2);
  border-bottom-color: rgba(10, 63, 117, 0.45);
}

@media (max-width: 768px){
  .infobox-section{
    padding: 1.5rem 0 1.25rem;
  }

  .infobox{
    padding: 1.15rem 1rem 1.15rem 1.15rem;
    border-radius: 18px;
  }

  .infobox::before{
    width: 4px;
  }

  .infobox-header{
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
  }

  .infobox-title{
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .infobox h3{
    font-size: 1.08rem;
  }

  .infobox p,
  .infobox li{
    font-size: 0.98rem;
    line-height: 1.62;
  }
}

@media (max-width: 420px){
  .infobox{
    padding: 1rem 0.95rem 1rem 1.05rem;
    border-radius: 16px;
  }
}

/* ===== SLUŽBY: NABÍZENÉ SLUŽBY ===== */

#nabizene-sluzby .sluzby-list{
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 0;
}

#nabizene-sluzby .sluzba{
  background: transparent;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#nabizene-sluzby .sluzby-list .sluzba:nth-last-child(-n+2){
  border-bottom: 0;
}

#nabizene-sluzby .sluzba-ico{
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--r-12);
  background: rgba(238, 242, 246, 0.92);
  border: var(--b-soft-2);
  font-size: 1.25rem;
  line-height: 1;
}

#nabizene-sluzby .sluzba-ico img{
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

#nabizene-sluzby .sluzba-body{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#nabizene-sluzby .sluzba-title{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  width: 100%;
  position: static;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: var(--c-text);
}

#nabizene-sluzby .sluzba-title::after{
  content: none !important;
}

#nabizene-sluzby .sluzba-desc{
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: none;
  color: rgba(15, 23, 42, 0.78);
}

@media (max-width: 900px){
  #nabizene-sluzby .sluzby-list{
    grid-template-columns: 1fr;
  }

  #nabizene-sluzby .sluzby-list .sluzba:nth-last-child(-n+2){
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  #nabizene-sluzby .sluzby-list .sluzba:last-child{
    border-bottom: 0;
  }
}

@media (max-width: 420px){
  #nabizene-sluzby .sluzba{
    padding: 16px 0;
  }

  #nabizene-sluzby .sluzba-ico{
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1080px){
  #nabizene-sluzby .sluzby-list{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  #nabizene-sluzby .sluzba{
    padding: 16px 0;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  #nabizene-sluzby .sluzby-list .sluzba:last-child{
    border-bottom: 0;
  }

  #nabizene-sluzby .sluzba-ico{
    width: 36px;
    height: 36px;
    border-radius: var(--r-12);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(238, 242, 246, 0.92);
    border: var(--b-soft-2);
    font-size: 1.1rem;
    line-height: 1;
  }

  #nabizene-sluzby .sluzba-body{
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  #nabizene-sluzby .sluzba-title{
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 0;
    position: static;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.2px;
  }

  #nabizene-sluzby .sluzba-title::after{
    content: none !important;
  }

  #nabizene-sluzby .sluzba-desc{
    width: 100%;
    margin-top: 6px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: rgba(15, 23, 42, 0.82);
  }
}

/* ===== GALERIE: FOTOGALERIE ===== */

.galerie{
  padding: 1.75rem 0;
}

.galerie-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.galerie-grid img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-14);
  cursor: pointer;
  transition: transform var(--t-med) ease, box-shadow var(--t-med) ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.galerie-grid img:hover{
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px){
  .galerie-grid img{
    cursor: default;
    pointer-events: none;
    transition: none;
  }

  .galerie-grid img:hover{
    transform: none;
    box-shadow: none;
  }
}

/* ===== SPOLEČNÉ SEKCE: NADPISY A TEXT ===== */

.sekce-nadpis{
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-text);
  text-align: left;
  margin-bottom: 1.75rem;
  position: relative;
  padding-left: 14px;
  letter-spacing: 0.3px;
}

.sekce-nadpis::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 3px;
  background: var(--c-accent);
}

@media (max-width: 768px){
  .sekce-nadpis{
    font-size: 1.65rem;
    text-align: center;
    padding-left: 14px;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }

  .sekce-nadpis::before{
    display: block;
  }
}

.info-section{
  padding: 1.75rem 0;
}

.terms{
  padding: 1rem 0;
}

.terms p{
  margin-bottom: 0.6rem;
}

/* ===== TECHNICKÁ PŘÍRUČKA ===== */

.tech-section{
  padding: 1.75rem 0;
}

.tech-wrap{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.tech-card{
  width: 100%;
  background: var(--c-white);
  border: var(--b-soft);
  border-radius: var(--r-18);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.tech-card[open]{
  border-color: rgba(213, 31, 47, 0.25);
}

.tech-sum{
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  position: relative;
}

.tech-sum::-webkit-details-marker{
  display: none;
}

.tech-sum::after{
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  font-size: 1rem;
}

.tech-card[open] .tech-sum::after{
  content: "▴";
}

.tech-ico{
  width: 38px;
  height: 38px;
  border-radius: var(--r-14);
  display: grid;
  place-items: center;
  background: rgba(238,242,246,0.92);
  border: var(--b-soft-2);
  font-size: 1.2rem;
}

.tech-ico img{
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.tech-title{
  font-weight: 800;
  letter-spacing: 0.2px;
}

.tech-sub{
  display: none;
  color: rgba(15,23,42,0.70);
  font-weight: 600;
  font-size: 0.95rem;
  padding-right: 24px;
}

.tech-card[open] .tech-sub{
  display: block;
}

.tech-body{
  padding: 0 16px 16px;
  border-top: 1px solid rgba(15,23,42,0.08);
  overflow: hidden;
  transform-origin: top;
  animation: techClose 0.25s ease forwards;
}

.tech-card[open] .tech-body{
  animation: techOpen 0.35s ease forwards;
}

.tech-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
  padding-top: 1rem;
}

.tech-note{
  margin: 0 0 1rem;
  color: rgba(15,23,42,0.85);
  line-height: 1.6;
}

.tech-list{
  padding-left: 1.2rem;
  margin: 0;
}

.tech-list li{
  margin: 8px 0;
  line-height: 1.55;
}

.tech-callout{
  margin-top: 1rem;
  padding: 12px;
  border-radius: var(--r-14);
  border: var(--b-accent);
  background: var(--c-accent-soft);
  line-height: 1.55;
}

.tech-fig{
  margin: 0;
  padding: 0;
  height: 100%;
}

.tech-fig img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-14);
  border: var(--b-soft);
  box-shadow: var(--sh-soft-2);
}

.tech-fig figcaption{
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(15,23,42,0.70);
}

.tech-list-2col{
  columns: 2;
  column-gap: 32px;
}

.tech-list-2col li{
  break-inside: avoid;
}

.tech-table{
  margin-top: 1rem;
  border: var(--b-soft);
  border-radius: var(--r-14);
  overflow: hidden;
}

.tech-row{
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 10px 12px;
  border-top: 1px solid rgba(15,23,42,0.08);
}

.tech-row:first-child{
  border-top: 0;
}

.tech-head{
  background: rgba(238,242,246,0.70);
  font-weight: 800;
}

.tech-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.tech-group{
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--r-16);
  padding: 12px;
  background: rgba(248,250,252,0.60);
}

.tech-group h4{
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(213,31,47,0.22);
  display: inline-block;
}

.tech-card[open]{
  transform: translateY(-2px);
  box-shadow: var(--sh-strong);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-tires .tech-body{
  padding-top: 1rem;
}

.tech-tires-cols{
  align-items: start;
}

.tech-tires .tech-group{
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.tech-tires .tech-group h4{
  display: block;
  margin: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  background: rgba(238,242,246,0.72);
}

.tech-tires .tech-table{
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tech-tires .tech-row-3{
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.35fr) minmax(120px, 1fr);
  gap: 12px;
  align-items: start;
}

.tech-tires .tech-row{
  padding: 11px 16px;
}

.tech-tires .tech-head{
  background: rgba(15,23,42,0.04);
  color: rgba(15,23,42,0.88);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.tech-tires .tech-table .tech-row:not(.tech-head):nth-child(even){
  background: rgba(248,250,252,0.88);
}

.tech-cell-label{
  display: none;
}

@media (max-width: 900px){
  .tech-tires .tech-row-3{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tech-tires .tech-head{
    display: none;
  }

  .tech-tires .tech-row{
    padding: 12px 14px;
  }

  .tech-cell-label{
    display: block;
    margin-bottom: 2px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: rgba(15,23,42,0.56);
  }

  .tech-tires .tech-table .tech-row:not(.tech-head){
    border-top: 1px solid rgba(15,23,42,0.08);
  }
}

.tech-tires .tech-cols{
  align-items: stretch;
}

.tech-tires .tech-group{
  height: 100%;
  display: flex;
  flex-direction: column;
}

@keyframes techOpen{
  from{
    opacity: 0;
    transform: translateY(-6px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes techClose{
  from{
    opacity: 1;
    transform: translateY(0);
  }

  to{
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ===== KONTAKT ===== */

.kontakt{
  padding: 1.75rem 0;
}

#technicka-prirucka .sekce-nadpis{
  margin-bottom: 3.6rem;
}

#kontakt .sekce-nadpis{
  margin-bottom: 4.5rem;
}

.kontakt-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 0;
}

.kontakt-info{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}

.kontakt-radek{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--b-soft);
}

.kontakt-radek:last-child{
  padding-bottom: 0;
  border-bottom: none;
}

.kontakt-label{
  font-weight: 700;
  color: var(--c-text);
}

.kontakt-hodnota{
  line-height: 1.6;
}

.kontakt-adresa-flex{
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.kontakt-adresa-flex a{
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--t-fast) ease;
}

.kontakt-adresa-flex a:hover{
  color: var(--c-primary);
}

.kontakt-hodiny{
  list-style: none;
  padding: 0;
  margin: 0;
}

.kontakt-hodiny li{
  padding: 0.2rem 0;
}

.kontakt-hodiny li.kontakt-dnes{
  color: var(--c-primary-2);
  font-weight: 700;
}

.kontakt-hodiny li.kontakt-dnes::after{
  content: "Dnes";
  display: inline-block;
  margin-left: 0.8rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(11, 90, 166, 0.10);
  color: var(--c-primary-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.kontakt-mapa{
  width: 100%;
  min-height: 340px;
  height: 100%;
  border-radius: var(--r-12);
  overflow: hidden;
  align-self: start;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.kontakt-mapa iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px){
  .kontakt-layout{
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }

  .kontakt-info{
    align-self: start;
  }

  .kontakt-radek{
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .kontakt-label{
    font-weight: 800;
  }

  .kontakt-mapa{
    min-height: 260px;
    height: 260px;
  }
}

/* ===== LIGHTBOX ===== */

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--t-med);
  z-index: 1000;
}

.lightbox.show{
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img{
  max-width: calc(100% - 180px);
  max-height: 80%;
  border-radius: var(--r-8);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}

.lightbox-nav:hover{
  background: rgba(255,255,255,0.24);
}

.lightbox-nav:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox-prev{
  left: 24px;
}

.lightbox-next{
  right: 24px;
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

@media (max-width: 1200px){
  .lightbox-img{
    max-width: calc(100% - 120px);
  }

  .lightbox-prev{
    left: 16px;
  }

  .lightbox-next{
    right: 16px;
  }
}

/* ===== FOOTER ===== */

footer{
  background: var(--c-bg-soft);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE: GLOBÁLNÍ BLOKY ===== */

@media (max-width: 900px){
  .sluzby-list{
    grid-template-columns: 1fr;
  }

  .galerie-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid{
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .tech-list-2col{
    columns: 1;
  }

  .tech-cols{
    grid-template-columns: 1fr;
  }

  .tech-fig{
    height: auto;
  }

  .tech-fig img{
    height: auto;
  }

  .tech-sum{
    grid-template-columns: 42px 1fr;
  }

  .tech-sub{
    grid-column: 1 / -1;
    padding-left: 54px;
    padding-right: 24px;
    margin-top: -4px;
  }

  .tech-row{
    grid-template-columns: 110px 1fr;
  }
}

@media (max-width: 600px){
  .galerie-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px){
  .infobox{
    padding: 14px;
  }

  .sluzba{
    padding: 14px;
  }

  .sluzba-ico{
    width: 40px;
    height: 40px;
  }

  .tech-row{
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 1080px){
  .desktop-header{
    display: none;
  }

  .mobile-header{
    display: block;
  }

  .hero{
    height: 400px;
    padding: 1.5rem 0;
  }

  .hero-text h1{
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-text h2{
    font-size: 1.2rem;
  }

  .mobile-links{
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .mobile-links .nav-btn{
    display: block;
    width: 100%;
    text-align: center;
  }

  .lightbox{
    display: none !important;
  }

  .sluzby-list{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sluzba{
    padding: 14px 0 12px;
    background: var(--c-white);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .sluzba-ico{
    width: 36px;
    height: 36px;
    border-radius: var(--r-12);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(238, 242, 246, 0.92);
    border: var(--b-soft-2);
    font-size: 1.15rem;
    line-height: 1;
  }

  .sluzba-body{
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .sluzba-title{
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 8px;
    width: 100%;
    display: block;
  }

  .sluzba-title::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--c-accent);
    border-radius: 999px;
  }

  .sluzba-desc{
    width: 100%;
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: rgba(15, 23, 42, 0.82);
  }

  .sluzba:active{
    transform: scale(0.99);
  }
}

/* ===== PŘÍSTUPNOST: OMEZENÍ ANIMACÍ ===== */

@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}