/* 4MAX-MKT-01 — /marketing (katalog). Tokeny 1:1 z 4max.gg (src/styles/global.css, brandbook 04_KOLORYSTYKA). */
@font-face {
  font-family: "Nippo";
  src: url("assets/fonts/Nippo-Variable.woff2") format("woff2-variations"), url("assets/fonts/Nippo-Variable.woff2") format("woff2"), url("assets/fonts/Nippo-Variable.ttf") format("truetype-variations");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Hind";
  src: url("assets/fonts/Hind-Variable.woff2") format("woff2-variations"), url("assets/fonts/Hind-Variable.woff2") format("woff2"), url("assets/fonts/Hind-Variable.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #30304a;
  --navy-900: #21213a;
  --navy-950: #181830;
  --blue: #528ddd;
  --silver: #e1f4fb;
  --mint: #64e38a;
  --line: rgba(255, 255, 255, .1);
  --font-display: "Nippo", "Hind", system-ui, sans-serif;
  --font-sans: "Hind", system-ui, -apple-system, sans-serif;
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--silver);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--mint); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

h1, h2, .footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
}

.container { width: 100%; max-width: 88rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.mint { color: var(--mint); }
.muted { color: rgba(225, 244, 251, .7); }
.eyebrow {
  margin: 0 0 .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
}

/* Header — jak na 4max.gg (logo + pill CTA) */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(24, 24, 48, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.logo img { height: 1.75rem; width: auto; }

/* Buttons — pill, mint primary / ghost secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: scale(1.03); }
.btn-mint { background: var(--mint); color: var(--navy-950); }
.btn-ghost { border: 1px solid rgba(225, 244, 251, .3); color: var(--silver); }
.btn-ghost:hover { border-color: var(--mint); }
.btn-sm { padding: .6rem 1.15rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; min-height: 3.4rem; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 2rem; }
.hero h1 { font-size: clamp(2.75rem, 9vw, 6rem); }
.lead { max-width: 38rem; margin: 1.25rem 0 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(225, 244, 251, .8); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.meta { margin: 1rem 0 0; min-height: 1.6em; font-size: .9rem; color: rgba(225, 244, 251, .62); }
@media (max-width: 520px) {
  .actions .btn { width: 100%; }
}

/* Viewer */
.viewer-wrap { position: relative; padding-bottom: 3rem; }
.viewer {
  display: flex; flex-direction: column; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem);
  padding: clamp(.75rem, 2.5vw, 2rem);
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}
.page {
  position: relative;
  width: 100%; max-width: 900px;
  background: rgba(255, 255, 255, .04);
  border-radius: .35rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.page::before {  /* placeholder do czasu renderu */
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .85rem; color: rgba(225, 244, 251, .35);
}
.page.ready::before { display: none; }
.page img { width: 100%; height: 100%; position: relative; }
.viewer-status { margin: 2rem 0; text-align: center; color: rgba(225, 244, 251, .7); }
.viewer-status a { color: var(--mint); }

.pager {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: .4rem 1rem; border-radius: 999px;
  background: rgba(24, 24, 48, .85); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--silver);
  pointer-events: none; z-index: 30;
  transition: opacity .3s ease;
}
.pager.off { opacity: 0; }

/* Contact */
.contact { padding-bottom: clamp(3rem, 7vw, 5rem); }
.contact-card {
  display: grid; gap: 1.75rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
}
.contact-card h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
.contact-card .muted { margin: .9rem 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (min-width: 900px) {
  .contact-card { grid-template-columns: 1.2fr 1fr; }
  .contact-actions { justify-content: flex-end; }
}
@media (max-width: 520px) { .contact-actions .btn { width: 100%; } }

/* Footer — struktura 1:1 z Footer.astro */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-950); }
.site-footer .container { padding-top: 4rem; padding-bottom: 2rem; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-logo { height: 2rem; width: auto; }
.footer-tagline { margin-top: 1.25rem; max-width: 20rem; font-size: 1.5rem; line-height: 1; color: var(--silver); }
.footer-h { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(225, 244, 251, .62); margin: 0; }
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .625rem; }
.site-footer a { color: rgba(225, 244, 251, .8); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--mint); }
.site-footer address { margin-top: 1rem; font-style: normal; line-height: 1.7; color: rgba(225, 244, 251, .8); }
.site-footer address strong { display: block; font-weight: 600; color: var(--silver); }
.footer-tel { display: inline-block; margin-top: .5rem; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: rgba(225, 244, 251, .62); }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn, .pager { transition: none; }
  .btn:hover { transform: none; }
}
