/* AI Mentors: elementy wspólne dla wszystkich stron: czcionka Barlow, menu główne, pasek sekcji (Wdrożenia AI, Szkolenia z AI),
   stopka i baner zgody na cookies. Ładowany na każdej stronie: na nowych razem z oferta.css, na starszych razem ze style.css.
   Nazwy zmiennych i klas nie pokrywają się ze style.css, więc obie wersje stron mogą korzystać z tego pliku jednocześnie. */

/* ---------- czcionka ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-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: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400-normal.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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-ext-500-normal.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600-normal.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: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-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: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-ext-700-normal.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; }

/* ---------- zmienne (nowy wygląd) ---------- */
:root {
	--ink: #f5f5f7;          /* tekst główny */
	--soft: #e3e0ea;         /* podtytuły, jasny tekst pomocniczy */
	--nav: #d6d3de;          /* linki w menu */
	--muted: #a8a3b6;        /* tekst akapitów */
	--faint: #8a8598;        /* drobny tekst, przypisy */
	--tile: #111016;         /* tło kart */
	--tile-hover: #1b1922;
	--foot: #0d0c12;         /* tło stopki */
	--accent: #b69cff;       /* fiolet, jedyny akcent */
	--accent-hover: #cbb8ff;
	--line: rgba(255, 255, 255, .14);
	--sans: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: max(22px, 4vw);
	--measure: 1080px;       /* szerokość kolumny treści, menu i stopki */
	/* Ciemne paski przewijania i kontrolki formularzy, pasujące do czarnego tła. */
	color-scheme: dark;
}

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #ffffff; color: #000000; font-family: var(--sans); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- menu główne ---------- */
/* Na stronach z paskiem sekcji przykleja się pasek sekcji, a menu przewija się z treścią.
   Na pozostałych stronach przykleja się menu (gnav--sticky). */
.gnav { position: relative; z-index: 51; background: #000000; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--sans); }
.gnav--sticky { position: sticky; top: 0; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.gnav-in { display: flex; align-items: center; gap: 24px; max-width: var(--measure); min-height: 52px; margin-inline: auto; padding: 0 var(--gutter); }
.gnav-logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.gnav-logo img { display: block; width: auto; height: 18px; }
.gnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gnav ul a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: none; color: var(--nav); }
.gnav ul a:hover, .gnav ul a:focus-visible, .gnav ul a[aria-current] { color: #ffffff; }

.menu-btn { display: none; position: relative; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: #ffffff; cursor: pointer; }
.menu-btn span, .menu-btn span::before { position: absolute; left: 13px; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.menu-btn span { top: 18px; }
.menu-btn span::before { content: ""; left: 0; top: 7px; }
.gnav.is-open .menu-btn span { top: 21px; transform: rotate(45deg); }
.gnav.is-open .menu-btn span::before { top: 0; transform: rotate(-90deg); }

/* Na telefonie i tablecie menu otwiera się jako szuflada na całym ekranie pod paskiem z logo. */
@media (max-width: 833px) {
	.gnav ul { display: none; }
	.menu-btn { display: block; }
	/* Rozmycie tła tworzy nowy kontekst dla position: fixed, więc przy otwartym menu je wyłączamy. */
	.gnav.is-open { background: #000000; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.gnav.is-open ul { display: flex; flex-direction: column; gap: 0; position: fixed; inset: 53px 0 0; z-index: 51; overflow-y: auto; padding: 16px var(--gutter) 40px; background: #000000; }
	.gnav.is-open ul a { min-height: 56px; padding: 0; font-size: 28px; font-weight: 600; letter-spacing: -.01em; color: var(--soft); }
	.gnav.is-open ul a[aria-current] { color: var(--accent); }
}

/* ---------- pasek sekcji (Wdrożenia AI, Szkolenia z AI) ---------- */
.lnav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); font-family: var(--sans); }
.lnav-in { display: flex; align-items: center; gap: 16px; max-width: var(--measure); min-height: 60px; margin-inline: auto; padding: 0 var(--gutter); }
.lnav-t { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; font-size: 22px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; color: #ffffff; }
.lnav-t:hover, .lnav-t:focus-visible { color: #ffffff; }
.lnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lnav ul a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; color: var(--nav); }
.lnav ul a:hover, .lnav ul a:focus-visible { color: #ffffff; }
.lnav ul a[aria-current] { color: var(--faint); }
.lnav-cta { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; color: #0b0a0f; transition: background-color .2s ease; }
.lnav-cta:hover, .lnav-cta:focus-visible { background: var(--accent-hover); color: #0b0a0f; }
/* Strzałka, która na węższych ekranach rozwija linki do sekcji pod paskiem (site.js). */
.lnav-more { display: none; flex: none; position: relative; width: 44px; height: 44px; margin-right: -6px; padding: 0; border: 0; background: none; color: var(--nav); cursor: pointer; }
.lnav-more span { position: absolute; left: 17px; top: 15px; width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .25s ease, top .25s ease; }
.lnav-more:hover { color: #ffffff; }
.lnav.is-open .lnav-more span { top: 20px; transform: rotate(-135deg); }
/* Linki do sekcji mieszczą się w pasku od 1024 px; węższe ekrany rozwijają je strzałką. */
@media (max-width: 1023px) {
	.lnav ul { display: none; }
	.lnav-more { display: block; }
	.lnav.is-open ul { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 16px; background: rgba(0, 0, 0, .94); border-bottom: 1px solid var(--line); }
	.lnav.is-open ul a { min-height: 48px; padding: 0; font-size: 17px; }
}
@media (max-width: 833px) {
	.lnav-t { font-size: 19px; }
}
@media (max-width: 380px) {
	/* Nazwa, strzałka i przycisk w jednym wierszu: mniejsze odstępy, a za długa nazwa skraca się wielokropkiem. */
	.lnav-in { gap: 6px; }
	.lnav-t { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 16px; line-height: 44px; }
	/* Strzałka zachowuje pole dotyku 44 px, ale zajmuje w wierszu tylko szerokość znaku. */
	.lnav-more { margin: 0 -10px; }
	.lnav-cta { padding: 0 12px; }
}

/* ---------- stopka ---------- */
.ftr { padding: 0 var(--gutter) 24px; background: var(--foot); font-family: var(--sans); color: var(--faint); }
.ftr-in { max-width: var(--measure); margin-inline: auto; }
/* Przypisy do źródeł (na stronach, które ich potrzebują) stoją nad mapą strony. */
.fn { padding: 28px 0; border-bottom: 1px solid var(--line); }
.fn ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 1.3em; }
.fn li { font-size: 13px; line-height: 1.5; color: var(--faint); }
.dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 32px 0 20px; }
.dir h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--soft); }
.dir a { display: block; padding: 10px 0; font-size: 14px; line-height: 24px; text-decoration: none; color: var(--muted); }
.dir a:hover, .dir a:focus-visible { text-decoration: underline; color: #ffffff; }
.ftr-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ftr-legal p { margin: 0; font-size: 13px; color: var(--faint); }
.ftr-legal nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ftr-legal a, .ftr-legal button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; text-decoration: none; color: var(--muted); cursor: pointer; }
.ftr-legal a:hover, .ftr-legal button:hover { text-decoration: underline; color: #ffffff; }
/* „Ustawienia cookies” są ukryte, dopóki Analytics nie jest skonfigurowany (site.js). */
[data-consent-open][hidden] { display: none; }
@media (max-width: 833px) {
	.dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- baner zgody na cookies ---------- */
.consent { position: fixed; left: var(--gutter); bottom: 24px; z-index: 60; width: min(520px, calc(100% - 2 * var(--gutter))); padding: 24px; border-radius: 22px; background: var(--tile); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); font-family: var(--sans); }
.consent[hidden] { display: none; }
.consent__title { margin: 0; font-size: 17px; font-weight: 600; color: #ffffff; }
.consent__text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.consent__text a { color: var(--accent); }
/* Oba przyciski wyglądają tak samo: odmowa jest równie łatwa jak zgoda. */
.consent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.consent__btn { flex: 1 1 140px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); font: inherit; font-size: 15px; font-weight: 600; color: #0b0a0f; cursor: pointer; }
.consent__btn:hover, .consent__btn:focus-visible { background: var(--accent-hover); }
@media (max-width: 599px) {
	.consent { left: 0; bottom: 0; width: 100%; padding: 20px var(--gutter) 24px; border-radius: 22px 22px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.menu-btn span, .menu-btn span::before, .lnav-cta, .lnav-more span { transition: none; }
}
