/* ==========================================================================
   SYRAXIS DEVELOPMENT — arkusz stylów
   Mobile-first. Złoto to akcent (logo, CTA, linie, ikony) — nie wypełnienie.
   Kontrast: #C9A55C na #0E0F11 = 8.2:1, #9A9DA3 na #0E0F11 = 7.1:1 (WCAG AA/AAA).
   ========================================================================== */

/* ---------- 1. Tokeny ---------- */
:root {
  --bg: #0E0F11;
  --bg-2: #16181C;
  --bg-3: #1E2126;
  --line: #2A2D33;
  --gold: #C9A55C;
  --gold-hi: #E3C887;
  --gold-lo: #8C6D33;
  --text: #ECECEC;
  --muted: #9A9DA3;

  /* Szczotkowane złoto: gradient bazowy pod ~100° + 1px poziome rysy metalu */
  --brush-lines: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 3px);
  --brush-base: linear-gradient(100deg, #8C6D33 0%, #B8954F 18%, #E3C887 38%, #C9A55C 55%, #D9BC79 70%, #A9873F 86%, #8C6D33 100%);
  --brushed: var(--brush-lines), var(--brush-base);

  --f-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Skala typograficzna (≈ 1.25, płynna) */
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-lg: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --t-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --t-h2: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --t-h1: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-sm: 6px;
  --r: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --nav-h: 68px;
}

/* ---------- 2. Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-base)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
}
/* Szum na grafitowym tle — SVG feTurbulence, bez obrazków */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4, h5 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { font-family: var(--f-mono); font-size: .9em; color: var(--gold-hi); }
address { font-style: normal; }
::selection { background: var(--gold); color: var(--bg); }

/* Widoczny fokus: złoty obrys */
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 680px; }

/* ---------- 3. Typografia / tekst złoty ---------- */
.h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -.035em; }
.h2 { font-size: var(--t-h2); letter-spacing: -.03em; }
.h3 { font-size: var(--t-h3); }
.gold-text, .logo__word {
  background: var(--brushed);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section__lead { color: var(--muted); font-size: var(--t-lg); max-width: 62ch; }
.prose-lg { font-size: var(--t-lg); max-width: 65ch; }

/* ---------- 4. Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,17,.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__word { font: 700 1.125rem/1 var(--f-head); letter-spacing: .22em; }
.nav__toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text);
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav__menu {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
  display: none;
}
.nav__menu.is-open { display: block; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu li a { display: block; padding: .85rem 0; color: var(--text); text-decoration: none; font-family: var(--f-head); font-size: 1.25rem; border-bottom: 1px solid var(--line); }
.nav__menu li a:hover { color: var(--gold-hi); }
.nav__lang {
  display: inline-block; margin-top: 1rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  font: 500 .8125rem/1 var(--f-mono); color: var(--muted); text-decoration: none; letter-spacing: .06em;
}
.nav__lang:hover { color: var(--gold-hi); border-color: var(--gold-lo); }

@media (min-width: 860px) {
  .nav__toggle { display: none; }
  .nav__menu { position: static; display: flex !important; align-items: center; gap: 2rem; background: none; border: 0; padding: 0; }
  .nav__menu ul { display: flex; gap: 1.75rem; }
  .nav__menu li a { padding: .25rem 0; border: 0; font-family: var(--f-body); font-size: .9375rem; color: var(--muted); position: relative; }
  .nav__menu li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--brushed); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav__menu li a:hover { color: var(--text); }
  .nav__menu li a:hover::after { transform: scaleX(1); }
  .nav__lang { margin: 0; }
}

/* ---------- 5. Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 10px;
  font: 600 .9375rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: box-shadow .3s var(--ease), transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 40px; padding: .6rem 1rem; font-size: .875rem; }
.btn--gold { background: var(--brushed); color: #15130F; border-color: rgba(227,200,135,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.25); }
.btn--gold:hover { color: #15130F; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px var(--gold-hi), 0 8px 28px -6px rgba(201,165,92,.45); }
.btn--gold:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--gold); border-color: var(--gold-lo); }
.btn--ghost:hover { color: var(--gold-hi); border-color: var(--gold); box-shadow: 0 0 22px -8px rgba(227,200,135,.5); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.link { color: var(--gold); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold-lo); padding-bottom: 2px; }
.link:hover { border-color: var(--gold-hi); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
/* Siatka blueprintu — wygaszana ku krawędziom */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,165,92,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,165,92,.07) 1px, transparent 1px),
    linear-gradient(rgba(236,236,236,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,236,236,.025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero__title { font-size: var(--t-h1); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; margin-bottom: .45em; }
.hero__title span { display: block; }
.hero__lead { color: var(--muted); font-size: var(--t-lg); max-width: 52ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__art { color: var(--muted); max-width: 260px; margin-inline: auto; width: 100%; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero__art { max-width: 420px; }
}

/* Rysunek techniczny: jedna orkiestrowana animacja wczytania */
.blueprint .bp-dim, .blueprint .bp-ui { opacity: .55; }
.blueprint .bp-txt { opacity: .7; }
.blueprint [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .blueprint [pathLength] { stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
  .blueprint .bp-gold [pathLength] { animation-duration: 1.8s; }
  .blueprint .bp-ui [pathLength] { animation-delay: .7s; animation-duration: 1.1s; }
  .blueprint .bp-dim [pathLength] { animation-delay: 1.1s; animation-duration: .9s; }
  .blueprint .bp-accent { animation-delay: 1.5s; animation-duration: 1.4s; }
  .blueprint .bp-txt { opacity: 0; animation: fade .8s 1.6s forwards; }
  .hero__copy > * { opacity: 0; transform: translateY(12px); animation: rise .8s var(--ease) forwards; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .24s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: .7; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 7. Sekcje ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--page { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
/* Cienka złota linia nad nagłówkiem sekcji */
.section__head .h2::before, .about__text .h2::before, .contact .h2::before {
  content: ""; display: block; width: 48px; height: 1px; margin-bottom: 1.25rem; background: var(--brushed);
}
.crumbs { font-size: var(--t-sm); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }

/* Wejście sekcji (fade + lekki slide) — tylko z JS i bez reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 8. Karty ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--apps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--courses { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
  --mx: 50%; --my: 0%;
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .4s var(--ease), border-color .3s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.section--alt .card { background: var(--bg-3); }
/* Złota krawędź podświetlana w miejscu kursora */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--gold-hi), var(--gold-lo) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover::before, .card:focus-within::before { opacity: 1; }

.app-card__head { display: flex; gap: 1rem; align-items: center; }
.app-card__name { font-size: 1.375rem; margin: 0 0 .15rem; }
.app-card__name a { color: var(--text); text-decoration: none; }
.app-card__name a:hover { color: var(--gold-hi); }
.app-card__platforms { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.app-card__desc { color: var(--muted); margin: 0; flex: 1; }
.app-card .link { align-self: flex-start; }

.app-icon { width: var(--s, 64px); height: var(--s, 64px); border-radius: 22%; flex: none; object-fit: cover; border: 1px solid var(--line); }
.app-icon--mono {
  display: grid; place-items: center; font: 600 calc(var(--s, 64px) * .36)/1 var(--f-head); letter-spacing: -.02em;
  background: radial-gradient(120% 90% at 30% 10%, #262A30, #121417);
  border-color: rgba(201,165,92,.35); color: var(--gold);
}

/* Przyciski sklepów (zastępcze; oficjalne odznaki wrzuć do /public/badges/) */
.stores { display: flex; flex-wrap: wrap; gap: .5rem; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: .4rem .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: #0A0B0C; color: var(--text); text-decoration: none; line-height: 1.15;
  transition: border-color .2s, box-shadow .3s;
}
.store:hover { color: var(--text); border-color: var(--gold-lo); box-shadow: 0 0 18px -8px rgba(227,200,135,.6); }
.store__small { font-size: .6875rem; color: var(--muted); }
.store__big { font: 600 1rem/1.1 var(--f-head); }
.store--img { padding: 0; border: 0; background: none; min-height: 0; }
.store--img img { height: 44px; width: auto; display: block; }

/* ---------- 9. Aplikacje na zamówienie ---------- */
.sub-h { font-size: var(--t-h3); margin: 0 0 1.5rem; }
.grid--offers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-bottom: clamp(3rem, 7vw, 5rem); }
.offer__title { font-size: 1.1875rem; margin: 0; }
.offer p { color: var(--muted); margin: 0; font-size: .9375rem; }
.process { list-style: none; padding: 0; margin: 0 0 clamp(3rem, 7vw, 5rem); counter-reset: step; display: grid; gap: 1.75rem; }
.process li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.process li::before {
  content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--gold-lo); background: var(--bg-2); display: grid; place-items: center;
  font: 500 .875rem/1 var(--f-mono); color: var(--gold);
}
.process li::after { content: ""; position: absolute; left: calc(1.125rem - .5px); top: 2.25rem; bottom: -1.6rem; width: 1px; background: var(--line); }
.process li:last-child::after { display: none; }
.process h4 { font-size: 1.0625rem; margin: 0 0 .3rem; }
.process p { color: var(--muted); margin: 0; font-size: .9375rem; }
@media (min-width: 960px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .process li { padding: 3.25rem 0 0; }
  .process li::before { top: 0; }
  .process li::after { left: 2.75rem; right: -1.25rem; top: 1.125rem; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--gold-lo), var(--line)); }
}
.services__bottom { display: grid; gap: 2.5rem; align-items: start; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.why li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.why h4 { font-size: 1.0625rem; margin-bottom: .35rem; }
.why p { color: var(--muted); margin: 0; font-size: .9375rem; }
.quote-cta { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); }
.quote-cta::before { content: ""; position: absolute; top: -1px; left: 2rem; right: 2rem; height: 1px; background: var(--brushed); }
.quote-cta p { color: var(--muted); }
@media (min-width: 900px) { .services__bottom { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }

.pillars { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.pillar { display: grid; gap: 1.5rem; }
.pillar__text p { color: var(--muted); max-width: 52ch; }
.pillar--yt { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); align-items: center; }
@media (min-width: 860px) { .pillar--yt { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; } }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #08090A; border: 1px solid var(--line); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .75; display: block; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.6)); border: 0; color: var(--text); font: 500 .9375rem var(--f-body); cursor: pointer; padding: 1rem; text-align: center;
}
.yt__icon { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; background: rgba(14,15,17,.7); position: relative; }
.yt__icon::after { content: ""; border-left: 16px solid var(--gold); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.yt--channel:hover { color: var(--gold-hi); }
.yt__play:hover .yt__icon, .yt--channel:hover .yt__icon { box-shadow: 0 0 30px -6px rgba(227,200,135,.7); }
.yt__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .5rem .75rem; font-size: .75rem; color: var(--muted); text-align: center; }
.yt--channel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: var(--text); text-decoration: none; background: radial-gradient(circle at 50% 50%, #1E2126, #0A0B0C 70%); }

.course__meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0; font-size: var(--t-sm); color: var(--muted); }
.level { color: var(--gold); }
.course__title { font-size: 1.25rem; margin: 0; }
.course__learn { font: 500 var(--t-sm) var(--f-body); color: var(--muted); margin: 0; letter-spacing: 0; }
.course .btn { align-self: flex-start; margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--brushed); }

.soon {
  display: inline-flex; align-items: center; margin: 0; min-height: 40px; padding: .35rem .9rem;
  border: 1px solid rgba(201,165,92,.45); border-radius: 999px; color: var(--gold-hi);
  font: 600 .8125rem var(--f-head); letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- 10. O nas ---------- */
.about__more { color: var(--muted); max-width: 68ch; margin-top: 1rem; }
.principles { margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.principles div { border-left: 1px solid var(--gold-lo); padding-left: 1.1rem; }
.principles dt { font: 600 1.0625rem var(--f-head); margin-bottom: .2rem; }
.principles dd { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- 11. Kontakt / FAQ ---------- */
.contact__faqh { margin-top: 2.5rem; }
.mail-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem;
  margin: 1.75rem 0 0; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); max-width: 40rem;
}
.section--alt .mail-panel { background: var(--bg); }
.mail-panel__label { margin: 0; width: 100%; color: var(--muted); font-size: var(--t-sm); }
.mail-panel__addr { font: 500 1.2rem/1.3 var(--f-mono); color: var(--text); text-decoration: none; word-break: break-all; }
.mail-panel__addr:hover { color: var(--gold-hi); }
.contact__form, .support__form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); align-self: start; }
.support__form { background: var(--bg-2); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .75rem .85rem; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,165,92,.2); }
.field [aria-invalid="true"] { border-color: #E07A6B; }
.field__hint { margin: 0; color: var(--muted); font-size: .8125rem; }
.field__err { margin: 0; color: #F0A194; font-size: .8125rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: .15rem; accent-color: var(--gold); }
.field--check label { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: var(--t-sm); min-height: 1.4em; }
.form__status.is-ok { color: var(--gold-hi); }
.form__status.is-err { color: #F0A194; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 9px; height: 9px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:hover { color: var(--gold-hi); }
.faq__a p { color: var(--muted); margin: 0 0 1.1rem; max-width: 62ch; }

/* ---------- 12. Podstrona aplikacji ---------- */
.app-page__head { display: grid; gap: 1.5rem; align-items: start; margin-bottom: 3rem; }
.app-page__head .h1 { margin-bottom: .2em; }
.app-page__head .stores { margin-top: 1.25rem; }
@media (min-width: 640px) { .app-page__head { grid-template-columns: auto 1fr; gap: 2rem; } }
.app-page__body { display: grid; gap: 2.5rem; }
.app-page__body .h3 { margin-top: 2.5rem; }
.app-page__links { display: grid; gap: .25rem; align-content: start; border-top: 1px solid var(--gold-lo); padding-top: 1rem; }
.app-page__links a { padding: .5rem 0; }
.app-page__links p { color: var(--muted); font-size: var(--t-sm); }
@media (min-width: 900px) { .app-page__body { grid-template-columns: 1fr 280px; gap: 4rem; } }
.app-shots { margin-top: 3.5rem; }
.shots { list-style: none; padding: 0 0 1rem; margin: 0; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { flex: none; scroll-snap-align: start; }
.shots img { width: 220px; border-radius: 18px; border: 1px solid var(--line); }

/* ---------- 13. Strony prawne (czytelne, bez ciężkich animacji) ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) 5rem; }
.legal__head { max-width: 760px; margin-bottom: 2.5rem; }
.legal .h1, .is-legal .h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal__date { color: var(--muted); font-size: var(--t-sm); }
.legal__layout { display: grid; gap: 2.5rem; }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.5rem; background: var(--bg-2); align-self: start; }
.toc__h { font-size: 1rem; margin-bottom: .75rem; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: .35rem; font-size: var(--t-sm); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold-hi); text-decoration: underline; }
.legal__body { max-width: 72ch; }
.legal__body section { padding-bottom: 1.5rem; }
.legal__body h2 { font-size: 1.375rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.legal__body li { margin-bottom: .4rem; }
.legal__body p, .legal__body li { color: #D3D4D7; }
@media (min-width: 1000px) {
  .legal__layout { grid-template-columns: 260px 1fr; gap: 4rem; }
  .toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}
.ph { background: rgba(201,165,92,.18); color: var(--gold-hi); padding: 0 .25em; border-radius: 3px; }
.doc-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.doc-links-inline { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-head); font-weight: 600; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .75rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.5rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border: 1px solid var(--gold-lo); border-radius: 50%; display: grid; place-items: center; font: 500 .8125rem/1 var(--f-mono); color: var(--gold); }
.support { display: grid; gap: 2rem; max-width: 68ch; }
.support section { margin-bottom: 2.5rem; }

/* ---------- 14. Stopka ---------- */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: .9375rem; position: relative; }
.footer::before { content: ""; position: absolute; top: -1px; left: 50%; width: min(240px, 50%); height: 1px; transform: translateX(-50%); background: var(--brushed); }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 32ch; }
.footer__h { font: 600 .9375rem var(--f-head); letter-spacing: 0; margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a, .footer .linklike { color: var(--muted); text-decoration: none; }
.footer a:hover, .footer .linklike:hover { color: var(--gold-hi); }
.footer address { color: var(--muted); line-height: 1.8; }
.social { display: flex !important; flex-wrap: wrap; gap: .5rem 1.25rem !important; margin-top: 1.25rem !important; }
.footer__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-sm); }
.footer__base p { margin: 0; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- 15. Baner cookies ---------- */
.cookie {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 440px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); font-size: .9375rem;
}
.cookie[hidden] { display: none; }
.cookie__title { font-size: 1.0625rem; margin-bottom: .5rem; }
.cookie p { color: var(--muted); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 600px) { .cookie { left: auto; right: 1.5rem; bottom: 1.5rem; } }

/* ---------- 16. Ruch: szacunek dla prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card { transform: none !important; }
}

/* ---------- 17. Druk (strony prawne) ---------- */
@media print {
  body { background: #fff; color: #000; }
  body::before, .nav, .footer, .cookie, .toc, .skip { display: none !important; }
  .legal__body p, .legal__body li { color: #000; }
  a { color: #000; }
}
