*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* colours picked from the logo: horns, mountains, fur */
  --brown: #A47C5B;
  --brown-dark: #7A5A40;
  --green: #3F5A48;
  --green-dark: #2E4336;
  --text: #2A2520;
  --muted: rgba(42, 37, 32, 0.66);
  --bg: #FBF9F3;
  --bg-alt: #F3EADB;
  --border: rgba(42, 37, 32, 0.12);
  --radius: 8px;
  --max-width: 960px;
}

body {
  font-family: system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* nav */
nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 0 2rem;
  z-index: 100;
}

/* the brown line spans the content width, aligned with the sections below */
.nav-inner {
  max-width: calc(var(--max-width) - 4rem);
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 3px solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

/* sections */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 1.25rem;
  text-align: center;
}

/* hero */
#hero {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 1.75rem;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
}

/* full-width sections with alternate background */
.section-alt {
  background: var(--bg-alt);
  max-width: 100%;
  padding: 1.5rem 2rem 2.5rem;
}

.section-alt > h2 {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

#dlaczego-my {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* contact */
#kontakt {
  text-align: center;
}

#kontakt > h2 {
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.company-details {
  display: inline-block;
  vertical-align: top;
  padding: 1.5rem 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-style: normal;
  line-height: 1.8;
}

.company-details a {
  color: var(--brown-dark);
}

/* features */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

/* four cards read better as 2x2 than 3+1 */
.features-2col {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}

.feature {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #DCE5D8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.feature h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* footer */
footer {
  background: var(--green-dark);
  text-align: center;
  padding: 1rem 2rem;
  color: var(--bg-alt);
  font-size: 0.9rem;
}

footer a {
  color: var(--bg-alt);
}
