:root {
  --bg: #f3f6f8;
  --bg-deep: #e7eef2;
  --ink: #12202b;
  --muted: #4a5d6a;
  --line: #cfdbe3;
  --accent: #1d8f9e;
  --accent-ink: #16808f;
  --card: #ffffff;
  --max: 40rem;
  --wrap: 58rem;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Source Sans 3", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "FL Pismo Techniczne";
  src: url("fonts/FLPismoTechniczne.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FL Pismo Techniczne Pochyle";
  src: url("fonts/FLPismoTechnicznePochyle.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d7ebea 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e8eef5 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.45rem 0.75rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 0.35rem;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  padding: 0 0 2.25rem;
}

.site-header h1 {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

section { padding: 0 0 2.75rem; }
h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about p,
.contact > p {
  margin: 0;
  max-width: var(--max);
  color: var(--muted);
  font-size: 1.05rem;
}
.about p.pl + p.pl,
.about p.en + p.en {
  margin-top: 0.9rem;
}
.about a {
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-grid:has(:only-child) {
  grid-template-columns: 1fr;
  max-width: 28rem;
}
.product-grid > li {
  display: flex;
}
.product-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.3rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.product-card:hover,
.product-card:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.product-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}
.product-tag {
  margin: 0.35rem 0 0.7rem;
  font-weight: 600;
  color: var(--ink);
}
.product-lede {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.98rem;
}
.product-go {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-ink);
}
.product-go::after { content: " →"; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem !important;
}
.contact-links a {
  font-weight: 600;
  text-decoration: none;
}
.contact-links a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}
.footer-brand {
  flex: 1 1 16rem;
  max-width: 28rem;
}
.footer-brand p { margin: 0; }
.footer-brand p + p { margin-top: 0.4rem; }
.footer-company {
  flex: 0 1 14rem;
  margin: 0;
  font-style: normal;
  text-align: right;
  line-height: 1.5;
}
.footer-company a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.footer-company a:hover { color: var(--ink); }
.footer-copy {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

html[data-lang="en"] .pl { display: none; }
html[data-lang="pl"] .en { display: none; }

@media (max-width: 40rem) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-company { text-align: left; }
}
