* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #f5f5f7;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 64px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 70%;
}

.hero-text h1 {
  font-size: 40px;
  margin: 0 0 8px;
}

.hero-text h2 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #555;
  font-weight: 500;
}

.profile-photo {
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 0%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  margin-left: 2px;
}

.contact-icons {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
  color: #333;
  align-items: center;
}

.contact-icons span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.contact-icons i {
  color: #0077b5;
  font-size: 0.9rem;
}

.lang-switch {
  margin-top: 20px;
}

.lang-switch button {
  margin-right: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.lang-switch button:hover {
  border-color: #0077ff;
  color: #0077ff;
}

.download-buttons {
  margin-top: 20px;
}

.download-buttons a {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 16px;
  background: #0077ff;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

main {
  max-width: 960px;
  margin: 24px auto 48px;
  padding: 0 16px 32px;
}

section {
  background: #ffffff;
  padding: 24px 28px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

section h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

#experience .exp-item {
  margin-bottom: 18px;
}

#experience .exp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
}

#experience .exp-title {
  font-weight: 600;
}

#experience .exp-meta {
  font-size: 13px;
  color: #666;
}

#experience ul {
  margin-top: 6px;
}

@media print {
  body {
    background: #ffffff;
  }
  .hero {
    box-shadow: none;
  }
  section {
    box-shadow: none;
  }
  .lang-switch,
  .download-buttons {
    display: none;
  }
}

.action-row {
  display: flex;
  flex-wrap: nowrap;   /* nie pozwalamy się łamać do nowej linii */
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.lang-switch,
.download-buttons {
  margin-top: 0;
}

@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    gap: 20px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text h2 {
    font-size: 16px;
  }

  .profile-photo {
    width: 180px;
    aspect-ratio: 3 / 4;
  }

  .contact-row {
    align-items: center;
    margin-left: 0;
  }

  .contact-icons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 12px;
  }

  .action-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    justify-content: center;
  }

  .lang-switch,
  .download-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}
