:root {
  --primary-color: #fdc12d;
  --secondary-color: #e5ac14;
  --text-color: #1f2937;
  --muted-text: #6b7280;
  --light-bg: #f7f7f9;
  --card-shadow: 0 6px 18px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --elevated-shadow: 0 10px 24px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --radius: 12px;
  --radius-pill: 9999px;
}

body {
  color: var(--text-color);
  background-color: #fff;
  line-height: 1.65;
}

/* Hlavička projektu */
.project-header {
  padding: 2rem 0;
}

.project-category {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
}

.project-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--text-color);
}

.project-meta span {
  margin: 0 .75rem;
  color: var(--muted-text);
  font-size: .95rem;
}

.project-meta i {
  margin-right: 0.5rem;
}

/* Karty s obrázky */
.project-image-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.project-image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevated-shadow);
}

/* Label před/po */
.card-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,.92);
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .85rem;
  z-index: 1;
  box-shadow: var(--card-shadow);
  backdrop-filter: saturate(140%) blur(2px);
}

.image-wrapper {
  position: relative;
  padding-top: 66.67%; /* 3:2 Aspect Ratio */
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Přehledová karta */
.overview-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
}

.leadd {
  font-size: 1rem !important;
  color: #4b5563;
}

/* Sekce projektu */
.section-number {
  color: var(--primary-color);
  font-size: .9rem;
}

.project-section {
  margin: 3rem 0;
}

.project-section h2 {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
}

/* Požadavky / realizace */
.requirement-item {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.requirement-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
  border-color: #e6e8ed;
}

.requirement-item i {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: .75rem;
}

.requirement-item p {
  margin-bottom: .25rem;
  font-weight: 600;
}

.requirement-item small {
  color: var(--muted-text);
}

/* Sekce „Součástí zadání bylo“ */
.project-section.requirements {
  text-align: center;
}

.project-section.requirements h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted-text);
  margin-bottom: 1.25rem;
}

/* Tlačítka */
.btn-primary {
  background-color: var(--primary-color) !important;
  border: none !important;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  color: #000 !important;
  box-shadow: var(--card-shadow) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: var(--elevated-shadow) !important;
  color: #000 !important;
  outline: none !important;
}

/* Nenápadný odkaz dole */
.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .75;
}

.link-ghost:hover {
  opacity: 1;
}

/* Responsivita */
@media (max-width: 768px) {
  .project-title {
    font-size: 2rem;
  }
  .project-meta span {
    display: inline-block;
    margin: .25rem .5rem;
  }
  .requirement-item {
    margin-bottom: 1rem;
  }
}

.comparison-section .row 
{
    display: flex;
    justify-content: center;
    align-items: center;
}
.comparison-section img {
    max-width: 100%;
    height: auto;
}


.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.col-md-3 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.requirement-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.realization-list { max-width: 900px; margin: 1rem auto; padding-left: 0; }
.realization-list .clean-list { list-style: none; padding: 0; margin: 0; }
.realization-list .clean-list li {
    position: relative;
    padding-left: 2.4rem;
    margin: 0.75rem 0;
    line-height: 1.4;
    color: #263238;
    background: #fff;
    border-radius: 8px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.realization-list .clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffc107;
    box-shadow: 0 0 0 4px rgba(255,193,7,0.06);
}

@media (max-width: 576px) {
    .realization-list .clean-list li { padding-left: 1.8rem; }
    .realization-list .clean-list li::before { left: 0; width: 9px; height: 9px; }
}


.btn-sm-custom {
    font-size: 0.875rem; 
    padding: 0.5rem 1rem;
}

.back-button {
    position: absolute;
    top: 1rem;
    left: 1rem; 
    z-index: 1000; 
}




.modal-custom {
  display:none;
  position:fixed; 
  z-index:100000 !important; 
  left:0; 
  top:0; 
  width:100%; 
  height:100%; 
  overflow:auto; 
  background-color:rgba(0,0,0,0.95); 
}
.modal-content { 
  margin: 40px auto; 
  position:relative; 
  width:90%; 
  max-width:1000px; 
  z-index:100001; 
}
.modal-img {
  width:100%; 
  height:auto; 
  display:block; 
  margin:0 auto; 
  max-height:72vh; 
  object-fit:contain; 
}
.modal-caption { 
  text-align:center; 
  color:#fff; 
  padding:10px 0; 
}
.modal-close { 
  position:absolute; 
  top:10px; 
  right:20px; 
  color:#fff; 
  font-size:34px; 
  cursor:pointer; 
  z-index:100003; 
}
.modal-prev, .modal-next {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:#fff;
    font-size:28px;
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    user-select:none;
    text-decoration:none;
    z-index:100002;
    background:rgba(0,0,0,0.45);
    border-radius:6px;
    box-shadow:0 2px 8px rgba(0,0,0,0.4);
    -webkit-appearance:none;
    appearance:none;
}
.modal-prev { 
  left:12px;
}
.modal-next { 
  right:12px; 
}
.modal-prev:hover, .modal-next:hover { 
  background:rgba(255,255,255,0.08); 
}
.modal-thumbs { 
  display:flex; 
  justify-content:center; 
  gap:8px; 
  padding:12px 6px;
  overflow-x:auto; 
}
.modal-thumbs img { 
  width:120px; 
  height:80px; 
  object-fit:cover; 
  cursor:pointer; 
  opacity:0.7; 
  transition:opacity .18s, transform .18s; 
  border:2px solid transparent; 
}
.modal-thumbs img.active, .modal-thumbs img:hover { 
  opacity:1; 
  transform:scale(1.02); 
  border-color:#fff; 
}
.gallery .thumb { 
  width:100%; 
  height:140px; 
  object-fit:cover; 
  cursor:pointer; 
  padding:6px; 
  display:block; 
}
@media (max-width:576px){ .modal-thumbs img{ width:80px; height:60px; } .modal-prev,.modal-next{font-size:28px;} }