/* =========================================================================
   LT Solutions / Ľubomír Tkáč — osobný web
   Farebná téma: tmavá modro-sivá, akcenty tyrkysová (teal) a jantárová (amber)
   — červená farba sa v téme zámerne nepoužíva.
   ========================================================================= */

:root {
  /* --- Základná paleta --- */
  --color-navy-900: #0b1626;
  --color-navy-800: #101d33;
  --color-blue-700: #1c5aa3;
  --color-blue-600: #2a6fd1;
  --color-blue-500: #4c8ff0;

  /* Pastelovo-modrý text na tmavo-modrom pozadí (hero, hlavička CV) */
  --color-blue-tint: #cfe0fa;
  /* Priesvitné "čipové" pozadie/text pre modré štítky na tmavých kartách */
  --color-blue-chip-bg: rgba(76, 143, 240, 0.16);
  --color-blue-chip-text: #8fb8f5;

  /* Tyrkysová — druhý akcent (napr. "CEO", aktuálna pozícia v časovej osi) */
  --color-teal-600: #14b8a6;
  --color-teal-500: #2dd4c0;
  --color-teal-chip-bg: rgba(20, 184, 166, 0.16);
  --color-teal-chip-text: #5eead4;

  /* Jantárová — hlavný akcent (CTA tlačidlá, dôrazy) */
  --color-amber-600: #f0a323;
  --color-amber-700: #cf8a13;
  --color-amber-chip-bg: rgba(240, 163, 35, 0.16);
  --color-amber-chip-text: #f5be5c;
  --color-amber-light: #ffd28a;

  /* Sivá škála — v tmavej téme 900 = najsvetlejšia (text), 100 = najtmavšia (pozadie) */
  --color-gray-900: #eef1f5;
  --color-gray-700: #b6bcc7;
  --color-gray-500: #838a99;
  --color-gray-300: #3a4049;
  --color-gray-200: #262b34;
  --color-gray-100: #1b1f27;
  --color-white: #ffffff;

  --color-bg: #14171d;
  --color-surface: #1b1f27;
  --color-card: #1f2430;
  --color-input-bg: #171b22;

  --color-text: var(--color-gray-900);
  --color-text-muted: var(--color-gray-700);
  --color-border: var(--color-gray-200);
  --color-heading: var(--color-gray-900);

  --color-link: var(--color-blue-500);
  --color-accent: var(--color-amber-600);

  /* --- Typografia --- */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* --- Rozmery --- */
  --container-w: 1160px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 32px rgba(0, 0, 0, 0.4);
  --header-h: 72px;
}

/* =========================================================================
   Reset a základy
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--color-heading); font-weight: 700; }
p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 12px;
  background: var(--color-navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* =========================================================================
   Tlačidlá
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-amber-600);
  color: var(--color-navy-900);
}
.btn-primary:hover { background: var(--color-amber-700); box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-outline {
  background: transparent;
  color: var(--color-blue-500);
  border-color: var(--color-blue-600);
}
.btn-outline:hover { background: var(--color-blue-chip-bg); }

.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* =========================================================================
   Hlavička / navigácia
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 13, 22, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-blue-500), var(--color-teal-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
  flex-shrink: 0;
}
.brand-name-full { display: none; }
.brand-name-short { display: inline; }
@media (min-width: 560px) {
  .brand-name-full { display: inline; }
  .brand-name-short { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.86);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255,255,255,0.09);
  color: #fff;
  text-decoration: none;
}
.nav-list a.is-active {
  color: #fff;
  background: rgba(255,255,255,0.13);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.lang-switch a {
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.3px;
}
.lang-switch a.is-active {
  color: var(--color-navy-900);
  background: #fff;
}
.lang-switch a:hover { text-decoration: none; color: #fff; }
.lang-switch a.is-active:hover { color: var(--color-navy-900); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  width: 42px; height: 38px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 10px; font-size: 1.05rem; }
  .lang-switch { margin: 14px 0 0; padding: 14px 0 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.18); justify-content: flex-start; }
  .lang-switch a { padding: 8px 14px; font-size: 0.9rem; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: radial-gradient(circle at 18% 20%, var(--color-blue-700) 0%, var(--color-navy-900) 55%, var(--color-navy-900) 100%);
  color: #fff;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,163,35,0.28) 0%, rgba(240,163,35,0) 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; display: flex; justify-content: center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-blue-tint);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-teal-500);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.28);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 14px;
}
.hero h1 .accent { color: var(--color-amber-light); }
.hero-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-blue-tint);
  margin-bottom: 18px;
}
.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }

.hero-photo-frame {
  width: 260px; height: 260px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--color-blue-500), var(--color-teal-600));
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-navy-900);
}

/* =========================================================================
   Sekcie — všeobecne
   ========================================================================= */
.section { padding: 88px 0; }
.section-alt { background: var(--color-surface); }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  color: var(--color-teal-500);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--color-text-muted); }

/* =========================================================================
   Karty projektov / domén
   ========================================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}

.project-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-blue-600);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface);
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.05); }

.project-card-img.is-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-blue-700), var(--color-navy-900));
}
.project-card-img.is-brand .brand-mark-lg {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--color-blue-500), var(--color-teal-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.2rem;
}
.project-card-img.is-brand span.brand-mark-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.project-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.project-card h3 { font-size: 1.05rem; margin: 0; }
.project-card h3 a { color: var(--color-heading); }
.project-card h3 a:hover { color: var(--color-blue-500); text-decoration: none; }
.project-card p { color: var(--color-text-muted); font-size: 0.93rem; margin: 0; flex-grow: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-blue { background: var(--color-blue-chip-bg); color: var(--color-blue-chip-text); }
.tag-teal { background: var(--color-teal-chip-bg); color: var(--color-teal-chip-text); }
.tag-amber { background: var(--color-amber-chip-bg); color: var(--color-amber-chip-text); }
.tag-gray { background: rgba(255,255,255,0.07); color: var(--color-text-muted); }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}
.project-link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.project-link:hover svg { transform: translate(2px, -2px); }

/* Vybrané projekty (timeline zoznam) */
.work-list { display: flex; flex-direction: column; gap: 18px; }
.work-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.work-item:last-child { border-bottom: none; }
.work-year { color: var(--color-amber-chip-text); font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.work-item h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--color-heading); }
.work-item p { margin: 0; color: var(--color-text-muted); font-size: 0.94rem; }
.work-item a.project-link { margin-top: 6px; }
@media (max-width: 560px) {
  .work-item { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================================
   Kontaktný formulár
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--color-navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
}
.contact-info-card h3 { color: #fff; font-size: 1.2rem; }
.contact-info-card > p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.contact-info-list li a,
.contact-info-list li span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.96rem;
}
.contact-info-list li a:hover { color: var(--color-amber-light); text-decoration: none; }
.contact-info-list svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--color-amber-600);
}

.social-links { display: flex; gap: 10px; margin-top: 26px; }
.social-links a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.social-links a:hover { background: var(--color-teal-600); border-color: var(--color-teal-600); transform: translateY(-2px); text-decoration: none; }
.social-links svg { width: 19px; height: 19px; }

.contact-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-row { margin-bottom: 20px; }
.form-row-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .form-row-cols { grid-template-columns: 1fr; } }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--color-heading);
}
.req { color: var(--color-amber-600); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--color-text);
  background: var(--color-input-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 3px var(--color-blue-chip-bg);
}
textarea { resize: vertical; min-height: 130px; }

.field-hint { font-size: 0.8rem; color: var(--color-gray-500); margin-top: 6px; }
.field-error { font-size: 0.82rem; color: var(--color-amber-600); margin-top: 6px; display: none; }
.form-row.has-error input,
.form-row.has-error textarea { border-color: var(--color-amber-600); }
.form-row.has-error .field-error { display: block; }

/* Honeypot skryté pole */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--color-text-muted); margin-bottom: 22px; }
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; }
.form-consent a { font-weight: 600; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--color-teal-chip-bg); color: var(--color-teal-chip-text); }
.form-status.is-error { background: var(--color-amber-chip-bg); color: var(--color-amber-chip-text); }

/* =========================================================================
   Päta stránky
   ========================================================================= */
.site-footer {
  background: var(--color-navy-900);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 26px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 0.95rem;
}
.footer-contact a:hover { color: var(--color-amber-light); text-decoration: none; }
.footer-contact svg { width: 18px; height: 18px; color: var(--color-amber-600); flex-shrink: 0; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--color-teal-600); text-decoration: none; }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.84rem;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.65); }
.footer-legal a:hover { color: #fff; }

/* =========================================================================
   Stránka O mne / CV
   ========================================================================= */
.cv-page-header {
  background: linear-gradient(160deg, var(--color-navy-900) 0%, var(--color-blue-700) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.cv-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}
@media (max-width: 760px) {
  .cv-header-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.cv-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.35);
}
.cv-header-grid h1 { color: #fff; margin-bottom: 6px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cv-header-role { color: var(--color-blue-tint); font-weight: 600; margin-bottom: 14px; }
.cv-header-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.cv-header-meta li { display: flex; align-items: center; gap: 7px; }
.cv-header-meta svg { width: 15px; height: 15px; opacity: .85; }
.cv-header-actions { display: flex; flex-direction: column; gap: 10px; }

.cv-body { padding: 56px 0 90px; }
.cv-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .cv-layout { grid-template-columns: 1fr; } }

.cv-block { margin-bottom: 46px; }
.cv-block:last-child { margin-bottom: 0; }
.cv-block-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}
.cv-block-title svg { width: 22px; height: 22px; color: var(--color-amber-600); }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  position: relative;
  padding: 0 0 28px 26px;
  border-left: 2px solid var(--color-border);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-blue-600);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-blue-600);
}
.timeline-item.is-current::before { background: var(--color-teal-600); box-shadow: 0 0 0 2px var(--color-teal-600); }
.timeline-period { font-size: 0.82rem; font-weight: 700; color: var(--color-blue-500); text-transform: uppercase; letter-spacing: 0.3px; }
.timeline-item h4 { margin: 4px 0 2px; font-size: 1.05rem; }
.timeline-org { font-size: 0.9rem; color: var(--color-text-muted); font-weight: 600; margin-bottom: 10px; }
.timeline-item ul { margin: 10px 0 0; display: flex; flex-direction: column; gap: 7px; }
.timeline-item ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.timeline-item ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-blue-500);
}

.skills-group { margin-bottom: 26px; }
.skills-group:last-child { margin-bottom: 0; }
.skills-group h4 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--color-gray-500); margin-bottom: 14px; }
.skill-row { margin-bottom: 12px; }
.skill-row-head { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 5px; }
.skill-row-head span:first-child { font-weight: 600; color: var(--color-heading); }
.skill-row-head span:last-child { color: var(--color-gray-500); }
.skill-bar { height: 7px; border-radius: 999px; background: var(--color-gray-200); overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-blue-600), var(--color-teal-500)); }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.cv-sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 24px;
}
.cv-sidebar-card:last-child { margin-bottom: 0; }
.cv-sidebar-card h4 { font-size: 0.95rem; margin-bottom: 16px; }

.lang-list { display: flex; flex-direction: column; gap: 12px; }
.lang-list li { display: flex; justify-content: space-between; font-size: 0.9rem; }
.lang-list li span:first-child { font-weight: 600; color: var(--color-heading); }
.lang-list li span:last-child { color: var(--color-gray-500); }

.edu-item { margin-bottom: 18px; }
.edu-item:last-child { margin-bottom: 0; }
.edu-item .timeline-period { display: block; margin-bottom: 3px; }
.edu-item h4 { font-size: 0.96rem; margin: 0 0 2px; }
.edu-item p { font-size: 0.87rem; color: var(--color-text-muted); margin: 0; }

.note-box {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-left: 3px solid var(--color-blue-500);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =========================================================================
   Právne stránky (ochrana osobných údajov / cookies)
   ========================================================================= */
.legal-page { padding: 64px 0 90px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-updated { color: var(--color-gray-500); font-size: 0.88rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 40px; }
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page p, .legal-page li { color: var(--color-text-muted); }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-page ul li { margin-bottom: 6px; }
.legal-page a { font-weight: 600; }
.legal-page strong { color: var(--color-heading); }

/* =========================================================================
   404 a drobné utility
   ========================================================================= */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-navy-900);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-teal-600); text-decoration: none; }
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================================================
   Tlač — CV do PDF
   ========================================================================= */
@media print {
  .site-header, .site-footer, .back-to-top, .cv-header-actions, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .cv-page-header { background: #fff !important; color: #000 !important; padding: 0 0 20px; }
  .cv-page-header * { color: #000 !important; }
  .cv-photo { border-color: var(--color-gray-300); }
  .cv-body { padding: 20px 0 0; }
  .project-card, .contact-form-card, .cv-sidebar-card, .pill, .skill-bar { background: #fff !important; border-color: #ccc !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .cv-block-title svg, .timeline-item::before { color: #000 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .skill-bar-fill { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
