:root {
  --bg: #f6f3ee;
  --bg-alt: #efeae2;
  --ink: #24302b;
  --muted: #5c6b64;
  --sage: #3f6f5c;
  --sage-deep: #2f5446;
  --card: #fffdf9;
  --line: #ddd4c8;
  --shadow: 0 10px 30px rgba(36, 48, 43, 0.06);
  --serif: "Source Serif 4", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: var(--sage-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 6vw;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand-meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
}

.btn-header,
.btn-primary {
  background: var(--sage);
  color: #fff;
}

.btn-header {
  flex-shrink: 0;
  white-space: nowrap;
}

#hero,
#uslugi,
#o-mnie,
#kontakt {
  scroll-margin-top: 5.5rem;
}

.btn-primary:hover,
.btn-header:hover { background: var(--sage-deep); }

.hero {
  padding: 14vh 6vw 10vh;
  max-width: 40rem;
}

.eyebrow {
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.8rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 1rem; }

.lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 1.8rem; }

.section { padding: 4.5rem 6vw; }

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

.section-head { max-width: 36rem; margin-bottom: 2rem; }

h2 { font-size: 2rem; margin: 0 0 0.4rem; }

.hint, .muted { color: var(--muted); }

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.cards h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }

.cards p { margin: 0; color: var(--muted); }

.bio { max-width: 38rem; }

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  margin: 0;
}

.contact dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact dd { margin: 0; font-size: 1.15rem; }

.contact a { color: inherit; }

.site-footer {
  padding: 2.5rem 6vw 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy { max-width: 36rem; }

@media (max-width: 640px) {
  .hero { padding-top: 8vh; }
  .btn-header { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
}
