/* ===== RESET & PROMĚNNÉ ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #1a2e6e;
  --color-text: #333333;
  --color-text-light: #999999;
  --color-border: #eeeeee;
  --color-tag-bg: #eef0f8;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo img { height: 48px; width: auto; }

.site-nav {
  display: flex;
  gap: 2rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-nav a {
  color: var(--color-primary);
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--color-primary);
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ===== HERO + SIDEBAR ===== */
.hero-section {
  display: flex;
  gap: 3rem;
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content { flex: 2; }

.hero-content h1 {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-sidebar {
  flex: 1;
  border-left: 2px solid var(--color-border);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}

.featured-list a {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.featured-list a:hover { color: var(--color-primary); }

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tag {
  background: var(--color-tag-bg);
  color: var(--color-primary);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 14px;
  display: inline-block;
}

.tag:hover { background: var(--color-primary); color: #fff; }

/* ===== SEKCE (Blog / K2030) ===== */
.content-section {
  padding: 2.5rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.content-section + .content-section {
  border-top: 1px solid var(--color-border);
}

.section-title {
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

/* Grid karet — 4 sloupce */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: block;
  color: var(--color-text);
}

.card:hover { box-shadow: 0 4px 16px rgba(26,46,110,0.1); }

.card-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--color-tag-bg);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tag-bg);
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.5rem;
}

.card-info-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.card-body { padding: 0.85rem; }

.card-category {
  font-size: 0.65rem;
  color: var(--color-text-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.card-perex {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.card-date {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 600;
}

.section-more {
  text-align: right;
  margin-top: 1.25rem;
}

.section-more a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
}

/* ===== STRÁNKA — listing ===== */
.page-header {
  padding: 2.5rem 3rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  color: var(--color-primary);
  font-weight: 900;
  font-size: 2rem;
}

/* ===== DETAIL PŘÍSPĚVKU ===== */
.post-layout {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 3rem;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.post-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.post-body { font-size: 1rem; line-height: 1.8; }
.post-body h2 { font-size: 1.3rem; color: var(--color-primary); margin: 1.5rem 0 0.5rem; }
.post-body p { margin-bottom: 1rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== STATICKÉ STRÁNKY ===== */
.static-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 3rem 3rem;
}

.static-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.static-page p { margin-bottom: 1rem; line-height: 1.75; }

/* ===== KONTAKTNÍ FORMULÁŘ ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  border-color: transparent;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.btn-primary:hover { background: #253f9e; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-row img { height: 36px; width: auto; }

.footer-social { display: flex; gap: 0.5rem; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.footer-contact-item a { color: #fff; }
.footer-contact-item a:hover { opacity: 0.8; }

.footer-right h2 {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-right p {
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.85;
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.5rem; }
  .site-nav { gap: 1rem; font-size: 0.75rem; }
  .hero-section { flex-direction: column; padding: 1.5rem; }
  .hero-sidebar { border-left: none; border-top: 2px solid var(--color-border); padding-left: 0; padding-top: 1.5rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .content-section { padding: 1.5rem; }
  .site-footer { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
  .post-layout, .static-page { padding: 0 1.5rem 2rem; }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .site-header { padding: 1rem; }
}
