/* ==========================================================================
   1. FLEX BLOKY V DLOUHÉM POPISU PRODUKTU (65/35)
   ========================================================================== */
.descr-blok {
  display: flex;
  align-items: center; /* Vertikální vycentrování textu a obrázku */
  gap: 30px;
  margin: 32px 0;
  width: 100%;
  box-sizing: border-box;
}

.descr-blok .db-media,
.descr-blok .db-content {
  box-sizing: border-box;
}

.descr-blok .db-media img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  display: block !important;
  object-fit: cover;
}

/* Ruční řízení stran: Prohození stran (Obrázek vpravo) */
.descr-blok.vpravo {
  flex-direction: row-reverse;
}

/* Oprava třídy začínající číslem (přidána podpora pro .db-13 i .\31 3) */
.descr-blok.db-13 .db-content,
.descr-blok.\31 3 .db-content {
  flex: 0 0 calc(65% - 15px);
  max-width: calc(65% - 15px);
}

.descr-blok.db-13 .db-media,
.descr-blok.\31 3 .db-media {
  flex: 0 0 calc(35% - 15px);
  max-width: calc(35% - 15px);
}

/* Responzivita (Mobil & Tablet) */
@media (max-width: 767px) {
  .descr-blok,
  .descr-blok.vpravo {
    flex-direction: column !important;
    gap: 16px;
    margin: 24px 0;
  }
  
  .descr-blok .db-media {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  .descr-blok .db-content {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}


/* ==========================================================================
   2. MODULÁRNÍ GRID SYSTÉM (Grid 2, 3, 4 a 6)
   ========================================================================== */
.hc-grid-wrapper,
.hc-grid {
  --hc-blue: #000080;
  --hc-blue-90: rgba(0, 0, 128, 0.9);
  --hc-bg: #ffffff;
  --hc-text: #15324a;
  --hc-muted: #5d7285;
  --hc-line: #d8e4ee;
  --hc-shadow: 0 8px 28px rgba(0, 0, 128, 0.08);
  --hc-radius: 18px;

  font-family: "Poppins", sans-serif;
  font-size: 14pt;
  color: var(--hc-text);
  line-height: 1.6;
}

.hc-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  margin-bottom: 32px;
  box-sizing: border-box;
}

.hc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hc-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Box s podkladem */
.hc-box {
  background: var(--hc-bg);
  border: 2px solid var(--hc-line);
  border-radius: var(--hc-radius);
  padding: 24px;
  box-shadow: var(--hc-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.hc-box:hover {
  border-color: var(--hc-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 128, 0.15);
}

/* Box bez podkladu */
.hc-box.hc-box-plain {
  background: transparent;
  border: 2px solid var(--hc-blue) !important;
  box-shadow: none !important;
  padding: 12px;
  transform: none !important;
  transition: none !important;
}

.hc-box.hc-box-plain:hover {
  border-color: var(--hc-blue) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Vnitřek boxu */
.hc-box-media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: calc(var(--hc-radius) - 6px);
}

.hc-box-media img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hc-box-media .hc-icon {
  width: 48px;
  height: 48px;
  color: var(--hc-blue);
}

.hc-box-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.hc-box-title {
  font-family: "Poppins", sans-serif;
  font-size: 16pt;
  font-weight: 700;
  color: var(--hc-blue);
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.hc-box-text {
  font-size: 14pt;
  color: var(--hc-text);
  margin: 0;
  text-align: justify;
  flex-grow: 1;
}

/* Tlačítka v Gridu */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif !important;
  font-size: 14pt !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background-color: rgba(0, 0, 128, 0.6) !important;
  border: 2px solid rgba(0, 0, 128, 0.6) !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}

.hc-btn:hover {
  background-color: #000080 !important;
  border-color: #000080 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.2) !important;
}

.hc-btn:active {
  transform: translateY(1px);
}

/* Grid Responzivita */
@media (max-width: 992px) {
  .hc-grid-3,
  .hc-grid-4,
  .hc-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hc-grid-2,
  .hc-grid-3,
  .hc-grid-4,
  .hc-grid-6 {
    grid-template-columns: 1fr;
  }

  .hc-box {
    padding: 18px 16px;
    height: auto;
  }
}


/* ==========================================================================
   3. KARTY RECENZÍ / REFERENCE
   ========================================================================== */
.review-card {
  background: var(--hc-bg, #ffffff);
  border: 2px solid var(--hc-line, #d8e4ee);
  border-radius: var(--hc-radius, 18px);
  padding: 24px;
  box-shadow: var(--hc-shadow, 0 8px 28px rgba(0, 0, 128, 0.08));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  border-color: var(--hc-blue, #000080);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 128, 0.15);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f7ff;
  color: var(--hc-blue, #000080);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--hc-line, #d8e4ee);
}

.reviewer-name {
  font-size: 12pt;
  font-weight: 700;
  color: var(--hc-text, #15324a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviewer-role {
  font-size: 10pt;
  color: var(--hc-muted, #5d7285);
  margin-top: 1px;
}

.card-stars {
  color: #ffb400;
  font-size: 16pt;
  line-height: 1;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.review-text {
  font-size: 11pt;
  color: var(--hc-text, #15324a);
  line-height: 1.6;
  margin: 0 0 16px 0;
  text-align: justify;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--hc-line, #d8e4ee);
  gap: 8px;
  margin-top: auto;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9pt;
  font-weight: 600;
  color: var(--hc-blue, #000080);
  background: #f0f7ff;
  padding: 4px 10px;
  border-radius: 100px;
}

.review-date {
  font-size: 9pt;
  color: var(--hc-muted, #5d7285);
}

@media (max-width: 768px) {
  .review-card {
    padding: 18px 16px;
    height: auto;
  }
}


/* ==========================================================================
   4. SUMMARY BAR
   ========================================================================== */
.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  background: var(--hc-bg, #ffffff);
  border: 2px solid var(--hc-line, #d8e4ee);
  border-radius: var(--hc-radius, 18px);
  padding: 18px 28px;
  box-shadow: var(--hc-shadow, 0 8px 28px rgba(0, 0, 128, 0.08));
  box-sizing: border-box;
}

.summary-rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-score {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--hc-text, #15324a);
  line-height: 1;
}

.summary-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stars-row {
  color: #ffb400;
  font-size: 16pt;
  line-height: 1;
  letter-spacing: 2px;
}

.summary-count {
  font-size: 9.5pt;
  color: var(--hc-muted, #5d7285);
  font-weight: 500;
}

.summary-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10pt;
  color: var(--hc-text, #15324a);
  font-weight: 600;
  padding-left: 24px;
  border-left: 1px solid var(--hc-line, #d8e4ee);
  min-height: 38px;
}

.summary-tag svg {
  color: var(--hc-blue, #000080);
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .summary-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .summary-tag {
    padding-left: 0;
    border-left: none;
    min-height: auto;
  }
}


/* ==========================================================================
   5. SEKČNÍ OBALOVÝ BLOK S POZADÍM
   ========================================================================== */
.hc-bg-block {
  background-color: #F6F6F6;
  border: 2px solid var(--hc-line, #d8e4ee);
  border-radius: var(--hc-radius, 18px);
  padding: 32px;
  margin-bottom: 36px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hc-bg-block {
    padding: 20px 16px;
    border-radius: 12px;
  }
}


/* ==========================================================================
   6. INPUT FORM PRO OVĚŘENÍ DOSTUPNOSTI + AUTOCOMPLETE
   ========================================================================== */
.hc-checker-wrapper {
  max-width: 600px;
  margin: 0 auto 24px auto;
  font-family: "Poppins", sans-serif;
}

.hc-autocomplete {
  position: relative;
  width: 100%;
}

.hc-input-group {
  display: flex;
  gap: 10px;
}

#hc-search-input {
  flex: 1;
  font-size: 14pt !important;
  color: #15324A !important;
  background-color: #FAFAFB !important;
  border: 2px solid #E5EDF4 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

#hc-search-input:focus,
#hc-search-input:hover {
  border-color: #000080 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.08) !important;
}

#hc-search-btn {
  /* Sdílí vlastnosti s .hc-btn */
  cursor: pointer;
}

.hc-suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: #ffffff;
  border: 2px solid #E5EDF4;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.08);
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: none;
  overflow: hidden;
}

.hc-suggestions-list.active { display: block; }

.hc-suggestions-list li {
  padding: 12px 16px;
  font-size: 13pt;
  color: #15324A;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hc-suggestions-list li:hover,
.hc-suggestions-list li.active {
  background-color: #FAFAFB;
  color: #000080;
  font-weight: 600;
}

#hc-result {
  margin-top: 16px;
  border-radius: 12px;
  font-size: 13pt;
  line-height: 1.5;
  transition: all 0.3s ease;
}

#hc-result.success {
  padding: 16px;
  background-color: #f0fdf4;
  border: 2px solid #bbf7d0;
  color: #166534;
}

#hc-result.error {
  padding: 16px;
  background-color: #fef2f2;
  border: 2px solid #fecaca;
  color: #991b1b;
}

.hc-result-title {
  display: block;
  font-size: 14pt;
  margin-bottom: 6px;
}

@media (max-width: 576px) {
  .hc-input-group { flex-direction: column; }
  #hc-search-btn { width: 100%; }
}


/* ==========================================================================
   7. PLOVOUCÍ LIŠTA (FLOATING BAR)
   ========================================================================== */
#hcr-floating-bar.hcr-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

#hcr-floating-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto !important;
  transform: none;
  z-index: 9999;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border-radius: 12px !important;
  padding: 8px 12px;
  box-shadow: 0 8px 28px rgba(21, 50, 74, 0.16);
  border: 2px solid #E5EDF4;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#hcr-floating-bar .hc-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11pt !important;
  padding: 8px 14px !important;
  gap: 8px;
  line-height: 1.2;
  margin: 0 !important;
}

#hcr-floating-bar .hcr-phone-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #D8E4EE;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hcr-floating-bar .hcr-phone-icon svg {
  width: 15px;
  height: 15px;
  fill: #000080 !important;
}

#hcr-floating-bar .hcr-phone-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transform: scale(0.75);
  opacity: 0;
  animation: hcr-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes hcr-pulse {
  0% { transform: scale(0.7); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

#hcr-floating-bar .hcr-phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#hcr-floating-bar .hcr-phone-label {
  font-size: 8pt;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#hcr-floating-bar .hcr-phone-number {
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#hcr-floating-bar .hcr-divider {
  width: 1px;
  height: 32px;
  background-color: #E5EDF4;
  flex-shrink: 0;
  align-self: center;
}

#hcr-floating-bar .hc-btn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #hcr-floating-bar {
    bottom: 12px;
    right: 12px !important;
    left: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    padding: 6px 10px;
    gap: 8px;
    max-width: none;
  }

  #hcr-floating-bar .hcr-divider { display: none; }
  #hcr-floating-bar .hc-btn { padding: 8px 10px !important; }

  #hcr-floating-bar .hc-btn-phone {
    flex: 1 1 auto;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  #hcr-floating-bar .hcr-phone-icon,
  #hcr-floating-bar .hcr-phone-text {
    display: flex !important;
  }

  #hcr-floating-bar .hcr-phone-number {
    display: block !important;
    font-size: 10pt !important;
    color: #ffffff !important;
  }

  #hcr-floating-bar .hcr-phone-label,
  #hcr-floating-bar .hc-btn > span:not(.hcr-phone-icon):not(.hcr-phone-text) {
    display: none !important;
  }
}


/* ==========================================================================
   8. VYHLEDÁVACÍ POLE MAINPAGE
   ========================================================================== */
#formSearchForm,
#formSearchForm .search-input {
  border: 1px solid #D8E4EE !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#formSearchForm:hover,
#formSearchForm:hover .search-input {
  border-color: #000080 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.08) !important;
}

#formSearchForm:focus-within,
#formSearchForm:focus-within .search-input,
#formSearchForm .search-input:focus {
  border-color: #000080 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.2) !important;
  outline: none !important;
}


/* ==========================================================================
   9. RESPONZIVNÍ TABULKY
   ========================================================================== */
.hcr-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  font-family: inherit;
}

.hcr-responsive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5EDF4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hcr-responsive-table th {
  background-color: #000080;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 16px;
  text-align: left;
  border: none;
}

.hcr-responsive-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #333333;
  border-bottom: 1px solid #E5EDF4;
  vertical-align: middle;
}

.hcr-responsive-table tbody tr:last-child td { border-bottom: none; }
.hcr-responsive-table tbody tr:nth-child(even) { background-color: #F8FAFC; }

.hcr-code-badge {
  display: inline-block;
  background-color: #D8E4EE;
  color: #000080;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.hcr-time-badge {
  display: inline-block;
  background-color: #D8E4EE;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
}

/* Mobilní responzivita tabulky */
@media (max-width: 768px) {
  .hcr-responsive-table,
  .hcr-responsive-table thead,
  .hcr-responsive-table tbody,
  .hcr-responsive-table th,
  .hcr-responsive-table td,
  .hcr-responsive-table tr {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .hcr-responsive-table thead { display: none; }

  .hcr-responsive-table {
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .hcr-responsive-table tbody tr {
    background: #ffffff !important;
    border: 1px solid #E5EDF4;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(21, 50, 74, 0.08);
  }

  .hcr-responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px dashed #E5EDF4;
    font-size: 13px;
  }

  .hcr-responsive-table td:last-child {
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    margin-top: 4px;
  }

  .hcr-responsive-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #000080;
    text-align: left;
    padding-right: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }

  .hcr-responsive-table td[data-label="Název výkonu"] {
    font-size: 14px;
    color: #000080;
  }
}


/* ==========================================================================
   10. UNIVERZÁLNÍ TLAČÍTKOVÁ NAVIGACE (hcr-auto-nav)
   ========================================================================== */
.hcr-auto-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 20px 0 32px 0;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid #E5EDF4;
  border-radius: 12px;
}

.hcr-auto-nav:empty { display: none; }

.hcr-auto-nav .hc-btn {
  flex: 1 1 calc(25% - 10px);
  min-width: 160px;
  text-align: center;
  justify-content: center;
  padding: 10px 14px !important;
  font-size: 11pt !important;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}

h2[data-nav-label] {
  display: block !important;
  color: #000080;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E5EDF4;
}

html { scroll-behavior: smooth; }

.hcr-nav-target { scroll-margin-top: 100px; }

@media (max-width: 768px) {
  .hcr-auto-nav {
    gap: 8px;
    padding: 12px;
  }

  .hcr-auto-nav .hc-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
    font-size: 10pt !important;
    padding: 8px 10px !important;
  }
}