/* RenSoft s.c. - arkusz stylów. Bez zasobów zewnętrznych; krój Manrope (OFL) z assets/fonts. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #c41f30;
  --navy-deep: #141a45;
  --navy: #293272;
  --blue: #2a3fb5;
  --ink: #10142b;
  --muted: #474e6b;
  --line: #e1e4ee;
  --surface: #f5f6fa;
  --white: #fff;
  --band: linear-gradient(120deg, #eef3fd 0%, #e7ecfa 55%, #f8eef2 100%);
  --r: 12px;
  --r-sm: 6px;
  --wrap: 76rem;
  --lift: 0 12px 32px -18px rgba(16, 20, 43, 0.28);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -0.018em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.3rem; }
li::marker { color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 52rem; }

.skip { position: absolute; left: -999rem; }
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 20;
  background: var(--white);
  padding: 0.5rem 1rem;
}

/* --- nagłówek (bez JS: menu zawija się na wąskich ekranach) --- */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo img { display: block; width: 236px; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; }
.nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.nav .nav-cta {
  margin-left: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--navy-deep);
  border-radius: var(--r-sm);
  background: var(--navy-deep);
  color: var(--white);
}
.nav .nav-cta:hover,
.nav .nav-cta[aria-current="page"] { border-color: var(--red); background: var(--red); color: var(--white); }

/* przełącznik języka: obok logo na węższych ekranach, za menu na szerokich */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.lang-switch svg { width: 18px; height: 18px; }
.lang-switch:hover { border-color: var(--navy-deep); color: var(--ink); }
.logo { order: 1; }
.lang-switch { order: 2; }
.nav { order: 3; flex-basis: 100%; }
@media (min-width: 74rem) {
  .nav { order: 2; flex-basis: auto; margin-left: auto; }
  .lang-switch { order: 3; }
}

/* --- hero i nagłówki podstron --- */

.hero,
.page-head { background: var(--band); }
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.page-head { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split > * { min-width: 0; }
.hero-text p,
.page-head p { max-width: 58ch; color: var(--muted); font-size: 1.15rem; }

/* --- ilustracje: scena na stronie głównej (SVG w HTML) i obrazki assets/img/il-*.svg --- */

.art {
  display: block;
  width: 100%;
  max-width: 31rem;
  margin: 0 auto;
}
.hub {
  display: block;
  width: 100%;
  max-width: 33rem;
  height: auto;
  margin: 0 auto;
  font-family: "Manrope", "Segoe UI", sans-serif;
}
/* trzy cykle po 1 s; z najdłuższym opóźnieniem wszystko stoi przed upływem 5 s (WCAG 2.2.2) */
.led { animation: blink 1s ease-in-out 3; }
.led-b { animation-delay: 0.7s; }
.led-c { animation-delay: 1.5s; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
/* przepływ danych po łączach i unoszenie się chmury oraz tarczy (też poniżej 5 s) */
.wire { animation: wire 1.4s linear 3; }
.float { animation: float 2.4s ease-in-out 2; }
.float-b { animation-duration: 2.2s; animation-delay: 0.3s; }
@keyframes wire { to { stroke-dashoffset: -28; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .led,
  .wire,
  .float { animation: none; }
}

/* --- sekcje --- */

section { padding: clamp(3rem, 6vw, 5rem) 0; }
section.alt { background: var(--surface); }
.lead { max-width: 65ch; color: var(--muted); font-size: 1.12rem; }

.facts { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.facts ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.facts li { display: flex; align-items: center; gap: 0.65rem; margin: 0; }
.facts li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--red);
}

/* --- kafle na stronie głównej: obrazek u góry, treść, odnośnik na dole --- */

.bento,
.duo { display: grid; gap: 1.5rem; margin-top: 2rem; }
.duo { margin-bottom: 2.25rem; }
@media (min-width: 40rem) {
  .bento,
  .duo { grid-template-columns: repeat(2, 1fr); }
  .tile-care { grid-column: 1 / -1; }
}
@media (min-width: 70rem) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}

.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}
.tile:hover { box-shadow: var(--lift); }
.tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 47 / 33;
  object-fit: contain;
  padding: 0.25rem;
  background: var(--band);
}
.tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}
.tile-body > :last-child { margin: auto 0 0; }
.tile-body > a:not(.btn) { font-weight: 700; text-decoration: none; }
.tile-body > a:not(.btn):hover { text-decoration: underline; }
.tile-body > a:not(.btn)::after { content: " \203A"; }
.tile h3 { font-size: 1.22rem; }
.tile-care h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.tile-care ul { columns: 2 13rem; column-gap: 2rem; }
@media (min-width: 52rem) {
  .tile-care { flex-direction: row; }
  .tile-care .tile-art { flex: 0 0 44%; width: 44%; height: auto; aspect-ratio: auto; padding: 1.5rem; }
  .tile-care .tile-body { padding: 2.25rem; }
}
.deadline {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--red);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.chips li { margin: 0; padding: 0.25rem 0.75rem; border-radius: var(--r-sm); background: var(--surface); font-weight: 600; font-size: 0.92rem; }
.vendors { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); }

/* --- lista cech z ikonami (bez ramek) --- */

.features {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  margin: 2.5rem 0 2rem;
}
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-content: start; }
.feature svg {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--blue);
}
.alt .feature svg { background: var(--white); }
.feature h3 { margin-bottom: 0.3rem; }
.feature p { margin: 0; color: var(--muted); }

/* --- etapy (kolejność ma znaczenie) --- */

.flow {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 2rem;
  counter-reset: flow;
}
.flow li { counter-increment: flow; margin: 0; padding-top: 1rem; border-top: 3px solid var(--navy-deep); }
.flow li::before {
  content: counter(flow);
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.3;
}
.flow strong { display: block; color: var(--ink); }
.flow span { color: var(--muted); font-size: 0.97rem; }

/* 1 / 2 / 3 kolumny, a na szerokim ekranie wszystkie w jednym rzędzie */
@media (min-width: 34rem) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 68rem) {
  .flow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
}
/* cztery etapy: bez układu 3 + 1 na średnich ekranach */
@media (min-width: 52rem) and (max-width: 67.99rem) { .flow.flow-4 { grid-template-columns: repeat(2, 1fr); } }

/* --- karty na podstronach --- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  margin: 1.75rem 0;
}
.grid.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.75rem;
  min-width: 0;
}
.card:hover { box-shadow: var(--lift); }
.card > :last-child { margin-bottom: 0; }
.card:target { border: 2px solid var(--blue); }
.card h2, .card h3 { font-size: 1.18rem; }
.card svg {
  display: block;
  width: 48px;
  height: 48px;
  padding: 11px;
  margin-bottom: 1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--blue);
}

/* --- przyciski --- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--navy-deep);
  border-radius: var(--r-sm);
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-deep); }
.btn-outline:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn-big { font-size: 1.2rem; padding: 1.1rem 2.1rem; }

/* --- kroki, oś czasu, tabele --- */

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.4rem; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--r-sm);
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline { list-style: none; padding: 0; border-left: 3px solid var(--line); }
.timeline li { padding: 0 0 1rem 1.25rem; margin: 0; }
.timeline strong { display: block; color: var(--red); }

.timeline-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.timeline-row li { margin: 0; padding: 1.25rem; border-top: 3px solid var(--line); background: var(--surface); }
.alt .timeline-row li { background: var(--white); }
.timeline-row strong { display: block; font-size: 1.25rem; color: var(--ink); }
.timeline-row .next { border-top-color: var(--red); }
.timeline-row .next strong { color: var(--red); }

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
caption { text-align: left; color: var(--muted); padding-bottom: 0.5rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; }
th { background: var(--surface); border-bottom: 2px solid var(--navy-deep); }

.note {
  background: var(--surface);
  border-left: 4px solid var(--navy-deep);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.alt .note { background: var(--white); }
.note > :last-child { margin-bottom: 0; }
.note-warn { border-left-color: var(--red); }

.phone { font-size: 1.6rem; font-weight: 800; }

address { font-style: normal; }

/* --- pas wezwania do działania i stopka --- */

.cta-band { background: var(--navy-deep); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-band .btn { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.cta-band .btn:hover { background: #dfe3f5; border-color: #dfe3f5; }
.cta-band .btn-outline { background: transparent; color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.cta-band :focus-visible { outline-color: var(--white); }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.site-footer .cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .cols > div a { color: var(--blue); }
.site-footer .social { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; }
.site-footer .social svg { width: 20px; height: 20px; }
.copy { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* --- ciaśniejsze menu na telefonie --- */
@media (max-width: 34rem) {
  .wrap { padding: 0 1.25rem; }
  .site-header .wrap { gap: 0.6rem 0.5rem; }
  .logo img { width: 190px; }
  .lang-switch { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
  .nav ul { gap: 0.1rem; }
  .nav a { padding: 0.3rem 0.35rem; font-size: 0.85rem; }
  .nav .nav-cta { margin-left: 0.2rem; padding: 0.3rem 0.7rem; }
}
