/* Portal /learning (statyczny) - ten sam motyw co aplikacja (B50): cieple tlo, akcent morski, ilustracje z Google Flow. */
:root {
  --bg: #f7f3ea; --bg-2: #efe8da; --card: #fffdf8; --fg: #1e2a2f; --muted: #5f6b70; --line: #e3dbc9;
  --accent: #146c7a; --accent-2: #0f5661; --accent-fg: #fff; --accent-soft: #e1eff0; --sun: #e9b949; --coral: #e2725b;
  --art-bg: #fbf6ea; --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 42, 47, .05), 0 10px 28px -14px rgba(30, 42, 47, .22);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141a1d; --bg-2: #1a2226; --card: #1f282d; --fg: #ebe6db; --muted: #a3ada8; --line: #303c42; --accent: #6cc3d0; --accent-2: #8ad3de; --accent-fg: #0c1f24; --accent-soft: #1b3237; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -14px rgba(0, 0, 0, .7); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--fg); background: var(--bg);
  background-image: radial-gradient(60rem 30rem at 110% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), radial-gradient(40rem 24rem at -20% 0%, color-mix(in srgb, var(--sun) 12%, transparent), transparent 60%);
  background-attachment: fixed; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 72rem; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--fg); min-height: 44px; }
.brand img { width: 2rem; height: 2rem; border-radius: 9px; }
.top-links { display: flex; gap: .2rem; }
.top-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .2rem .7rem; border-radius: 999px; text-decoration: none; color: var(--fg); font-weight: 500; font-size: .95rem; }
.top-links a:hover { background: var(--bg-2); }
main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
h1 { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .75rem; }
h2 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .7rem; }
h2 small, h1 small { color: var(--muted); font-weight: 400; font-size: .68em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.lead { font-size: 1.12rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
ol li, ul li { margin: .35rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); text-decoration: none; font-weight: 600; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-fg); }
.btn.big { font-size: 1.15rem; padding: .8rem 1.6rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0; overflow: hidden; align-items: center; }
.hero .hero-text { padding: 1.5rem 1.5rem .75rem; }
.hero img { display: block; width: 100%; height: auto; background: var(--art-bg); }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.1rem 0 .6rem; }
@media (min-width: 50rem) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }
  .hero .hero-text { padding: 2rem 0 2rem 2rem; }
  .hero img { height: 100%; object-fit: cover; }
  .hero.spot img { object-fit: contain; max-height: 20rem; justify-self: center; }
}
.hero.spot img { max-height: 14rem; width: auto; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.step { display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.step img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; background: var(--art-bg); box-shadow: inset 0 0 0 1px var(--line); }
.step b { display: block; font-family: var(--font-display); }
.step p { margin: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.two .card { margin: 0; }
pre { white-space: pre-wrap; font-family: inherit; font-size: .95rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; max-height: 22rem; overflow: auto; }
.section-title { margin: 1.5rem 0 .75rem; }
.mt { margin-top: 1rem; }
.copy-status { color: var(--muted); }
footer { color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem 0 0; }
@media (max-width: 40rem) { main { padding: .8rem .75rem 1.5rem; } .card { padding: 1rem; } h1 { font-size: 1.6rem; } }

/* Przelacznik wersji jezykowych (B54): flagi ze sprite'u img/flags.svg + kod; ciasteczko ui_lang wspolne z aplikacja (portal.js). */
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: .1rem; align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: .15rem .4rem; border: 1px solid transparent; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.lang-switch a:hover { background: var(--bg-2); color: var(--fg); }
.lang-switch a[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.flag { width: 1.35rem; height: .9rem; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; overflow: hidden; }
@media (max-width: 40rem) { .top-in { flex-wrap: wrap; } .lang-switch .code { display: none; } .lang-switch a { padding: .15rem .25rem; } }
