*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 62.5%; overflow-x: hidden; }
:root {
  --navy: #044B7C;
  --blue: #1E73BE;
  --light-blue: #D8EEFC;
  --pale-blue: #f0f6fb;
  --red: #CE1F29;
  --white: #ffffff;
  --text: #222222;
  --border: #dce8f3;
  --gray-text: #546e7a;
  --gray-muted: #90a4ae;
  --sep-color: #ccd6de;
  --dot-green: #4caf50;
  --dot-yellow: #ffc107;
  --dot-red: #f44336;
  --shadow-sm: 0 2px 8px rgba(4,75,124,0.06);
  --shadow-hover: 0 12px 32px rgba(4,75,124,0.14);
  --radius: 1.2rem;
}
body {
  font-family: "Raleway", "HelveticaNeue", Helvetica, Arial, sans-serif;
  font-size: 1.6rem; line-height: 1.6; color: var(--text);
  background: var(--white); min-height: 100vh;
}
.preview-bar {
  color: #fff; font-weight: 700;
  font-size: 1.3rem; text-align: center; padding: .6rem 1rem;
  letter-spacing: .03em; position: sticky; top: 0; z-index: 9999;
}
.preview-bar-unsaved { background: #e65100; }
.preview-bar-saved { background: #2e7d32; }
.config-warning {
  background: #fff3cd; border: 1px solid #ffc107; color: #856404;
  padding: 1rem 1.5rem; border-radius: .8rem; margin-bottom: 1.2rem; font-size: 1.3rem;
}
.config-load-error {
  grid-column: 1 / -1; text-align: center; padding: 2rem; color: #ce1f29;
}
a { text-decoration: none; color: inherit; }
.page-wrap {
  display: flex; flex-direction: column; min-height: 100vh;
  max-width: 1100px; margin: 0 auto; padding: 0 3rem;
}


/* TOPBAR */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem; border-bottom: 1.5px solid var(--navy); margin-bottom: 1.6rem;
}
.hdr-logo-link img { height: 8.4rem; display: block; }
.topbar-right { text-align: right; font-size: 1.4rem; color: var(--gray-text); line-height: 1.55; }
.topbar-right a { color: var(--navy); font-weight: 700; transition: color .15s; }
.topbar-right a:hover { color: var(--blue); }
.topbar-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }

/* HERO */
.hero {
  display: flex; align-items: center; gap: 2rem;
  padding: 2rem 2.4rem 2.4rem; position: relative; overflow: hidden;
  background: var(--pale-blue); border-radius: 2rem; margin-bottom: 1.6rem;
  animation: fadeUp .6s ease-out both;
}
.hero::before {
  content: ''; position: absolute; top: -4rem; right: -5rem;
  width: 30rem; height: 22rem; background: var(--light-blue);
  border-radius: 55% 45% 52% 48% / 48% 52% 45% 55%; opacity: 0.22; z-index: 0; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; top: 0; right: -1rem;
  width: 20rem; height: 16rem; background: var(--light-blue);
  border-radius: 48% 52% 58% 42% / 52% 48% 42% 58%; opacity: 0.15; z-index: 0; pointer-events: none;
}
.hero-text { flex: 1; position: relative; z-index: 1; }
.hero-text h1 {
  font-size: 3.8rem; line-height: 1.15; color: var(--navy); font-weight: 800;
  position: relative; padding-bottom: 1.8rem;
}
.hero-text h1::after {
  content: ""; background: var(--red); width: 42px; height: 9px; border-radius: 4px;
  position: absolute; left: 0; bottom: 0;
}
.hero-text h2 { font-size: 1.8rem; font-weight: 500; color: var(--blue); margin-top: 1rem; }

/* Hero status card */
.hero-status {
  flex-shrink: 0; cursor: pointer; margin-right: 4rem; z-index: 1;
  border-radius: var(--radius);
  transition: background .2s;
}
.hero-status:hover { background: rgba(4,75,124,.06); }
.hero-status-inner {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 1.2rem;
  text-decoration: none; color: inherit; padding: 1.6rem 2rem;
}
.hero-status-inner .semaphore { display: flex; flex-direction: column; gap: 0.4rem; }
.status-cloud-text { display: flex; flex-direction: column; }
.status-cloud-title { font-size: 1.3rem; color: var(--gray-text); font-weight: 400; }
.status-cloud-sub { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.status-loading .status-cloud-sub { animation: blink 1s ease-in-out infinite; }
.status-cloud-arrow { font-size: 1rem; color: var(--blue); margin-top: .3rem; font-weight: 600; text-decoration: underline; }

/* Semaphore */
.semaphore-dot {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; opacity: 0.25;
  transition: opacity .4s, box-shadow .4s; border: 2px solid rgba(0,0,0,0.08);
}
.dot-green { background: var(--dot-green); }
.dot-yellow { background: var(--dot-yellow); }
.dot-red { background: var(--dot-red); }
.semaphore-dot.active { opacity: 1; border-color: transparent; transform: scale(1.35); }
.dot-green.active  { animation: pulse-g 2s ease-in-out infinite; }
.dot-yellow.active { animation: pulse-y 2s ease-in-out infinite; }
.dot-red.active    { animation: pulse-r 2s ease-in-out infinite; }
@keyframes pulse-g { 0%,100%{box-shadow:0 0 0 0 rgba(76,175,80,.5)}  50%{box-shadow:0 0 0 8px rgba(76,175,80,0)} }
@keyframes pulse-y { 0%,100%{box-shadow:0 0 0 0 rgba(255,152,0,.5)}  50%{box-shadow:0 0 0 8px rgba(255,152,0,0)} }
@keyframes pulse-r { 0%,100%{box-shadow:0 0 0 0 rgba(244,67,54,.5)}  50%{box-shadow:0 0 0 8px rgba(244,67,54,0)} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* CARDS AREA */
.cards-bg { background: var(--pale-blue); border-radius: 2rem; padding: 2.4rem; margin-bottom: 1.6rem; }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.sec-header {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 2.4rem;
  margin-bottom: -0.2rem; margin-top: 0.8rem;
}
.sec-header:first-child { margin-top: 0; }
.sec-label { font-size: 1.8rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.sec-divider { flex: 1; height: 2px; background: linear-gradient(90deg, var(--light-blue) 0%, transparent 100%); border-radius: 2px; }

/* CARD */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s; box-shadow: var(--shadow-sm);
  animation: fadeUp .5s ease-out both;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s; z-index: 2;
}
.card:hover::before { transform: scaleX(1); }
.card-photo { width: 100%; height: 11rem; overflow: hidden; position: relative; }
.card-photo.img-error { background: var(--pale-blue); display: flex; align-items: center; justify-content: center; }
.card-photo.img-error::after { content: attr(data-title); color: var(--navy); font-size: 1.3rem; font-weight: 700; text-align: center; padding: 0 1.2rem; line-height: 1.4; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-photo img { transform: scale(1.07); }
.card-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(4,75,124,0.2) 100%);
}
.card-body { padding: 1.4rem 1.6rem 1.6rem; }
.card-title {
  font-size: 1.55rem; font-weight: 800; color: var(--navy); line-height: 1.3;
  margin-bottom: 0.4rem; display: flex; align-items: flex-start; gap: 0.6rem; flex-wrap: wrap;
}
.card-desc { font-size: 1.4rem; color: var(--gray-text); line-height: 1.5; }
.card-arrow {
  position: absolute; bottom: 1.2rem; right: 1.2rem; width: 2.6rem; height: 2.6rem;
  background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0.2; transform: translateX(0); transition: opacity .25s, transform .25s;
}
.card-arrow svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-arrow { opacity: 1; }
.card.card-featured { border: 2px solid var(--navy); box-shadow: 0 6px 24px rgba(4,75,124,.16); }
.card-full { grid-column: 1 / -1; }
.grid-two   { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-three { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-four  { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* BADGE */
.badge {
  display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 800;
  padding: 2px 8px; border-radius: 20px; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.badge-new-soft { background: #e3f5e9; color: #1d7a35; }
.badge-live { background: #d32f2f; color: #fff; }
.badge-rec  { background: #555; color: #fff; }
.badge-c2   { background: var(--navy); color: #fff; }

/* CLAIM */
.claim-section { display: flex; justify-content: center; padding: 2.4rem 0; }
.claim-section a { display: inline-block; }
.claim-section img { height: 3.8rem; filter: drop-shadow(0 3px 8px rgba(4,75,124,0.1)); transition: transform .2s; }
.claim-section a:hover img { transform: scale(1.04); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(4,75,124,0.3);
  backdrop-filter: blur(8px); z-index: 1000; align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.visible { display: flex; }
.modal-box {
  background: var(--white); border-radius: 2rem; padding: 3.6rem 4rem; max-width: 50rem; width: 100%;
  box-shadow: 0 16px 48px rgba(4,75,124,0.18); text-align: center; animation: fadeUp .3s ease-out both;
}
.modal-icon { font-size: 4rem; margin-bottom: 1.4rem; }
.modal-box h3 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.modal-box p { font-size: 1.4rem; color: var(--gray-text); line-height: 1.65; margin-bottom: 1.6rem; }
.modal-buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.btn-primary {
  display: inline-flex; padding: 1rem 3rem; background: var(--navy); color: var(--white); border: none;
  border-radius: 50px; font-family: "Raleway", sans-serif; font-size: 1.4rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .2s; box-shadow: 0 4px 16px rgba(4,75,124,0.25);
  text-align: center; line-height: 1.4;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; padding: 0.8rem 2.4rem; background: transparent; color: var(--navy); border: 2px solid var(--border);
  border-radius: 50px; font-family: "Raleway", sans-serif; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* FOOTER */
.footer-wrap { margin-top: auto; padding-top: 1.6rem; }
.footer-divider {
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--light-blue) 15%, var(--light-blue) 85%, transparent 100%);
  margin-bottom: 1.2rem;
}
.footer-bar {
  background: var(--white); color: var(--gray-muted); font-size: 1.35rem; padding: 1.6rem 0 2.4rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
}
.footer-logo { height: 2.6rem; opacity: 0.5; margin-right: 0.8rem; }
.footer-bar a { color: var(--navy); font-weight: 600; transition: color .15s; }
.footer-bar a:hover { color: var(--blue); }
.footer-bar .sep { color: var(--sep-color); }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed; top: 13rem; left: 50%; z-index: 9999;
  transform: translateX(-50%) translateY(calc(-100% - 2rem));
  width: min(1100px, calc(100% - 6rem));
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  border-radius: 1.6rem;
  color: #fff;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  gap: 1.4rem; padding: 2.2rem 3.2rem;
  box-shadow: 0 8px 40px rgba(4,75,124,0.32);
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
.cookie-banner.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-text { margin: 0; max-width: 64rem; line-height: 1.6; color: rgba(255,255,255,.88); }
.cookie-buttons { display: flex; gap: 1rem; flex-shrink: 0; align-items: center; }
.btn-cookie-accept,
.btn-cookie-reject {
  border-radius: 50px;
  padding: .75rem 2rem; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform .2s, opacity .2s;
  white-space: nowrap;
}
.btn-cookie-accept {
  background: var(--white); color: var(--navy); border: 2px solid var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn-cookie-accept:hover { opacity: .9; transform: translateY(-1px); }
.btn-cookie-reject {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5);
}
.btn-cookie-reject:hover { border-color: var(--white); transform: translateY(-1px); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid-four { grid-template-columns: repeat(2,1fr); }
  .grid-three { grid-template-columns: repeat(2,1fr); }
  /* Poslední dlaždice sama na řádku se roztáhne na celou šířku */
  .grid-four .card:last-child:nth-child(odd),
  .grid-three .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cookie-banner { width: calc(100% - 3.2rem); padding: 1.8rem 2rem; border-radius: 1.2rem; }
  html { font-size: 56%; }
  .page-wrap { padding: 0 2rem; }
  .topbar { flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: 1.2rem 0; }
  .topbar-right { text-align: center; }
  .topbar-contacts { justify-content: space-between; width: 100%; margin-top: 0.3rem; }
  .hero { flex-direction: column; text-align: center; }
  .hero-status { margin-right: 0; margin-top: 1rem; }
  .hero-text h1 { font-size: 3.2rem; }
  .hero-text h1::after { left: 50%; transform: translateX(-50%); }
  .grid-four, .grid-three, .grid-two { grid-template-columns: 1fr; }
  .sec-label { font-size: 1.5rem; white-space: normal; }
  .cards-bg { padding: 1.6rem; border-radius: 1.4rem; }
  .footer-bar { flex-direction: column; gap: 0.4rem; padding: 1.4rem 2rem; text-align: center; }
  .footer-logo { margin-right: 0.4rem; }
}
