/* zabbix.grupadm.pl - lista oczekujących na książkę
   Wartości zmieniamy najpierw w style-guide.html, potem tutaj. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrainsmono-500-latin.woff2") format("woff2");
}

:root {
  --ink: #0b121e;
  --ink-2: #1c2632;
  --ink-soft: #4a5563;
  --paper: #ffffff;
  --paper-2: #f2f5f4;
  --line: #dfe5e3;
  --green: #10b169;
  --green-hover: #14c476;
  --green-ink: #07794a;
  --green-glow: #6cd786;
  --on-dark: #e9eef2;
  --on-dark-soft: #aab6c2;
  --error: #b42318;

  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-h1: clamp(2.5rem, 1.6rem + 3vw, 3.9rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem);
  --fs-h3: 1.3rem;
  --fs-lead: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-pad: clamp(52px, 6vw, 76px);
  --radius: 10px;
  --shadow-book: 0 2px 4px rgba(11, 18, 30, .18), 0 24px 48px -12px rgba(11, 18, 30, .45), 0 60px 90px -40px rgba(11, 18, 30, .35);
  --shadow-soft: 0 1px 2px rgba(11, 18, 30, .08), 0 14px 32px -16px rgba(11, 18, 30, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
::selection { background: var(--green-glow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .86em; font-weight: 500; }
h1, h2, h3 { margin: 0; font-stretch: 88%; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- pasek górny ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); text-decoration: none; }
.brand-cover { width: 34px; border-radius: 2px 3px 3px 2px; box-shadow: 0 1px 2px rgba(11, 18, 30, .2), 0 6px 12px -6px rgba(11, 18, 30, .55); }
.brand-text { display: grid; line-height: 1.25; }
.brand-text b { font-weight: 800; font-stretch: 88%; font-size: var(--fs-small); max-width: 17rem; }
.brand:hover b { color: var(--green-ink); }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  padding: 8px 12px; border-radius: 6px; font-size: var(--fs-small); font-weight: 600;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s;
}
.topnav a:hover { color: var(--ink); background: var(--paper-2); }
.topbar-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.topbar-cta {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border-radius: 8px; background: var(--green); color: var(--ink);
  font-weight: 800; font-stretch: 92%; font-size: var(--fs-small); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 18px -10px rgba(7, 121, 74, .9);
  transition: background-color .2s, transform .2s var(--ease);
}
.topbar-cta:hover { background: var(--green-hover); color: var(--ink); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 var(--sec-pad); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--fs-h1); line-height: .98; font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; }
.hero-lead { margin-top: 22px; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero-lead strong { font-weight: 700; color: var(--ink); }
.hero-cover-mobile { display: none; }

.hero-book { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-book img {
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--shadow-book);
  animation: book-in 1.1s var(--ease) both;
}
.hero-book figcaption { margin-top: 26px; font-size: var(--fs-small); color: var(--ink-soft); text-align: center; line-height: 1.5; }
.hero-book figcaption strong { color: var(--ink); font-weight: 700; }
@keyframes book-in {
  from { transform: translateY(14px) rotate(-1.5deg); box-shadow: 0 1px 2px rgba(11, 18, 30, .12); }
  to { transform: none; box-shadow: var(--shadow-book); }
}

/* ---------- formularz ---------- */
.signup { margin-top: 30px; max-width: 520px; }
.signup-offer { font-size: var(--fs-body); font-weight: 600; margin-bottom: 16px; }
.signup-offer b { font-weight: 800; background: var(--green-glow); padding: 0 .3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; height: 56px; padding: 0 16px;
  font: inherit; font-size: var(--fs-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid #b9c3c9; border-radius: 8px;
  caret-color: var(--green-ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #69737d; }
.field input:hover { border-color: var(--ink-soft); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(16, 177, 105, .35); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 35, 24, .22); }
.field-error { display: block; margin-top: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.signup-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 28px; width: 100%;
  font: inherit; font-weight: 800; font-size: var(--fs-body); font-stretch: 92%; letter-spacing: .005em;
  color: var(--ink); background: var(--green);
  border: 0; border-radius: 8px; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -12px rgba(7, 121, 74, .9);
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 16px 28px -14px rgba(7, 121, 74, .95); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 12px 24px -14px rgba(11, 18, 30, .9); }
.btn-dark:hover { background: var(--ink-2); box-shadow: 0 16px 28px -14px rgba(11, 18, 30, .95); }
.btn-inline { width: auto; }

.signup-note { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.5; }
.signup-note a { color: inherit; }

.signup-done { display: none; padding: 22px 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.signup.is-done form { display: none; }
.signup.is-done .signup-done { display: block; }
.signup-done-title { font-size: var(--fs-h3); font-weight: 800; line-height: 1.25; }
.signup-done p { margin-top: 8px; color: var(--ink-2); }


/* ---------- sekcje ---------- */
.section { padding: var(--sec-pad) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin: 16px auto 0; font-size: var(--fs-lead); color: var(--ink-2); max-width: 40em; }

/* co w książce */
.contents { border-top: 1px solid var(--line); }
.contents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.contents-col { padding: 6px clamp(20px, 3vw, 40px) 0; text-align: center; }
.contents-col + .contents-col { border-left: 1px solid var(--line); }
.contents-col h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.2; padding-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.contents-col .ticks { width: fit-content; margin-inline: auto; text-align: left; }
.ticks li { position: relative; padding-left: 30px; margin-top: 12px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%230b121e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.contents-extra { margin: 40px auto 0; max-width: 760px; text-align: center; font-size: var(--fs-lead); color: var(--ink-2); }
.contents-extra strong { color: var(--ink); }

/* wnętrze książki */
.inside { background: var(--paper-2); }
.pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.page-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.page-btn img { border-radius: 2px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.page-btn:hover img { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11, 18, 30, .08), 0 26px 40px -18px rgba(11, 18, 30, .38); }
.page-meta { display: block; margin-top: 16px; }
.page-no { display: block; font-size: var(--fs-small); font-weight: 700; color: var(--green-ink); }
.page-title { display: block; margin-top: 2px; font-weight: 700; line-height: 1.3; }
.page-cmd { display: block; margin-top: 8px; font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }

/* dashboard */
.practice { background: var(--ink); color: var(--on-dark); }
.practice .section-head p { color: var(--on-dark-soft); }
.practice-shot { margin: 0; }
.practice-shot img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.practice-shot figcaption { margin-top: 18px; text-align: center; font-size: var(--fs-small); color: var(--on-dark-soft); }
.practice-cta { display: flex; justify-content: center; margin-top: 40px; }
.practice .btn, .practice .btn:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 24px -12px rgba(0, 0, 0, .7); }

/* autor */
.author-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.author-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.author-body h2 { font-size: var(--fs-h2); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.author-role { margin-top: 10px; font-size: var(--fs-lead); color: var(--ink-2); }
.author-body > p + p { margin-top: 16px; }
.author-bio { margin-top: 22px; max-width: 38em; }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 11.5rem 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.45; }
.facts b { font-weight: 800; font-stretch: 90%; }
.company { margin-top: 26px; font-size: var(--fs-small); color: var(--ink-soft); max-width: 42em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0; font-weight: 700; font-size: var(--fs-body); line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--green-ink); }
.faq-list details p { padding: 0 44px 22px 0; color: var(--ink-2); }

/* końcowy zapis */
.final { background: var(--green); padding: var(--sec-pad) 0; }
.final-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.final h2 { font-size: var(--fs-h2); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.final .signup { margin: 30px auto 0; text-align: left; }
.final .field input { border-color: transparent; }
.final .field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 18, 30, .25); }
.final .field-label, .final .signup-note { color: var(--ink); }
.final .field-error { color: #5c0b05; }
.final .signup-done { background: var(--paper); border: 0; }

/* stopka */
.footer { padding: 36px 0 44px; font-size: var(--fs-small); color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink-2); }
.made-by { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-soft); }
.made-by span { font-size: .8125rem; font-weight: 600; }
.made-by img { width: auto; height: 29px; opacity: .88; transition: opacity .2s; }
.made-by:hover img { opacity: 1; }

/* pasek zapisu na dole: formularz od 761 px, niżej sam przycisk */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 18, 30, .95);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  border-top: 1px solid rgba(108, 215, 134, .28);
  box-shadow: 0 -6px 18px -12px rgba(11, 18, 30, .35);
  color: var(--on-dark);
  transform: translateY(105%); visibility: hidden;
  transition: transform .38s var(--ease), visibility 0s linear .38s;
}
.stickybar.is-visible { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s; }
.stickybar-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 12px; }
.stickybar-id { display: flex; align-items: center; gap: 14px; flex: none; }
.stickybar-cover { width: 40px; border-radius: 2px 3px 3px 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 16px -6px rgba(0, 0, 0, .8); }
.stickybar-label { font-size: .8125rem; line-height: 1.35; color: var(--on-dark-soft); max-width: 23rem; }
.stickybar-label b { display: block; font-size: var(--fs-body); font-weight: 800; font-stretch: 90%; color: var(--green-glow); white-space: nowrap; }
.stickybar-signup { flex: 1 1 auto; max-width: 760px; margin: 0; }
.stickybar-row { display: flex; gap: 10px; align-items: stretch; }
.stickybar .field { position: relative; margin: 0; flex: 0 0 170px; }
.stickybar .field-email { flex: 1 1 auto; min-width: 180px; }
.stickybar .field input {
  height: 50px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .24); color: #fff;
}
.stickybar .field input::placeholder { color: rgba(233, 238, 242, .62); }
.stickybar .field input:hover { border-color: rgba(255, 255, 255, .45); }
.stickybar .field input:focus { background: rgba(255, 255, 255, .11); border-color: var(--green-glow); box-shadow: 0 0 0 4px rgba(108, 215, 134, .22); }
.stickybar .field input[aria-invalid="true"] { border-color: #ff8f82; }
.stickybar .field-error {
  position: absolute; left: 0; bottom: calc(100% + 8px); margin: 0; padding: 5px 10px; border-radius: 6px;
  background: var(--error); color: #fff; font-size: .8125rem; white-space: nowrap;
}
.stickybar .btn { flex: none; width: auto; min-height: 50px; padding: 0 22px; box-shadow: none; }
.stickybar .signup-note { margin-top: 6px; font-size: .75rem; color: var(--on-dark-soft); text-align: center; }
.stickybar .signup-note a { color: var(--on-dark); }
.stickybar .signup-done { padding: 0; background: none; border: 0; color: var(--on-dark); }
.stickybar .signup-done p.signup-done-title { font-size: var(--fs-body); color: var(--green-glow); }
.stickybar .signup-done p { margin: 2px 0 0; color: var(--on-dark); }
.stickybar-cta { display: none; }

/* powiększenie strony książki */
.viewer { padding: 0; border: 0; background: transparent; max-width: min(92vw, 720px); max-height: 94vh; overflow: visible; }
.viewer::backdrop { background: rgba(11, 18, 30, .82); }
.viewer img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 3px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.viewer-close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.viewer-close svg { width: 18px; height: 18px; }

/* ---------- responsywność ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-book { display: none; }
  .hero-cover-mobile { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; margin-top: 22px; }
  .hero-cover-mobile img { border-radius: 2px 5px 5px 2px; box-shadow: 0 2px 4px rgba(11, 18, 30, .2), 0 16px 26px -12px rgba(11, 18, 30, .5); }
  .hero-cover-mobile p { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
  .hero-cover-mobile strong { color: var(--ink); }
  .hero-lead { display: none; }
  .signup { max-width: none; }
  .contents-grid { grid-template-columns: 1fr; gap: 34px; }
  .contents-col { padding: 0; }
  .contents-col + .contents-col { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .pages { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
  .pages li { scroll-snap-align: start; }
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 420px; }
  .topnav { display: none; }
  .topbar-actions { margin-left: auto; }
  .stickybar-label { display: none; }
  .stickybar .field { flex-basis: 130px; }
}
@media (max-width: 760px) {
  .stickybar-id, .stickybar-signup { display: none; }
  .stickybar-inner { display: block; padding-block: 10px; }
  .stickybar-cta { display: flex; width: 100%; min-height: 52px; }
}
@media (max-width: 560px) {
  .topbar-cta { display: none; }
  .topbar-inner { min-height: 64px; }
  .brand-cover { width: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .signup-fields { grid-template-columns: 1fr; }
  .hero-cover-mobile { grid-template-columns: 96px 1fr; }
  .hero-cover-mobile p { font-size: var(--fs-body); }
  .btn { padding: 0 18px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .viewer-close { top: 8px; right: 8px; }
}

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