*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ods-blue: #0a1a3a;
  --ods-blue-light: #122a5e;
  --ods-accent: #1a6bc4;
  --ods-accent-hover: #1558a8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}
a { color: var(--ods-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ods-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10, 26, 58, .95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
nav .container {
  display: flex; align-items: center;
  height: 64px;
}
nav .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--white);
  margin-right: auto;
}
nav .logo svg { flex-shrink: 0; }
nav .logo span { color: var(--ods-accent); }
nav ul { display: flex; list-style: none; gap: 8px; }
nav ul li a {
  padding: 8px 16px; border-radius: 8px;
  font-size: .875rem; font-weight: 500; color: var(--gray-300);
  transition: background .2s, color .2s;
}
nav ul li a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-social { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-social a {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); transition: color .2s, background .2s;
}
.nav-social a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--ods-blue) 0%, #0d1f4a 50%, var(--ods-blue-light) 100%);
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(26,107,196,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(26,107,196,.1) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,107,196,.2);
  border: 1px solid rgba(26,107,196,.3);
  padding: 6px 16px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; color: #7bbaf0;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 span { color: var(--ods-accent); }
.hero p {
  font-size: 1.15rem; color: var(--gray-300);
  max-width: 560px; margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--ods-accent); color: var(--white); }
.btn-primary:hover { background: var(--ods-accent-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,107,196,.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: var(--ods-accent); color: var(--ods-accent); transform: translateY(-2px); }
section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ods-accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--gray-900);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--gray-600);
  max-width: 600px; margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }
#thanks {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
  padding: 24px 0;
}
#thanks::before {
  display: none;
}
.thanks-card {
  max-width: 720px; margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  padding: 32px 40px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
  position: relative;
}
.thanks-quote {
  display: none;
}
.thanks-body {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.thanks-body p { margin-bottom: 10px; }
.thanks-salutation {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.thanks-closing {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ods-accent);
  margin-top: 4px;
}
.thanks-signature {
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
}
.thanks-signature-line {
  width: 40px; height: 2px;
  background: var(--ods-accent);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.thanks-signature-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.thanks-signature-role {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.stat-card {
  text-align: center; padding: 28px 16px;
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--ods-accent); line-height: 1; }
.stat-label { font-size: .85rem; font-weight: 600; color: var(--gray-600); margin-top: 8px; letter-spacing: .02em; }
.about-image {
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s;
}
.about-image img:hover { transform: scale(1.03); }
#team { background: var(--gray-50); padding-top: 30px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.team-card {
  position: relative;
  background: var(--white); border-radius: 14px; padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: transform .25s, box-shadow .25s;
}
.card-number {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px;
  background: var(--ods-accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  z-index: 2;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.team-avatar {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ods-accent), var(--ods-blue-light));
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: var(--white);
  overflow: hidden;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 0px;
  display: block;
  background: var(--gray-200);
}
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.team-card .role { font-size: .82rem; color: var(--ods-accent); font-weight: 600; margin: 4px 0 12px; }
.team-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }
#program { background: var(--white); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card { padding: 32px; border-radius: 14px; border: 1px solid var(--gray-200); transition: transform .25s, box-shadow .25s; }
.program-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
#program { position: relative; }
.program-lock {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(8px);
  padding: 24px;
}
.program-lock-inner {
  text-align: center;
  background: var(--white);
  border-radius: 16px; padding: 48px 40px;
  max-width: 420px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.program-lock-icon { font-size: 2.4rem; display: block; margin-bottom: 16px; }
.program-lock-inner h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.program-lock-inner p { font-size: .92rem; color: var(--gray-600); line-height: 1.6; }
.program-content { filter: blur(4px); pointer-events: none; user-select: none; }
.program-content.revealed { filter: none; pointer-events: auto; user-select: auto; }
.program-lock.hidden { display: none; }
.program-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(26,107,196,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.program-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; color: var(--gray-900); }
.program-card p { font-size: .9rem; color: var(--gray-600); line-height: 1.65; }
.program-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.program-list li { font-size: .9rem; color: var(--gray-600); line-height: 1.6; padding-left: 16px; position: relative; }
.program-list li::before { content: '•'; position: absolute; left: 0; color: var(--ods-accent); font-weight: 700; }
#splnili { background: var(--gray-50); }
.splnili-footer {
  text-align: center;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 24px 32px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--gray-200);
}
.splnili-footer p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 500;
}
#contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: var(--gray-900); }
.contact-info p { color: var(--gray-600); margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.contact-info .icon { color: var(--ods-accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.contact-details { margin: 24px 0; }
.contact-details p { margin-bottom: 12px; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gray-200); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; font-size: 1.1rem; color: var(--gray-600);
}
.social-links a:hover { background: var(--ods-accent); color: var(--white); transform: translateY(-2px); }
.map-wrap { margin-top: -1px; filter: grayscale(.3) sepia(.1); }
.map-wrap iframe { width: 100%; height: 350px; border: none; display: block; }
footer {
  background: var(--ods-blue); color: var(--gray-300);
  padding: 48px 0 32px; text-align: center;
}
footer .logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 12px; }
footer .logo span { color: var(--ods-accent); }
footer p { font-size: .85rem; }
footer a { color: var(--gray-300); }
footer a:hover { color: var(--white); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 16px 0 20px; }
.footer-links a { font-size: .85rem; }
#back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--ods-accent); color: var(--white);
  font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,107,196,.35);
  transition: opacity .3s, transform .3s, background .2s;
  opacity: 0; transform: translateY(16px); pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--ods-accent-hover); transform: translateY(-2px); }
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--white); border-radius: 16px;
  max-width: 600px; width: 100%;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6);
  font-size: 1.5rem; font-weight: 700; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(0,0,0,.8); transform: scale(1.1); }
.modal-body { display: flex; flex-direction: column; }
.modal-photo {
  width: 100%;
  min-height: 180px;
  max-height: 75vh;
  background: linear-gradient(135deg, var(--ods-accent), var(--ods-blue-light));
  display: flex; align-items: center; justify-content: center;
}
.modal-photo img {
  flex-shrink: 0;
  max-width: 100%;
  max-height: 75vh;
  height: auto;
  display: block;
}
.modal-wide { max-width: 900px; }
.modal-wide .modal-photo { max-height: 85vh; }
.modal-wide .modal-photo img { max-width: 100%; max-height: 85vh; height: auto; display: block; }
.modal-wide .modal-info { display: none; }
.modal-photo .no-photo {
  font-size: 3rem; font-weight: 700; color: var(--white);
}
.modal-photo:has(.no-photo) { height: 200px; }
.modal-info { padding: 28px; }
.modal-cislo { font-size: .85rem; font-weight: 700; color: var(--ods-accent); letter-spacing: .05em; margin-bottom: 2px; display: block; }
.modal-info h3 { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.modal-role { font-size: .9rem; color: var(--ods-accent); font-weight: 600; margin-bottom: 16px; }
.modal-info p { font-size: .95rem; color: var(--gray-600); line-height: 1.7; }

#countdown {
  background: linear-gradient(135deg, var(--ods-blue) 0%, #0d1f4a 100%);
  position: relative; overflow: hidden;
}
#countdown::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(26,107,196,.15) 0%, transparent 60%);
}
#countdown .container { position: relative; z-index: 1; }
#countdown .section-label { color: #7bbaf0; }
#countdown .section-title { color: var(--white); }
#countdown .section-desc { color: var(--gray-300); }
.countdown-grid {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 24px;
}
.countdown-item {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 20px 28px; min-width: 100px;
  backdrop-filter: blur(4px);
}
.countdown-number {
  font-size: 2.8rem; font-weight: 800; color: var(--white);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.countdown-label {
  font-size: .75rem; font-weight: 600; color: var(--gray-300);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 6px;
}
.countdown-sep {
  font-size: 2.4rem; font-weight: 300; color: rgba(255,255,255,.3);
  margin-top: -24px;
}
.countdown-note { font-size: .95rem; color: var(--gray-300); }
.countdown-social {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.countdown-social-label {
  font-size: .85rem; font-weight: 600; color: var(--gray-300);
  text-transform: uppercase; letter-spacing: 1px;
}
.countdown-social-icons {
  display: flex; gap: 8px;
}
.countdown-social-icons a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300);
  transition: background .2s, color .2s, transform .2s;
}
.countdown-social-icons a:hover {
  background: var(--ods-accent);
  color: var(--white);
  transform: translateY(-2px);
}
.countdown-expired {
  font-size: 1.2rem; font-weight: 700; color: #4ade80;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 12px; padding: 20px 32px; display: inline-block;
}

@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,26,58,.98); flex-direction: column; padding: 16px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .nav-social { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 100px 0 60px; }
  section { padding: 70px 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .countdown-grid { gap: 4px; }
  .countdown-item { padding: 14px 14px; min-width: 64px; }
  .countdown-number { font-size: 1.8rem; }
  .countdown-sep { font-size: 1.4rem; margin-top: -16px; }
  .countdown-social { flex-direction: column; gap: 10px; }
  .countdown-note { font-size: .85rem; }
  #countdown .section-title { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .thanks-card { padding: 24px 20px; }
  .modal-overlay { padding: 8px; }
  .modal-content { border-radius: 12px; }
  .modal-close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 1.3rem; }
  .modal-photo { min-height: 140px; }
  .modal-photo img { max-height: 75vh; }
  .modal-info { padding: 20px; }
  .modal-info h3 { font-size: 1.2rem; }
  #contact .program-card { padding: 28px 20px !important; }
  #contact .program-card > div { grid-template-columns: 1fr !important; gap: 28px !important; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .countdown-item { padding: 10px 10px; min-width: 52px; }
  .countdown-number { font-size: 1.4rem; }
  .countdown-label { font-size: .6rem; }
  .countdown-sep { font-size: 1rem; margin-top: -12px; }
  .thanks-card { padding: 20px 16px; border-radius: 12px; }
  .modal-overlay { padding: 4px; }
  .modal-content { border-radius: 10px; }
  .modal-close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 1.1rem; }
  .modal-photo { min-height: 120px; }
  .modal-photo img { max-height: 65vh; }
  .modal-info { padding: 16px; }
  #contact .program-card { padding: 20px 16px !important; }
  #contact .program-card > div { gap: 20px !important; }
  #contact .program-card hr { margin: 24px 0 !important; }
}
