/* =========================
   PROMĚNNÉ
   ========================= */
:root {
  --blue: #00386B;
  --yellow: #FFD700;
  --bg: #f5f5f5;
  --white: #ffffff;
  --header-h: 90px;
  --transition: 0.3s ease;
}

/* =========================
   RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--blue);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

/* =========================
   HEADER
   ========================= */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
  transition: height var(--transition);
}

.logo img {
  height: 80px;
  width: auto;
  transition: transform var(--transition);
}

.logo img:hover { transform: scale(1.05); }

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color var(--transition), color var(--transition);
  white-space: nowrap;
}

nav a:hover { background: rgba(0,56,107,0.06); }
nav a.active { color: var(--yellow); }

/* =========================
   MAIN LAYOUT
   ========================= */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================
   HERO
   ========================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
  min-height: calc(100vh - var(--header-h));
}

.hero-left { flex: 1; text-align: left; }
.hero-right { flex: 1; text-align: center; }

.hero-right img {
  width: 260px;
  border-radius: 12px;
  transition: transform var(--transition);
}

.hero-right img:hover { transform: scale(1.03); }

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 1.2rem;
  max-width: 500px;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--blue);
  transition: all var(--transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
}

/* =========================
   BENEFITS
   ========================= */
.benefits {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 50px 20px;
}

.benefit {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform var(--transition);
}

.benefit:hover { transform: translateY(-5px); }

.benefit h3 { margin-bottom: 10px; }

/* =========================
   ABOUT
   ========================= */
.about {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 50px 20px;
}

.about-text, .about-img { flex: 1 1 400px; }

.about-img img {
  width: 180px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* =========================
   SKILLS
   ========================= */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.skill-card {
  background: var(--white);
  padding: 18px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform var(--transition);
}

.skill-card:hover { transform: translateY(-5px); }

.skill-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* =========================
   PROJECTS / REFERENCES
   ========================= */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.project-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform var(--transition);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.project-card:hover { transform: translateY(-5px); }

/* =========================
   CONTACT
   ========================= */
.contact {
  padding: 50px 20px;
  text-align: center;
}

.contact p { margin: 8px 0; font-size: 1.05rem; }
.contact a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition);
}

.contact a:hover { color: var(--yellow); }

.contact img {
  width: 25px;
  vertical-align: middle;
  margin-right: 10px;
}


/* =========================
   FOOTER
   ========================= */
footer {
  margin-top: auto;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  flex-shrink: 0;
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablet */
@media(max-width: 1100px) {
  .hero h1 { font-size: 2.2rem; }
  .subtitle { font-size: 1.1rem; }
  .logo img { height: 72px; }
}

/* Mobilní zařízení */
@media(max-width: 900px) {
  header { flex-direction: column; height: auto; align-items: center; gap: 8px; padding: 12px 18px; }
  nav ul { justify-content: center; gap: 10px; flex-wrap: wrap; }
  nav a { font-size: 0.95rem; padding: 7px 12px; }

  .hero { flex-direction: column; text-align: center; min-height: calc(100vh - 88px); padding: 20px; }
  .hero-left, .hero-right { flex: unset; }
  .hero-right img { width: 46vw; max-width: 220px; }

  .about { flex-direction: column; align-items: center; }
  .about-text, .about-img { width: 100%; }

  .skills-grid { gap: 15px; }
  .skill-card { width: 48%; max-width: 260px; }

  .benefits { flex-direction: column; align-items: center; }
  .benefit { width: 80%; max-width: 300px; }

  .projects-grid { gap: 15px; }
  .project-card { width: 80%; max-width: 300px; }
}

/* Extra malé telefony */
@media(max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .subtitle { font-size: 0.98rem; }
  .btn { padding: 9px 16px; font-size: 0.95rem; }
  .logo img { height: 58px; }
  .skill-card, .project-card, .benefit { width: 100%; }
}

















