:root {
  --green: #39ff14;
  --green-dim: #2ecc10;
  --green-dark: #1a7a08;
  --green-glow: rgba(57,255,20,0.18);
  --green-subtle: rgba(57,255,20,0.06);
  --green-subtle2: rgba(57,255,20,0.10);
  --bg: #0c0f0c;
  --bg2: #111611;
  --text: #d4f0cc;
  --text-muted: #7aaa70;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ═══ CUSTOM SCROLLBAR (Mobily a Tablety) ═══ */
@media (max-width: 1024px) {
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: #39ff14; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #50ff30; }
}

/* ═══ NAVIGATION ═══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12,15,12,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(57,255,20,0.12);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

/* ═══ NAV SCROLL PROGRESS BAR ═══ */
nav::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(
    90deg,
    rgba(57,255,20,0.55) 0%,
    var(--green) 60%,
    rgba(57,255,20,0.85) 100%
  );
  box-shadow: 0 0 10px rgba(57,255,20,0.6), 0 0 24px rgba(57,255,20,0.25);
  transition: width 0.08s linear;
  pointer-events: none;
  z-index: 1001;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
  text-shadow: 0 0 14px rgba(57,255,20,0.5);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
}

.nav-logo span { color: var(--text-muted); font-weight: 300; }

.nav-monogram {
  margin-left: 0.45rem;
  vertical-align: middle;
  flex-shrink: 0;
  transition: filter 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(57,255,20,0.4));
}
.nav-logo a:hover .nav-monogram {
  filter: drop-shadow(0 0 10px rgba(57,255,20,0.75));
  transform: scale(1.08);
}

nav ul { list-style: none; display: flex; gap: 0.3rem; margin: 0; padding: 0; }

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  transition: all 0.2s;
}

nav ul a:hover, nav ul a.active {
  color: var(--green);
  background: var(--green-subtle);
}

.nav-lang {
  position: relative;
  display: flex; align-items: center;
  margin-left: 0.4rem; padding-left: 0.6rem;
  border-left: 1px solid rgba(57,255,20,0.2);
}
.nav-lang-trigger {
  display: flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--green); text-transform: none;
  padding: 4px 8px; border-radius: 2px;
  transition: background 0.2s;
  font-family: inherit;
}
.nav-lang-trigger:hover { background: var(--green-subtle); }
.nav-flag { width: 16px; height: auto; border-radius: 2px; vertical-align: middle; display: inline-block; }
.nav-lang-trigger svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-lang.open .nav-lang-trigger svg { transform: rotate(180deg); }

.nav-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(12,15,12,0.97);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 4px;
  list-style: none;
  padding: 0.3rem 0;
  min-width: 130px;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav-lang.open .nav-lang-dropdown { display: block; }
.nav-lang-dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0;
  color: var(--text-muted); text-decoration: none; text-transform: none !important;
  transition: all 0.15s;
  font-family: inherit;
}
.nav-lang-dropdown li a:hover { color: var(--green); background: var(--green-subtle); }
.nav-lang-dropdown li a.active { color: var(--green); font-weight: 700; }

.nav-mobile-cta { display: none; }

@media (max-width: 1160px) {
  .nav-mobile-cta {
    display: inline-block;
    margin-left: auto;
    margin-right: 0.8rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: #0c0f0c; background: var(--green);
    padding: 0.4rem 0.9rem; border-radius: 2px;
    text-decoration: none; white-space: nowrap;
    transition: background 0.2s;
  }
  .nav-mobile-cta:hover { background: #50ff30; }
}

@media (max-width: 420px) {
  nav { padding: 0 0.75rem; }
  .nav-logo { font-size: 0.85rem; }
  .nav-monogram { width: 28px; height: 28px; }
  .nav-mobile-cta { font-size: 0.65rem; padding: 0.35rem 0.6rem; margin-right: 0.5rem; }
}

/* Tlačítka pro hamburger menu */
.nav-toggle, .nav-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2001;
}

.nav-toggle.hidden {
  display: none !important;
}

/* ═══ RESPONSIVE HAMBURGER MENU ═══ */
@media (max-width: 1160px) {
  nav { padding: 0 1.5rem; }

  .nav-toggle { display: block; }
  .nav-toggle svg { width: 28px; height: 28px; stroke: var(--green); }

  .nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  .nav-close svg { width: 32px; height: 32px; stroke: #ffffff; }

  nav ul:not(.nav-lang-dropdown) {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12,15,12,0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 0;
  }

  nav ul:not(.nav-lang-dropdown).menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav ul:not(.nav-lang-dropdown) > li > a {
    font-size: 1.6rem;
    color: var(--green);
    padding: 10px 20px;
    background: transparent !important;
  }

  nav ul:not(.nav-lang-dropdown) > li > a:hover {
    text-shadow: 0 0 12px rgba(57,255,20,0.6);
    transform: scale(1.05);
  }

  nav ul:not(.nav-lang-dropdown) > li > a.active {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255,255,255,0.6) !important;
    transform: scale(1.05);
  }

  .nav-lang {
    border-left: none;
    padding-left: 0;
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }
  .nav-lang-trigger { display: none; }
  .nav-lang-dropdown {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0.5rem;
    flex-direction: row !important;
    min-width: unset !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }
  .nav-lang-dropdown li { list-style: none; }
  .nav-lang-dropdown li a {
    display: inline-block !important;
    font-size: 0.9rem !important;
    padding: 5px 12px !important;
    color: rgba(57,255,20,0.7) !important;
    border: 1px solid rgba(57,255,20,0.4) !important;
    border-radius: 3px !important;
    background: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .nav-lang-dropdown li a.active { color: var(--green) !important; border-color: var(--green) !important; }
}

/* ═══ HERO ═══ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: clamp(120px, 22vh, 220px);
}

#skyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,15,12,0.55) 0%, rgba(12,15,12,0.72) 60%, rgba(12,15,12,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(60px, 10vh, 100px) 1.5rem 0;
  width: 100%;
}

.hero-eyebrow {
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  font-weight: 500;
  letter-spacing: clamp(1px, 0.8vw, 4px);
  text-transform: uppercase;
  color: var(--green-dim);
  margin-bottom: 1.2rem;
  opacity: 0.8;
  padding: 0 0.5rem;
  word-break: break-word;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-name .accent { color: var(--green); text-shadow: 0 0 30px rgba(57,255,20,0.6), 0 0 60px rgba(57,255,20,0.2); }

.hero-role {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.hero-role strong { color: var(--text); font-weight: 500; }
.hero-stats { color: var(--green) !important; font-weight: 500; }
.hero-role-break { display: inline; }
.hero-claim-break { display: inline; }
.hero-b2b-break { display: inline; }
.hero-stat-part { white-space: nowrap; display: inline-block; }
@media (max-width: 493px) {
  .hero-stat-sep { display: none; }
  .hero-stat-part::before { content: '· '; }
  .hero-stat-part::after { content: ' ·'; }
}
@media (min-width: 450px) and (max-width: 493px) {
  .hero-stat-sep { display: inline; }
  .hero-stat-part::before { content: ''; }
  .hero-stat-part::after { content: ''; }
}
@media (max-width: 519px) { .hero-b2b-break { display: block; } }
@media (max-width: 562px) { .hero-b2b-break-en { display: block; } }
@media (max-width: 472px) { .hero-claim-break { display: block; } }
@media (max-width: 600px) { .hero-role-break { display: block; } }

.hero-location { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-muted); opacity: 0.7; display: inline-flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

.hero-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--green); font-weight: 700; letter-spacing: 0.04em; }

.hero-cta { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.7rem 2rem; font-family: 'Roboto', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; transition: all 0.25s; cursor: pointer;
}
.btn-primary { background: var(--green); color: #0c0f0c; border: none; }
.btn-primary:hover { background: #50ff30; box-shadow: 0 0 24px rgba(57,255,20,0.5); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green); border: 1px solid rgba(57,255,20,0.4); }
.btn-outline:hover { background: var(--green-subtle); border-color: var(--green); box-shadow: 0 0 14px var(--green-glow); }

.hero-scroll {
  position: static; margin-top: 1.5rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--text-muted); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.5; animation: fadeUpDown 2.5s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; opacity: 0.6; }
@keyframes fadeUpDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ═══ MOBILE HERO ADJUSTMENTS ═══ */
@media (max-width: 768px) {
  #hero { padding-top: clamp(90px, 16vh, 160px); }
  .hero-cta { margin-bottom: 0; }
}

/* ═══ SECTIONS ═══ */
.section { max-width: 1020px; margin: 0 auto; padding: 6rem 2rem; scroll-margin-top: 72px; }
#kontakt, #contact { padding-bottom: 3rem; }

.section-label { display: flex; align-items: center; gap: clamp(0.4rem, 1.5vw, 1rem); margin-bottom: 3rem; flex-wrap: nowrap; min-width: 0; }
.section-num { font-size: clamp(0.58rem, 1.4vw, 0.72rem); font-weight: 700; letter-spacing: clamp(1px, 0.5vw, 3px); color: var(--green); text-transform: uppercase; white-space: nowrap; flex-shrink: 0; overflow: visible; }

.section-title {
  font-size: clamp(0.75rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  min-width: 0;
}

.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(57,255,20,0.25), transparent); transform-origin: left; transform: scaleX(0); transition: transform 2.5s ease; }
.section-line.line-animated { transform: scaleX(1); }
.section-title.title-animated { opacity: 1; transform: translateX(0); }

/* ═══ O MNĚ ═══ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
@media(max-width:1024px){ .about-grid{ grid-template-columns:1fr; } }
.about-text { font-size: 0.97rem; color: var(--text); line-height: 1.85; font-weight: 300; overflow-wrap: break-word; word-break: break-word; }
.about-text strong { color: var(--green); font-weight: 500; }
.about-text p + p { margin-top: 1rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; align-self: stretch; }
.about-stats .stat-card { height: 100%; }
@media (max-width: 1024px) { .about-stats { grid-template-rows: unset; align-self: auto; grid-auto-rows: auto; } .about-stats .stat-card { height: auto; } .stat-label { min-height: unset; } }
.stat-card { background: var(--green-subtle); border: 1px solid rgba(57,255,20,0.15); padding: 1.4rem 1.2rem; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; justify-content: center; }
.stat-card:hover { border-color: rgba(57,255,20,0.4); box-shadow: 0 0 16px var(--green-glow); }
.stat-num { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 900; color: var(--green); line-height: 1; text-shadow: 0 0 12px rgba(57,255,20,0.4); white-space: nowrap; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: 0.3rem; letter-spacing: 0.5px; min-height: unset; }

/* ═══ ZKUŠENOSTI ═══ */
.exp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.exp-card.is-open { align-self: start; }
.exp-card--bg { background: #1a7a08; }
.exp-card--bg.is-open { background: var(--green-subtle); }
@media (max-width: 1024px) { .exp-list { grid-template-columns: 1fr; } }
.exp-card {
  background: var(--green-subtle); border: 1px solid rgba(57,255,20,0.12); border-left: 3px solid var(--green);
  padding: 1.6rem 2rem 0; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden;
  cursor: pointer; user-select: none;
}
.exp-card:hover {
  border-color: rgba(57,255,20,0.35); border-left-color: var(--green);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 16px rgba(57,255,20,0.08); transform: translateX(3px);
}

/* Header: logo | info | toggle arrow */
.exp-header {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}
.exp-header-info { flex: 1; min-width: 0; }
.exp-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.exp-title { font-size: 1.05rem; font-weight: 700; color: #fff; white-space: normal; overflow: visible; }
.exp-period {
  font-size: 0.75rem; font-weight: 400; color: var(--green-dim); background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.2); padding: 2px 10px; border-radius: 2px; white-space: nowrap;
}
.exp-company { font-size: 0.88rem; font-weight: 500; color: var(--green-dim); line-height: 1.5; margin-top: 0.4rem; min-height: calc(0.88rem * 1.5 * 3); }

@media (max-width: 599px) {
  .exp-card { padding: 1.1rem 1rem 1.1rem 1.2rem; }
  .exp-card.is-open { padding-bottom: 0; }
  .exp-header { gap: 0.6rem; }
  .exp-body { margin: 0 -1rem 0 -1.2rem; }
  .exp-logo { display: none; }
  .exp-title { font-size: 0.92rem; }
  .exp-company { font-size: 0.72rem; line-height: 1.4; }
  .exp-period { font-size: 0.68rem; padding: 2px 7px; }
}

@media (min-width: 600px) and (max-width: 1920px) { .exp-logo { margin-left: 8px; } }

/* Logo */
.exp-logo {
  width: 50px; height: 50px; object-fit: contain; align-self: center; margin-top: -32px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(57,255,20,0.15);
  border-radius: 4px; padding: 4px; flex-shrink: 0;
}

/* Toggle arrow button */
.exp-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.exp-toggle:hover { opacity: 1; }
.exp-toggle svg {
  width: 22px; height: 22px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.exp-card.is-open .exp-toggle svg { transform: rotate(180deg); }

/* Collapsible body */
.exp-body {
  overflow: hidden;
  height: 0;
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
  transform: translateZ(0);
  /* Roztáhnout přes padding karty na plnou šířku */
  margin: 0 -2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: auto;
}
.exp-body-bg {
  position: relative;
  padding: 1.2rem 2rem 2.5rem;
  margin-top: 1rem;
  flex: 1;
  min-height: 160px;
  cursor:default;
}
.exp-body-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--exp-bg);
  background-size: var(--exp-bg-size, cover);
  background-position: var(--exp-bg-pos, center);
  background-repeat: no-repeat;
  transition: none;
}
.exp-body-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,18,10,1) 0%,
    rgba(10,18,10,0.6) 35%,
    rgba(10,18,10,0.8) 70%,
    rgba(10,18,10,1) 90%,
    rgba(10,18,10,1) 100%);
  pointer-events: none;
}
.exp-body-bg .exp-points {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  .exp-body {
    position: relative;
  }
  .exp-body.is-closing::before,
  .exp-body.is-closing::after {
    display: none;
  }
  .exp-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(to bottom,
        rgba(10,18,10,1) 0%,
        rgba(10,18,10,0.6) 35%,
        rgba(10,18,10,0.8) 70%,
        rgba(10,18,10,1) 90%,
        rgba(10,18,10,1) 100%),
      var(--exp-bg);
    background-size: cover, var(--exp-bg-size, cover);
    background-position: center, var(--exp-bg-pos, center);
    background-repeat: no-repeat, no-repeat;
    pointer-events: none;
  }
  .exp-body::after { display: none; }
  .exp-body-bg {
    margin-top: 0;
    min-height: unset;
    background: none;
  }
  .exp-body-bg::before,
  .exp-body-bg::after {
    display: none;
  }
}

.exp-points { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.exp-points li { font-size: 0.875rem; color: var(--text); font-weight: 300; padding-left: 1.2rem; position: relative; line-height: 1.6; }
.exp-points li::before { content: '▸'; position: absolute; left: 0; color: var(--green); font-size: 0.7rem; top: 3px; }

/* ═══ CERTIFIKACE ═══ */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 1.2rem; }
.cert-card {
  background: var(--green-subtle); border: 1px solid rgba(57,255,20,0.12); padding: 1.4rem 4.5rem 1.4rem 1.6rem;
  transition: all 0.25s; display: flex; flex-direction: column; gap: 0.5rem; position: relative; overflow: hidden;
}
.cert-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), transparent); opacity: 0; transition: opacity 0.3s;
}
.cert-card:hover::before { opacity: 1; }
.cert-card:hover { border-color: rgba(57,255,20,0.35); box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 12px rgba(57,255,20,0.07); }
.cert-issuer-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); opacity: 0.8; }
.cert-name { font-size: 0.9rem; font-weight: 500; color: #fff; line-height: 1.4; }
.cert-meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 300; }
.cert-logo-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(57,255,20,0.15);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--green);
  object-fit: contain;
}

/* ═══ DOVEDNOSTI ═══ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.skill-group { background: var(--green-subtle); border: 1px solid rgba(57,255,20,0.12); padding: 1.6rem; }
.skill-group-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.3rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(57,255,20,0.15);
}
.skill-row { margin-bottom: 1rem; }
.skill-meta { display: flex; justify-content: space-between; font-size: 0.83rem; color: var(--text); font-weight: 400; margin-bottom: 0.4rem; }
.skill-pct { color: var(--text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.skill-track { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.skill-fill {
  height: 100%; background: linear-gradient(90deg, var(--green-dark), var(--green)); border-radius: 2px;
  width: 0;
}
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; margin-top: 0.3rem; }
.tag {
  font-size: 0.75rem; font-weight: 400; color: var(--text-muted); background: rgba(57,255,20,0.07);
  border: 1px solid rgba(57,255,20,0.18); padding: 4px 11px; border-radius: 2px; transition: all 0.2s; cursor: default;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tag:hover { color: var(--green); background: rgba(57,255,20,0.12); border-color: rgba(57,255,20,0.4); }

/* ═══════════════════════════════════════════════
   SPOLUPRÁCE CAROUSEL
═══════════════════════════════════════════════ */
#spoluprace {
  max-width: 1020px;
}

/* ── Grid layout ──────────────────────────────────────────
   Desktop:  [arrow] [  viewport  ] [arrow]   row 1
             [   dots spanning all 3 cols    ]   row 2
   Mobile:   [      viewport (full)         ]   row 1
             [arrow] [  dots  ] [arrow]          row 2
─────────────────────────────────────────────────────── */
.collab-layout {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: auto auto;
  column-gap: 1.6rem;
  row-gap: 1.2rem;
  align-items: center;
}

/* Desktop grid placement */
.collab-arrow-left  { grid-column: 1; grid-row: 1; justify-self: center; }
.collab-viewport    { grid-column: 2; grid-row: 1; }
.collab-arrow-right { grid-column: 3; grid-row: 1; justify-self: center; }
.collab-dots        { grid-column: 1 / -1; grid-row: 2; }

/* Arrows */
.collab-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(57,255,20,0.10);
  border: 1px solid rgba(57,255,20,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.45s ease, box-shadow 0.45s ease,
              transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  position: relative;
}
.collab-arrow:hover {
  background: rgba(57,255,20,0.22);
  box-shadow: 0 0 20px rgba(57,255,20,0.35);
  transform: scale(1.18);
}
.collab-arrow:active {
  transform: scale(0.86);
  background: rgba(57,255,20,0.32);
  box-shadow: 0 0 10px rgba(57,255,20,0.2);
  transition: background 0.12s ease, box-shadow 0.12s ease,
              transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.collab-arrow svg { width: 20px; height: 20px; pointer-events: none; }

/* Viewport – clips the track */
.collab-viewport {
  min-width: 0;
  cursor: grab;
  /* position + transform = stacking context that reliably clips composited children */
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* Track – slides horizontally */
.collab-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  gap: 1.2rem;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0 1.8rem;
}
/* No-JS fallback: wrap cards into grid */
.no-js .collab-viewport { overflow: visible; }
.no-js .collab-track { flex-wrap: wrap; transform: none !important; }
.no-js .collab-card { width: calc((100% - 2 * 1.2rem) / 3) !important; flex-shrink: 1; }
.no-js .collab-arrow, .no-js .collab-dots, .no-js .collab-autoplay-wrap { display: none; }
@media (max-width: 1024px) { .no-js .collab-card { width: calc((100% - 1.2rem) / 2) !important; } }
@media (max-width: 599px)  { .no-js .collab-card { width: 100% !important; } }

/* Individual card */
.collab-card {
  flex-shrink: 0;
  background: var(--green-subtle);
  border: none;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.45s cubic-bezier(0.4,0,0.2,1),
              border-color 0.35s;
  position: relative;
}



/* Image placeholder */
.collab-card-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: rgba(57,255,20,0.05);
  border-bottom: 1px solid rgba(57,255,20,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.collab-card-img:not([style])::after {
  content: 'IMG';
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(57,255,20,0.2);
  font-weight: 700;
}
.collab-img-icon {
  font-size: 2.4rem;
  opacity: 0.55;
  filter: grayscale(0.4);
}

/* Card body */
.collab-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.collab-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.75;
}

.collab-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.collab-card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 10px rgba(57,255,20,0.3);
  margin-top: 0.1rem;
}
.collab-card-price-note {
  font-size: 0.72rem;
  color: #fff;
  margin-top: 0.15rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.collab-card-price-note::before {
  content: '•';
  color: #fff;
  font-size: 0.6rem;
}

.collab-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  flex: 1;
}

/* CTA button inside card */
.collab-btn {
  margin-top: 1.2rem;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
}

/* ── Responsive card widths — set via JS (updateCardWidths) ── */
/* Fallback only; JS overrides with exact px values */
@media (min-width: 1025px) {
  .collab-card { width: calc((100% - 2 * 1.2rem) / 3); }
}
@media (min-width: 600px) and (max-width: 1024px) {
  .collab-card { width: calc((100% - 1 * 1.2rem) / 2); }
}
@media (max-width: 599px) {
  .collab-card { width: 100%; }
}
@media (min-width: 2000px) {
  .collab-card { width: calc((100% - 3 * 1.2rem) / 4); }
}

/* ── Mobile: viewport full width, arrows flank dots ── */
@media (max-width: 599px) {
  .collab-layout {
    grid-template-columns: 36px 1fr 36px;
    row-gap: 1rem;
  }
  /* Viewport spans all 3 columns on its own row */
  .collab-viewport    { grid-column: 1 / -1; grid-row: 1; }
  /* Second row: [arrow] [dots] [arrow] */
  .collab-arrow-left  { grid-column: 1; grid-row: 2; justify-self: center; }
  .collab-dots        { grid-column: 2; grid-row: 2; }
  .collab-arrow-right { grid-column: 3; grid-row: 2; justify-self: center; }
  /* Smaller arrows on mobile */
  .collab-arrow       { width: 36px; height: 36px; }
  .collab-arrow svg   { width: 16px; height: 16px; }
}

/* ── Dots ── */
.collab-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  /* margin-top removed — row-gap on the grid handles spacing */
}

.collab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(57,255,20,0.22);
  border: 1px solid rgba(57,255,20,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.collab-dot.is-active {
  background: var(--green);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(57,255,20,0.55);
}

/* ── Autoplay toggle button ── */
.collab-autoplay-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.collab-autoplay-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

/* Animated ring behind the button */
.collab-autoplay-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0;
  transform: scale(0);
  transition: none;
}

/* When autoplay is ON: fade-in (scale 0 → 1) */
.collab-autoplay-btn.is-playing .collab-autoplay-ring {
  background: var(--green);
  animation: collabRingFadeIn 1.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* When autoplay turns OFF: fade-out (scale 1 → 0) */
.collab-autoplay-btn.is-stopping .collab-autoplay-ring {
  background: var(--text-muted);
  animation: collabRingFadeOut 1.2s ease forwards;
}

@keyframes collabRingFadeIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes collabRingFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0); }
}

.collab-autoplay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 18px;
  height: 18px;
  transition: color 0.25s;
}

#collabPauseIcon, #projPauseIcon { visibility: hidden; }
#collabPlayIcon, #projPlayIcon { transform: translate(-50%, -50%) translateX(2.5px); }
#collabAutoplayBtn, #projAutoBtn { transform: translateX(2.5px); }
.lang-cs #collabAutoplayBtn, .lang-cs #projAutoBtn { transform: translateX(35px); }
.lang-cs .collab-autoplay-label { margin-left: 35px; }
.lang-cs .collab-autoplay-wrap,
.lang-cs .proj-bottom .collab-autoplay-wrap { margin-left: -80px; }
.lang-en #collabAutoplayBtn, .lang-en #projAutoBtn { transform: translateX(16px); }
.lang-en .collab-autoplay-label { margin-left: 16px; }

/* Icon color when active */
.collab-autoplay-btn.is-playing .collab-autoplay-icon {
  stroke: #0c0f0c;
}
.collab-autoplay-btn:not(.is-playing):not(.is-stopping) .collab-autoplay-icon {
  stroke: #39ff14;
}
.collab-autoplay-btn.is-stopping .collab-autoplay-icon {
  stroke: var(--text-muted);
}

.collab-autoplay-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 10em;
  white-space: nowrap;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.3s;
}

.collab-autoplay-btn.is-playing ~ .collab-autoplay-label {
  color: var(--green);
}

/* ═══ RECENZE ═══ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .reviews-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) {
  .section { padding-left: 1rem; padding-right: 1rem; }
  .review-card { padding: 1rem 0.85rem; overflow: hidden; }
  .review-text { font-size: 0.8rem; overflow-wrap: break-word; word-break: break-word; }
  .review-avatar { width: 48px; height: 48px; font-size: 0.78rem; flex-shrink: 0; }
  .review-author { gap: 0.6rem; min-width: 0; }
  .review-author > div { min-width: 0; overflow: hidden; }
}

.review-card {
  background: var(--green-subtle);
  border: 1px solid rgba(57,255,20,0.12);
  border-left: 3px solid var(--green);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.review-card:hover { border-color: rgba(57,255,20,0.4); box-shadow: 0 0 20px rgba(57,255,20,0.07); }
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 0.6rem;
  right: 1.2rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.15;
  font-family: Georgia, serif;
}
.review-text { font-size: 0.88rem; color: var(--text); line-height: 1.8; font-weight: 300; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.review-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: rgba(57,255,20,0.1); border: 1px solid rgba(57,255,20,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: var(--green);
}
.review-info { flex: 1; }
.review-avatar-img { object-fit: cover; }
.review-info { display: flex; flex-direction: column; gap: 0.15rem; }
.review-name { font-size: 0.85rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-position { font-size: 0.72rem; color: var(--green); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-company { font-size: 0.72rem; color: var(--text-muted); white-space: normal; overflow: visible; text-overflow: unset; }
.review-year { font-size: 0.68rem; color: var(--green); opacity: 0.6; }
.review-stars { color: var(--green); font-size: 0.8rem; letter-spacing: 1px; flex-shrink: 0; }

/* ═══ FAQ ═══ */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { border: 1px solid rgba(57,255,20,0.12); border-left: 3px solid var(--green); background: var(--green-subtle); }
.faq-item.is-open { border-color: rgba(57,255,20,0.35); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; background: none; border: none; cursor: pointer;
  font-family: 'Roboto', sans-serif; font-size: 0.95rem; font-weight: 500; color: #fff;
  text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: var(--green); }
.faq-item.is-open .faq-question { color: var(--green); }
.faq-icon { width: 18px; flex-shrink: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); color: var(--green); }
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  height: 0;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.4rem;
}
.faq-item.is-open .faq-answer { padding: 0 1.4rem 1.2rem; }
.faq-answer-inner { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; font-weight: 300; padding-bottom: 0.8rem; }

/* ═══ KONTAKT ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: stretch; }
@media(max-width:1024px){
  #kontakt, #contact { padding-top: 4rem; }
  #kontakt .section-label, #contact .section-label { margin-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-intro { padding-top: 0; }
  .contact-intro h3 { margin-top: 0; }
  .contact-linkedin-card { display: flex; flex-direction: column; padding: 1.4rem 1.6rem; min-height: unset; overflow: hidden; width: 435px; max-width: 100%; box-sizing: border-box; }
  .contact-linkedin-card .contact-photo { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--green); object-fit: cover; object-position: center top; margin: 0 0 0.8rem 0; }
  .contact-linkedin-link { flex: unset; padding: 0; font-size: 0.9rem; gap: 0.5rem; }
  .contact-linkedin-link svg { width: 18px; height: 18px; }
}
@media(max-width:485px){
  .contact-grid { gap: 1.5rem; }
  .contact-intro h3 { font-size: 1rem; }
  .contact-intro p { font-size: 0.82rem; }
  .contact-linkedin-card { width: 100%; padding: 1rem 1.2rem; overflow: hidden !important; }
  .contact-linkedin-card .contact-photo { width: 40px; height: 40px; }
  .contact-linkedin-link { font-size: 0.82rem; }
  .contact-linkedin-link span { white-space: normal !important; word-break: break-word; }
  .form-control { font-size: 0.82rem; padding: 0.6rem 0.8rem; }
  textarea.form-control { min-height: 120px; }
}
@media(max-width:420px){
  .contact-linkedin-card { flex-direction: row !important; align-items: stretch !important; padding: 0 !important; min-height: 120px; }
  .contact-linkedin-card .contact-photo { width: 40% !important; height: auto !important; border-radius: 0 !important; border: none !important; margin: 0 !important; object-position: center 20%; flex-shrink: 0; align-self: stretch; object-fit: cover; }
  .contact-linkedin-link { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; align-self: stretch !important; padding: 0 !important; }
  .contact-linkedin-link span { display: none !important; }
  .contact-linkedin-link svg { width: 36px !important; height: 36px !important; }
}
.contact-intro { display: flex; flex-direction: column; padding-top: 3rem; }
.contact-linkedin-card { margin-top: auto; }
.contact-form { display: flex; flex-direction: column; }
.contact-form .form-group:last-of-type { flex: 1; display: flex; flex-direction: column; }
.contact-form .form-group:last-of-type textarea { flex: 1; resize: vertical; }
@media (min-width: 2000px) { .cert-logo-badge { top: 1.4rem; } .cert-break { display: block; } .collab-btn { font-size: 0.7rem; padding: 0.7rem 1rem; letter-spacing: 0.5px; white-space: nowrap; } .contact-intro { padding-top: 4.8rem; } }
.contact-intro h3 { font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 700; color: #fff; margin-top: 20px; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 6px #39ff14;
  flex-shrink: 0;
  animation: statusPulse 2.8s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px #39ff14; }
  50% { transform: scale(1.5); opacity: 0.6; box-shadow: 0 0 14px #39ff14, 0 0 24px rgba(57,255,20,0.3); }
}
.contact-intro p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; line-height: 1.8; margin-bottom: 1.8rem; }

/* Fotka + linky vedle sebe */
.contact-linkedin-card {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0 1.5rem 0 0;
  min-height: 160px;
}
.contact-linkedin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-linkedin-card:hover::before { opacity: 1; }
.contact-linkedin-card:hover { border-color: rgba(57,255,20,0.35); box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 12px rgba(57,255,20,0.07); }
.contact-linkedin-card .contact-photo {
  width: 33.333%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: 0;
  flex-shrink: 0;
  display: block;
  align-self: stretch;
}
.contact-linkedin-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 1.5rem;
  color: var(--green);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-linkedin-link:hover { color: #fff; }
.contact-linkedin-link:hover svg { opacity: 1; }
.contact-linkedin-link svg { flex-shrink: 0; opacity: 0.85; fill: var(--green); }
.contact-linkedin-link:hover svg { opacity: 1; fill: var(--green); }
.contact-linkedin-link span { white-space: nowrap; line-height: 1.4; }

/* Profilová fotka */
.contact-photo {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: rgba(255,255,255,0.05);
  object-fit: cover;
  margin-bottom: 1.8rem;
  display: block;
  box-shadow: 0 0 16px rgba(57,255,20,0.15);
}

.contact-links { display: flex; flex-direction: column; gap: 0.7rem; }
.c-link {
  display: flex; align-items: center; gap: 0.9rem; color: var(--text); text-decoration: none;
  font-size: 0.85rem; font-weight: 400; padding: 0.55rem 0.8rem; border: 1px solid rgba(57,255,20,0.12); border-radius: 2px; transition: all 0.2s;
  background: rgba(57,255,20,0.04);
}
.c-link:hover { color: var(--green); background: var(--green-subtle); border-color: rgba(57,255,20,0.25); }
.c-link svg { width: 16px; flex-shrink: 0; opacity: 0.5; }
.c-link:hover svg { opacity: 1; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:480px){ .form-row{ grid-template-columns:1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.72rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.form-control {
  background: rgba(0,0,0,0.5); border: 1px solid rgba(57,255,20,0.18); color: var(--text);
  font-family: 'Roboto', sans-serif; font-size: 0.9rem; font-weight: 300; padding: 0.75rem 1rem;
  outline: none; border-radius: 2px; transition: all 0.2s; resize: none; width: 100%;
}
.form-control::placeholder { color: rgba(57,255,20,0.2); }
.form-control:focus { border-color: rgba(57,255,20,0.55); background: rgba(0,0,0,0.7); box-shadow: 0 0 12px rgba(57,255,20,0.08); }
textarea.form-control { min-height: 190px; }
@media (min-width: 1996px) and (max-width: 1999px) { textarea.form-control { min-height: 145px; } }
@media (min-width: 2000px) { textarea.form-control { min-height: 195px; } }
select.form-control {
  border: 1px solid rgba(57,255,20,0.18);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339ff14' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  cursor: pointer;
}
select.form-control { color: rgba(57,255,20,0.2); }
select.form-control.has-value { color: var(--text); }
select.form-control option { background: #0c0f0c; color: var(--text); }
select.form-control option:hover { background: rgba(57,255,20,0.75); color: #000; }

.form-hint { font-size: 0.75rem; color: var(--text-muted); opacity: 0.8; font-style: italic; margin-top: -0.2rem; }

.form-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-status { font-size: 0.82rem; color: var(--text-muted); min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #ff5050; }

/* ═══ PROJEKTY CAROUSEL ═══ */
.proj-layout {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: auto auto;
  column-gap: 1.6rem;
  row-gap: 1.2rem;
  align-items: center;
}
.proj-arrow-left  { grid-column: 1; grid-row: 1; justify-self: center; }
.proj-viewport    { grid-column: 2; grid-row: 1; overflow: hidden; min-width: 0; }
.proj-arrow-right { grid-column: 3; grid-row: 1; justify-self: center; }
.proj-nav         { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; }
.proj-dots        { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.proj-counter     { display: none; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; letter-spacing: 1px; }
@media (max-width: 599px) {
  .proj-dots    { display: none; }
  .proj-counter { display: block; }
}

@media (max-width: 599px) {
  .proj-card { aspect-ratio: 4/3; min-height: 220px; }
  .proj-info { padding: 0.75rem; }
  .proj-title { font-size: 0.85rem; }
  .proj-desc { font-size: 0.7rem; }
  .proj-tag { font-size: 0.6rem; padding: 0.2rem 0.45rem; margin-bottom: 0.3rem; }
  .proj-layout {
    grid-template-columns: 36px 1fr 36px;
    row-gap: 1rem;
    column-gap: 0;
  }
  .proj-viewport    { grid-column: 1 / -1; grid-row: 1; }
  .proj-arrow-left  { grid-column: 1; grid-row: 2; justify-self: center; }
  .proj-nav         { grid-column: 2; grid-row: 2; }
  .proj-arrow-right { grid-column: 3; grid-row: 2; justify-self: center; }
}

.proj-carousel {
  display: flex;
  gap: 0;
  padding: 1.5rem 0 1.8rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.proj-card {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  border: 1px solid #39ff14;
}
.proj-bg {
  position: absolute; inset: -1px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.35s ease;
}
.proj-card:hover .proj-bg,
.proj-card.touch-active .proj-bg { transform: scale(1.06); }
.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.15) 100%);
  transition: opacity 0.35s ease;
}
.proj-card:hover .proj-overlay,
.proj-card.touch-active .proj-overlay { opacity: 0; }
.proj-info {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem;
  transition: opacity 0.3s ease;
}
.proj-card:hover .proj-info,
.proj-card.touch-active .proj-info { opacity: 0; pointer-events: none; }
.proj-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0c0f0c; background: #39ff14;
  padding: 0.2rem 0.6rem; border-radius: 2px; margin-bottom: 0.5rem;
  width: fit-content;
}
.proj-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem; line-height: 1.3; text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.proj-desc { font-size: 0.75rem; color: #fff; opacity: 0.9; line-height: 1.5; text-shadow: 0 1px 4px rgba(0,0,0,0.9); }
.proj-hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(12,15,12,0.55);
}
.proj-card:hover .proj-hover,
.proj-card.touch-active .proj-hover { opacity: 1; }
.proj-hover--two { gap: 0.6rem; flex-wrap: nowrap; }
.proj-hover-note { font-size: 0.82rem; color: #fff; text-align: center; padding: 0.6rem 1.2rem; line-height: 1.6; font-style: italic; background: rgba(0,0,0,0.65); border-radius: 3px; text-shadow: 0 1px 4px rgba(0,0,0,0.9); }
.proj-btn { font-size: 0.78rem; padding: 0.6rem 1rem; white-space: nowrap; }

.proj-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(57,255,20,0.22); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s; padding: 0;
}
.proj-dot.active {
  background: var(--green);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(57,255,20,0.55);
}
.proj-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.proj-bottom .collab-autoplay-wrap { margin-left: 0; }
.collab-autoplay-wrap--offset { margin-left: 0; }
.proj-cta-btn { margin: 0; }


/* ═══ FOOTER ═══ */
footer { border-top: 1px solid rgba(57,255,20,0.1); text-align: center; padding: 2rem; font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

/* ═══ FADE-IN ═══ */
.fi { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fi.vis { opacity: 1; transform: none; }
.fi.d1 { transition-delay: 0.05s; }
.fi.d2 { transition-delay: 0.12s; }
.fi.d3 { transition-delay: 0.19s; }
.fi.d4 { transition-delay: 0.26s; }
.fi.d5 { transition-delay: 0.33s; }
.fi.d6 { transition-delay: 0.40s; }
.fi.d7 { transition-delay: 0.47s; }
.fi.d8 { transition-delay: 0.54s; }
.fi.d9 { transition-delay: 0.61s; }

/* ═══ 4K a Ultra HD rozlišení ═══ */
@media (min-width: 2000px) {
  html { font-size: 18px; }
  .section { max-width: 1400px; padding: 8rem 2rem; }
  #spoluprace { max-width: 1400px; }
  nav { height: 70px; padding: 0 5rem; }
  nav ul { gap: 0.3rem; }
  nav ul a { font-size: 13px; padding: 6px 14px; letter-spacing: 0.8px; }
  .hero-name { font-size: 8rem; }
  .hero-role { font-size: 1.8rem; }
  .exp-logo { margin-top: -36px; }
}

/* ═══ FLOATING SCROLL-TO-TOP BUTTON ═══ */
#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(57,255,20,0.35), 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease, background 0.2s ease;
  pointer-events: none;
  margin: 0;
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background: #50ff30;
  box-shadow: 0 6px 28px rgba(57,255,20,0.55), 0 2px 10px rgba(0,0,0,0.5);
  transform: translateY(-2px) scale(1.07);
}

#scrollTopBtn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 14px rgba(57,255,20,0.4);
}

#scrollTopBtn svg {
  width: 22px;
  height: 22px;
  stroke: #000000;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

@media (max-width: 480px) {
  #scrollTopBtn {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
  }
}

/* ═══ PRINT ═══ */
@media print {
  *, *::before, *::after { color: #000 !important; background: #fff !important; box-shadow: none !important; text-shadow: none !important; }
  nav, #hero canvas, .hero-overlay, #scrollTopBtn, .collab-autoplay-wrap, .collab-arrow, .collab-dots, .hero-scroll { display: none !important; }
  #hero { min-height: auto; padding: 2rem 0 1rem; }
  .hero-content { padding: 0 1rem; }
  .hero-name, .hero-name .accent { color: #000 !important; text-shadow: none !important; }
  .section { padding: 1.5rem 1rem; max-width: 100%; }
  .section-title, .section-num { color: #000 !important; }
  .section-line { background: #ccc !important; }
  .about-grid, .skills-grid, .certs-grid, .contact-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem; }
  .reviews-grid { grid-template-columns: 1fr !important; }
  .exp-list { grid-template-columns: 1fr !important; }
  .exp-body { height: auto !important; }
  .exp-card { border: 1px solid #ccc !important; break-inside: avoid; }
  .collab-viewport, .collab-track, .collab-card { display: none !important; }
  footer { border-top: 1px solid #ccc !important; }
  a { text-decoration: none; }
  .fi { opacity: 1 !important; transform: none !important; }
  .faq-answer { height: auto !important; overflow: visible !important; padding: 0 1.4rem 1.2rem !important; }
  .exp-body { height: auto !important; overflow: visible !important; margin: 0 !important; }
}
