/* === ZMIENNE KOLORÓW === */
:root {
  --color-primary: #234a86;        /* spokojny granat */
  --color-primary-soft: #e5edf9;
  --color-accent: #f4b000;         /* ciepły akcent */
  --color-secondary: #6dbf8a;

  --color-bg: #ffffff;
  --color-bg-muted: #f5f5f7;
  --color-text: #1f2933;
  --color-text-soft: #5f6c80;

  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* link w treści */
p a {
  border-bottom: 1px solid rgba(35, 74, 134, 0.3);
}

p a:hover {
  color: #163564;
  border-color: rgba(35, 74, 134, 0.6);
}

/* === GLOBAL LAYOUT === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.8rem;
}

.section {
  padding: 5.4rem 0;
}

.section-muted {
  background-color: var(--color-bg-muted);
}

.section-header {
  text-align: left;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 2.1rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.02rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.logo-text {
  font-size: 0.98rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--color-text-soft);
  position: relative;
  padding-bottom: 0.1rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 0.38rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 74, 134, 0.6);
  font-weight: 500;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #f6f7fb 0%, #ffffff 45%, #f7fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.8rem;
  align-items: center;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.hero-text h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(2.4rem, 2.8vw + 1.4rem, 3.1rem);
  margin-bottom: 1.1rem;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--color-text-soft);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* HERO IMAGE */
.hero-illustration {
  display: flex;
  justify-content: flex-end;
}

.hero-illustration img {
  max-width: 320px;
  filter: drop-shadow(var(--shadow-soft));
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn.primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn.ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(35, 74, 134, 0.35);
}

.btn.ghost:hover {
  background: var(--color-primary-soft);
}

.btn.full-width {
  width: 100%;
}

/* === GRIDS & CARDS === */
.about-grid,
.collab-grid,
.projects-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.collab-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.9rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  margin-top: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.18rem;
}

.card.highlight {
  border: 1px solid rgba(35, 74, 134, 0.25);
}

/* VALUES */
.values-list {
  padding-left: 1.1rem;
  color: var(--color-text-soft);
  margin: 0.4rem 0 0;
}

/* === ICON CARDS (OBSZARY DZIAŁAŃ) === */
.grid-4 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.icon-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.9rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(35, 74, 134, 0.18);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.icon-card:hover .icon-circle {
  transform: translateY(-3px);
}

.icon-circle img {
  width: 60%;
  transition: transform 0.2s ease;
}

.icon-card:hover img {
  transform: scale(1.06);
}

.icon-card h3 {
  margin-top: 1.1rem;
  font-size: 1.18rem;
  font-family: "Montserrat", system-ui, sans-serif;
}

.icon-card p {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  color: var(--color-text-soft);
}

/* === PROJEKTY I ANALIZY === */
.projects-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.projects-column {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.column-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(35, 74, 134, 0.16);
}

.project-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-soft);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.project-card:hover .project-icon {
  transform: translateY(-2px);
}

.project-icon img {
  width: 62%;
  transition: transform 0.2s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-body h4 {
  margin: 0 0 0.35rem;
  font-size: 1.03rem;
  font-family: "Montserrat", system-ui, sans-serif;
}

.project-body p {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

/* === ROZWIJANE TREŚCI PROJECTS / ANALIZ === */
.project-details {
  margin-top: 0.35rem;
  font-size: 0.93rem;
  color: var(--color-text-soft);
}

.project-details summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  margin: 0.35rem 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
}

.project-details summary::-webkit-details-marker {
  display: none;
}

.project-details p {
  margin: 0.25rem 0 0;
}

/* === KONTAKT === */
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-note {
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.9rem 0 2.4rem;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.footer-meta {
  color: var(--color-text-soft);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    justify-content: flex-start;
    margin-top: 2rem;
  }

  .hero-illustration img {
    margin-left: 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-inline: 1.4rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 0.4rem;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 1.2rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .card,
  .icon-card,
  .project-card {
    padding: 1.4rem 1.4rem;
  }
}
