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

:root {
  --blue: #4f81c6;
  --teal: #48b0aa;
  --green: #72c369;
  --lime: #ceee28;
  --dark: #1a1a1a;
  --gray: #f5f5f3;
  --mid: #888;
  --text: #222;
  --white: #ffffff;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Calibri', 'Trebuchet MS', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
}

nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--teal), var(--green));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px;
}

.logo-text { font-size: 18px; font-weight: 700; color: var(--dark); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--mid); font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-lang { display: flex; gap: 8px; }
.nav-lang a { font-size: 13px; text-decoration: none; color: var(--mid); padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; transition: all 0.2s; }
.nav-lang a.active, .nav-lang a:hover { border-color: var(--teal); color: var(--teal); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); }

#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(79,129,198,0.5) 40%, rgba(72,176,170,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: auto;
  margin-right: 6%;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  color: white;
}

.hero-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: white;
  margin-bottom: 24px;
}

.hero-title strong { font-weight: 700; color: var(--lime); }

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-sub2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 40px;
}

.btn-outline-white {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-white:hover {
  background: white;
  color: var(--dark);
}

.nav-logo-img {
  height: 44px;
  display: block;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn { min-width: 160px; text-align: center; }
.hero-sub2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  width: 100%;
}
.hero-signature {
  height: 90px;
  margin-right: 8%;
  margin-left: auto;
}

.btn { display: inline-block; padding: 14px 30px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 700; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-lime { background: var(--lime); color: var(--dark); }
.btn-lime:hover { background: white; }

.gradient-line { height: 3px; background: linear-gradient(90deg, var(--blue), var(--teal), var(--green), var(--lime)); }

.stats-bar { background: var(--dark); padding: 48px 5%; display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 24px 32px; text-align: center; border-right: 1px solid #333; }
.stat:last-child { border: none; }
.stat-num { font-size: 48px; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--teal), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-label { color: #aaa; font-size: 14px; margin-top: 8px; }

section { padding: 96px 5%; }
.section-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 300; color: var(--dark); line-height: 1.2; max-width: 600px; margin-bottom: 48px; }
.section-title strong { font-weight: 700; }

#filosofie { background: white; }
.d6-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.d6-card { background: white; padding: 32px 28px; border: 1px solid #eee; border-radius: 8px; transition: all 0.2s; }
.d6-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(72,176,170,0.12); }
.d6-letter { font-size: 40px; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.d6-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.d6-card p { color: #555; font-size: 15px; line-height: 1.6; }

.gradient-dark {
  background: linear-gradient(135deg, #4f81c6 0%, #48b0aa 50%, #72c369 100%) !important;
}

.gradient-dark,
.gradient-dark .section-label,
.gradient-dark .section-title,
.gradient-dark .section-title strong,
.gradient-dark h3,
.gradient-dark p,
.gradient-dark .stat-label {
  color: white;
}
.gradient-dark .section-label { color: #ceee28; }
.gradient-dark .service-card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.gradient-dark .podcast-card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.gradient-dark .link-teal { color: #ceee28; }
.gradient-dark a { color: #ceee28; }

#sluzby { background: linear-gradient(135deg, #f0f7ff 0%, #e8f7f5 100%); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card { border: 1px solid #eee; border-radius: 8px; padding: 32px 28px; transition: all 0.2s; }
.service-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(72,176,170,0.12); }
.service-icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 22px; }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: #666; font-size: 15px; line-height: 1.6; }

#programy { background: white; }
.programs-list { display: flex; flex-direction: column; gap: 24px; }
.program-card { background: white; border-radius: 8px; padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border-left: 4px solid var(--teal); transition: box-shadow 0.2s; }
.program-card--blue { border-left-color: var(--blue); }
.program-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.program-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.program-card p { color: #666; font-size: 15px; }
.program-meta { text-align: right; white-space: nowrap; display: flex; flex-direction: column; gap: 4px; }
.program-meta span { font-size: 13px; color: var(--mid); margin-top: 8px; }
.program-meta strong { font-size: 15px; color: var(--dark); }
.link-teal { color: var(--teal); text-decoration: none; font-weight: 700; }
.link-blue { color: var(--blue); text-decoration: none; font-weight: 700; }

#tym { background: white; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.team-card { text-align: center; }
.team-photo { width: 140px; height: 140px; border-radius: 50%; background: var(--gray); margin: 0 auto 20px; overflow: hidden; border: 3px solid #eee; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.team-card p { font-size: 14px; color: var(--mid); line-height: 1.5; }
.team-note { margin-top: 40px; color: #888; font-size: 15px; }

#kontakt { background: linear-gradient(135deg, #4f81c6 0%, #48b0aa 50%, #72c369 100%); color: white; }
#kontakt .section-label { color: #ceee28; }
#kontakt .section-title { color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info p { color: white; font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.contact-detail { display: flex; flex-direction: column; gap: 16px; }
.contact-item-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.contact-item-value { font-size: 15px; color: white; }
.contact-item-value a { color: #ceee28; text-decoration: none; }
.contact-item-value a:hover { color: var(--lime); }
.muted { color: rgba(255,255,255,0.75) !important; font-size: 14px !important; line-height: 1.7; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea { background: rgba(255,255,255,0.05); border: 1px solid #333; border-radius: 6px; padding: 14px 18px; color: white; font-family: inherit; font-size: 15px; width: 100%; outline: none; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #555; }
.contact-form textarea { min-height: 140px; resize: vertical; }

footer { background: #111; padding: 32px 5%; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #222; flex-wrap: wrap; gap: 16px; }
footer p { color: #555; font-size: 13px; }
footer a { color: #555; text-decoration: none; }
footer a:hover { color: var(--teal); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.hero-tag { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.35s; }
.hero-cta { animation-delay: 0.5s; }

#podcasts { background: linear-gradient(135deg, #e8f7f5 0%, #f0fce8 100%); }
.podcasts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.podcast-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.2s; }
.podcast-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(72,176,170,0.12); }
.podcast-thumb { height: 160px; background: linear-gradient(135deg, #f0f7ff, #e8f7f5); overflow: hidden; }
.podcast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.podcast-info { padding: 24px; }
.podcast-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.podcast-info p { color: #666; font-size: 15px; line-height: 1.6; margin-bottom: 16px; }

.hero-logo-bg {
  position: absolute;
  top: calc(var(--nav-h) + 20px);
  right: 5%;
  height: 180px;
  opacity: 0.85;
  z-index: 2;
}

.d6-logo-num { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.d6-logo-small { height: 36px; }
.d6-logo-num span { font-size: 36px; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.program-img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; margin-bottom: 20px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 6px; transition: transform 0.2s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.02); }

.d6-card--photo {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #eee;
}
.d6-card--photo img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}
.service-card--photo {
  padding: 0;
  overflow: hidden;
}
.service-card--photo img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.d6-card--image {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  margin: 0 -5vw;
}

.d6-vlak {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

#galerie {
  padding: 0;
  overflow: hidden;
}

.gallery-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 4px;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip img {
  height: 280px;
  width: auto;
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-strip img:hover { opacity: 0.85; }

.hero-logo { height: 60px; margin-bottom: 24px; display: block; }
.hero-photo { position: absolute; right: 5%; bottom: 0; height: 85%; display: flex; align-items: flex-end; }
.hero-photo img { height: 100%; object-fit: contain; object-position: bottom; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-bg { width: 100%; clip-path: none; opacity: 0.3; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid #333; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .program-card { grid-template-columns: 1fr; }
  .program-meta { text-align: left; }
  .hero-photo { display: none; }
}