:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  padding: 2.5rem 1rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Profilová karta */
.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border-color);
}

/* Menší profilová fotka */
.avatar-wrapper {
  margin-bottom: 1.25rem;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.profile-card h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.profile-card .tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Kontaktní údaje */
/* UPRAVENÝ ZÁPIS PRO ROZLOŽENÍ 2x2 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f1f5f9;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.2s, transform 0.15s;
}

.contact-item:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.contact-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: var(--primary-light);
}

.contact-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item .value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Sekce Referencí */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.section-card h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  text-align: center;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.ref-logo-box {
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  min-height: 90px;
  transition: all 0.2s ease;
}

.ref-logo-box:hover {
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: var(--shadow-hover);
}

.ref-logo-box img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(80%);
  transition: filter 0.2s;
}

.ref-logo-box:hover img {
  filter: grayscale(0%);
}

.ref-placeholder-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Patička */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0;
}

@media (max-width: 600px) {
  body {
    padding: 1rem 0.5rem;
  }
  .profile-card {
    padding: 1.75rem 1.25rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
