/* ZASI Aligo.vc – statyczna wersja 1:1 strony z motywu Blocksy */

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/saira-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/saira-latin.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;
}

:root {
  --blue: #0080f6;
  --text: #3a4f66;
  --heading: #192a3d;
  --bg: #fafbfc;
  --white: #fff;
  --sp-40: 1rem;
  --sp-60: 2.25rem;
  --sp-70: 3.38rem;
  --sp-80: 5.06rem;
  --container: 1290px;
  --header-h: 145px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Saira", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

::selection { background: var(--blue); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 70px);
  margin: 0 auto;
  padding: 0 35px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: #fff;
  padding: 8px 16px;
}
.skip-link:focus { left: 8px; }

/* ===== Nagłówek ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 10px 20px rgba(44, 62, 80, .05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .2s ease;
}

.site-header.is-shrunk .container { height: 90px; }

.logo img { height: 80px; width: auto; transition: height .2s ease; }
.site-header.is-shrunk .logo img { height: 60px; }

.header-end { display: flex; align-items: center; gap: 70px; }

.menu {
  display: flex;
  gap: 70px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  text-transform: capitalize;
  transition: color .15s ease;
}

.menu a:hover,
.menu a[aria-current="page"] { color: var(--blue); }

.linkedin { display: inline-flex; color: #1c86c6; }
.linkedin svg { width: 20px; height: 20px; fill: currentColor; }
.linkedin:hover { opacity: .8; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  cursor: pointer;
  color: var(--text);
}
.menu-toggle svg { width: 18px; height: 14px; fill: currentColor; display: block; }

/* Panel menu na telefonie */
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.offcanvas-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90vw;
  max-width: 500px;
  padding: 90px 40px 40px;
  background: rgba(229, 229, 229, .98);
  box-shadow: 0 0 70px rgba(0, 0, 0, .42);
  transform: translateX(100%);
  transition: transform .25s ease;
}

.offcanvas.is-open { opacity: 1; visibility: visible; }
.offcanvas.is-open .offcanvas-inner { transform: none; }

.offcanvas-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 3px;
  background: #2a2a2a;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.offcanvas-close svg { width: 12px; height: 12px; fill: currentColor; }

.mobile-menu { margin: 0; padding: 0; list-style: none; }
.mobile-menu li + li { margin-top: 16px; }
.mobile-menu a { color: #313131; font-size: 20px; font-weight: 700; line-height: 1.3; }

/* ===== Treść ===== */

main { padding: 60px 0; }

.hero {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}

.hero-text,
.hero-image { flex: 0 0 calc(50% - 1em); }

.hero-title {
  margin: 0 0 1.5em;
  color: #000;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.3;
}

.features {
  display: flex;
  gap: 2em var(--sp-60);
}

.feature { flex: 1 1 0; }
.feature p { margin: 0 0 1.5em; }
.feature p:last-child { margin-bottom: 0; }

.feature-icon {
  margin: 0 auto 1.5em;
  height: auto;
}

.hero-image img { margin-left: auto; width: 540px; }

.about {
  display: flex;
  gap: 0 var(--sp-80);
  padding: var(--sp-80) 0;
}

.about > div { flex: 1 1 0; }

.about h2 {
  margin: 0 var(--sp-70);
  color: var(--heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
}

.about p {
  margin: 0;
  padding: var(--sp-80) var(--sp-70);
  color: #000;
  font-size: 16px;
}

.notice { display: flex; justify-content: center; padding: 1.5em 0; }

.btn-outline {
  display: block;
  width: calc(75% - 0.5em);
  padding: var(--sp-60) var(--sp-40);
  border: 2px solid var(--blue);
  border-radius: 3px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  transition: background-color .15s ease, color .15s ease;
}

.btn-outline:hover { background: var(--blue); color: #fff; }

/* ===== Stopka ===== */

.site-footer { background: var(--blue); color: #fff; }

.site-footer .container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 8px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.site-footer p { margin: 0 0 15px; font-size: 13px; }
.site-footer a { color: #fff; }

.footer-legal p { margin-bottom: 15px; }
.footer-legal a { font-size: 16px; }
.footer-legal a:hover { text-decoration: underline; }

.footer-brand { text-align: center; }
.footer-brand img { width: 116px; margin: 0 auto; }

/* Powrót na górę */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--text);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, background-color .15s ease;
}
.back-to-top svg { width: 15px; height: 15px; fill: currentColor; }
.back-to-top:hover { background: var(--blue); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }

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

/* ===== Mniejsze ekrany ===== */

@media (max-width: 999.98px) {
  :root { --header-h: 70px; }
  .site-header.is-shrunk .container { height: 70px; }
  .logo img, .site-header.is-shrunk .logo img { height: 48px; }
  .header-end { display: none; }
  .menu-toggle { display: block; }
  .site-footer .container { grid-template-columns: 1fr; }
  .back-to-top { display: none; }
}

@media (max-width: 781px) {
  .hero, .about, .features { flex-wrap: wrap; }
  .hero-text, .hero-image, .about > div, .feature { flex-basis: 100%; }
  .hero-title { font-size: 40px; }
  .hero-image img { margin: 0 auto; }
  .about { gap: var(--sp-60) 0; }
  .about h2 { margin: 0; }
  .about p { padding: var(--sp-60) 0 0; }
  .btn-outline { width: 100%; }
}

@media (max-width: 689.98px) {
  main { padding: 50px 0; }
  .container { padding: 0 20px; }
  .logo img, .site-header.is-shrunk .logo img { height: 36px; }
  .hero-title { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Strona 404 */
.not-found { padding: var(--sp-60) 0 var(--sp-80); }
.not-found .hero-title { margin-bottom: .5em; }
.not-found .notice { justify-content: flex-start; }
.not-found .btn-outline { width: auto; padding: 1.2em 2.5em; }
