:root {
  --bg-color: #212121;
  --text-white: #ffffff;
  --text-heading: #ededed;
  --text-primary: #d4d4d4;
  --text-secondary: #aaaaaa;
  --text-muted: #7e7e7e;
  --link-color: #e0e0e0;
  --link-hover: #ffffff;
  --bullet-color: #888888;
  --icon-bg: rgba(255, 255, 255, 0.07);
  --icon-bg-hover: rgba(255, 255, 255, 0.15);
  --icon-border: rgba(255, 255, 255, 0.12);
  --icon-border-hover: rgba(255, 255, 255, 0.28);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.site-wrap {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

/* Jméno a titul */
.header-wrap {
  margin-bottom: 1.75rem;
}

.title {
  color: var(--text-white);
  font-size: clamp(2.2rem, 6.5vw, 4.375rem); /* až 70px */
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}

.title .degree {
  font-size: clamp(1.6rem, 4.8vw, 3.125rem); /* až 50px */
  font-weight: 500;
  color: #f3f3f3;
}

.sub-title {
  color: var(--text-heading);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Bio a kontakty */
.bio-wrap {
  margin-bottom: 1.5rem;
}

.bio-text {
  color: var(--text-primary);
  font-size: 1.025rem;
  line-height: 1.6;
}

.contact-wrap {
  margin-bottom: 2.25rem;
}

.contact-item {
  color: var(--text-primary);
  font-size: 1.025rem;
  line-height: 1.7;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover, a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

/* Služby a technologie - perfektní zarovnání */
.details-section {
  max-width: 580px;
  margin: 0 auto 2.25rem auto;
  text-align: left;
}

.section-title {
  color: var(--text-heading);
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.section-title.tech {
  margin-top: 1.65rem;
}

.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.item-list li::before {
  content: "•";
  position: absolute;
  left: 0.15rem;
  top: 0;
  color: var(--bullet-color);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Fakturační údaje */
.legal-wrap {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Sociální a kontaktní ikony */
.social-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  color: var(--text-heading);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover, .social-link:focus-visible {
  background: var(--icon-bg-hover);
  border-color: var(--icon-border-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responzivní přizpůsobení pro mobilní zařízení */
@media (max-width: 600px) {
  body {
    padding: 35px 16px;
  }

  .title {
    margin-bottom: 0.5rem;
  }

  .sub-title {
    margin-bottom: 1.25rem;
  }

  .bio-text,
  .contact-item {
    font-size: 0.95rem;
  }

  .details-section {
    max-width: 100%;
  }

  .item-list li {
    font-size: 0.925rem;
    line-height: 1.6;
  }

  .legal-wrap {
    font-size: 0.85rem;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }
}
