:root {
  --ink: #15231d;
  --muted: #607069;
  --paper: #f4f2eb;
  --card: #fffdf7;
  --green: #194d3a;
  --lime: #bfd24a;
  --orange: #e66f32;
  --blue: #2e7182;
  --line: rgba(21, 35, 29, .12);
  --shadow: 0 22px 60px rgba(29, 48, 40, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(191,210,74,.14), transparent 27rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.04em;
  font-size: 1.35rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--green);
  border-radius: 12px 4px 12px 4px;
  font-size: .9rem;
  letter-spacing: -.06em;
  transform: rotate(-2deg);
}

nav { display: flex; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 650; }
nav a:hover { color: var(--green); }

nav a.fun { display: inline-flex; align-items: center; color: var(--orange); font-weight: 800; }
nav a.fun::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 64px;
  align-items: center;
  min-height: 610px;
  padding: 72px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--lime);
  border-radius: 99px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 900;
}

h1 span { color: var(--green); }

.lead {
  max-width: 670px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: 34px 10px 34px 10px;
  background: var(--green);
  box-shadow: var(--shadow);
  color: white;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 50%;
}

.hero-card::before { width: 330px; height: 330px; right: -130px; top: -90px; }
.hero-card::after { width: 220px; height: 220px; left: -100px; bottom: -100px; }

.hero-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 370px;
  padding: 38px;
}

.hero-number { color: var(--lime); font-size: 5rem; font-weight: 900; letter-spacing: -.08em; }
.hero-card p { margin: 0; font-size: 1.25rem; line-height: 1.45; font-weight: 650; }
.hero-card small { display: block; margin-top: 10px; color: rgba(255,255,255,.68); }

.services { padding: 96px 0 110px; border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.055em; }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.6; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.service {
  position: relative;
  display: block;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 12px 35px rgba(29, 48, 40, .05);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(29, 48, 40, .12); }

.service::after {
  content: "";
  position: absolute;
  width: 135px;
  height: 135px;
  right: -55px;
  bottom: -55px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .12;
  transition: transform .25s ease;
}

.service:hover::after { transform: scale(1.35); }
.service:nth-child(1) { --accent: var(--orange); }
.service:nth-child(2) { --accent: var(--blue); }
.service:nth-child(3) { --accent: var(--lime); }

.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 68px;
  border-radius: 16px 5px 16px 5px;
  background: color-mix(in srgb, var(--accent) 18%, white);
  color: var(--accent);
  font-size: 1.55rem;
  font-weight: 900;
}

.service h3 { margin: 0 0 14px; font-size: 1.65rem; letter-spacing: -.035em; }
.service p { margin: 0; color: var(--muted); line-height: 1.65; }
.service .more { display: inline-block; margin-top: 22px; color: var(--green); font-weight: 800; font-size: .92rem; }

.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 110px;
  padding: 52px;
  color: white;
  background: var(--ink);
  border-radius: 32px 10px 32px 10px;
}

.promise p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.7; }
.promise strong { color: var(--lime); }

/* ---------- podstrony ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }

.page-hero { padding: 58px 0 24px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--green); text-decoration: none; font-weight: 650; }

.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }

.prose { max-width: 780px; }
.prose p { color: var(--muted); line-height: 1.75; margin: 0 0 16px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 34px 0 0;
}

.photo {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: 24px 8px 24px 8px;
  background: var(--card);
  color: var(--muted);
  font-weight: 650;
}

.photo small { display: block; margin-top: 6px; font-weight: 500; opacity: .8; }

.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px 8px 24px 8px;
  background: var(--card);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: .82rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}

/* ---------- karty / produkty ---------- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 12px 35px rgba(29, 48, 40, .05);
}

.card h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.85; }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.product {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 12px 35px rgba(29, 48, 40, .05);
}

.product .thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-weight: 650;
}

.product .thumb.img { padding: 0; }
.product .thumb.img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product .body { padding: 20px; }
.product h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -.02em; }
.product p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(25, 77, 58, .08);
  color: var(--green);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tech span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-weight: 700;
  font-size: .9rem;
}

/* ---------- kontakt ---------- */.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.contact-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 12px 35px rgba(29, 48, 40, .05);
}

.contact-card h3 { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -.03em; }
.contact-card .role { display: block; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.contact-card a.phone { display: block; margin-top: 8px; color: var(--green); font-weight: 850; text-decoration: none; }
.contact-card a.phone:hover { text-decoration: underline; }
.contact-card .todo { display: block; margin-top: 8px; color: var(--muted); font-size: .85rem; }

.form { display: grid; gap: 14px; max-width: 640px; margin-top: 26px; }
.form label { display: grid; gap: 6px; font-weight: 650; }
.form input, .form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid rgba(25,77,58,.35); outline-offset: 1px; }
.form button {
  justify-self: start;
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.form button:hover { background: #123a2c; }
.note { color: var(--muted); font-size: .85rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

footer a { color: var(--green); text-decoration: none; }

/* ---------- zakres / dane firmy ---------- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.scope {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px 8px 24px 8px;
}

.scope h3 { margin: 0 0 12px; font-size: 1.25rem; letter-spacing: -.03em; }
.scope ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.85; }

.company {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 34px 0 0;
}

.company div {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.company dt {
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.company dd { margin: 6px 0 0; font-weight: 700; }
.company a { color: var(--green); text-decoration: none; }
.company a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding: 64px 0; }
  .hero-card { min-height: 290px; }
  .hero-card-inner { min-height: 290px; }
  .section-head { align-items: start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .service { min-height: 280px; }
  .icon { margin-bottom: 42px; }
  .promise { grid-template-columns: 1fr; padding: 34px; }
  .contact-grid, .gallery { grid-template-columns: 1fr; }
  .cards-2, .products { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 26px, 1160px); }
  h1 { font-size: 3.55rem; }
  .hero-card-inner { padding: 28px; }
  footer { flex-direction: column; }
}
