/* =========================================================
   Pomoc.dyskon.pl — design tokens (spójne z cennik.dyskon.pl)
   ========================================================= */

:root{
  --ink: #0A0F1F;
  --ink-soft: #131C36;
  --navy-soft: #1B2A52;
  --navy-mid: #21407A;
  --paper: #F4F6FB;
  --paper-soft: #E9EDF7;
  --accent: #3E7BFA;
  --accent-2: #6FE3D9;
  --accent-soft: #DCE6FF;
  --slate: #5C6B8C;
  --line: #DBE1F0;
  --line-dark: #233057;
  --ink-text: #101A33;
  --paper-text: #F4F6FB;
  --amber: #E2A23B;
  --amber-soft: #FBEDD6;

  --gradient-brand: linear-gradient(135deg, #0A0F1F 0%, #1B3A85 55%, #3E7BFA 100%);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:14px; height:1px;
  background: var(--accent);
  display:inline-block;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  margin:0;
  letter-spacing: -0.01em;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(62,123,250,.55);
}
.btn-primary:hover{ background:#5790ff; transform: translateY(-1px); }
.btn-ghost-dark{
  background: transparent;
  border-color: var(--line-dark);
  color: var(--paper);
}
.btn-ghost-dark:hover{ border-color: var(--paper); }
.btn-ghost-light{
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost-light:hover{ border-color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- NAV ---------- */
.nav{
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top:0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 72px;
}
.logo{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo-icon{
  width: 26px;
  height: auto;
  flex-shrink:0;
}
.logo .tag{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: .04em;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
  list-style:none;
  font-size: 14.5px;
  color: #C7CCDA;
}
.nav-links a:hover{ color: var(--paper); }
.nav-cta{ display:flex; align-items:center; gap:14px; }

@media (max-width: 760px){
  .nav-links{ display:none; }
}
@media (max-width: 420px){
  .nav .wrap{ height:64px; }
  .logo{ font-size:17px; }
  .nav-cta .btn{ padding:10px 16px; font-size:13.5px; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal{
  opacity:0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible{ opacity:1; transform:none; }
.guide-grid .guide-card:nth-child(1){ transition-delay:.02s; }
.guide-grid .guide-card:nth-child(2){ transition-delay:.08s; }
.guide-grid .guide-card:nth-child(3){ transition-delay:.14s; }
.guide-grid .guide-card:nth-child(4){ transition-delay:.2s; }
.guide-grid .guide-card:nth-child(5){ transition-delay:.26s; }
.guide-grid .guide-card:nth-child(6){ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ---------- SECTION GENERIC ---------- */
section{ padding: 72px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head h2{
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 12px;
}
.section-head p{
  color: var(--slate);
  font-size: 16px;
  margin-top: 12px;
}

/* ---------- HELP HEADER (home) ---------- */
.help-header{
  background:
    radial-gradient(circle at 12% 18%, rgba(62,123,250,.22), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(111,227,217,.14), transparent 50%),
    var(--ink);
  color: var(--paper);
  padding: 76px 0 56px;
}
.help-header h1{
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  margin: 16px 0 16px;
  max-width: 720px;
}
.help-header p.lede{
  color: #B9BFD0;
  font-size: 17px;
  max-width: 560px;
}

/* ---------- GUIDE CARDS ---------- */
.category-label{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
.category-block + .category-block{ margin-top: 48px; }

.guide-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px){
  .guide-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .guide-grid{ grid-template-columns: 1fr; }
}

.guide-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display:flex;
  flex-direction:column;
  box-shadow: 0 1px 2px rgba(16,26,51,.04), 0 16px 32px -24px rgba(16,26,51,.16);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.guide-card:hover{
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px -18px rgba(62,123,250,.35);
}
.guide-card .icon{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.guide-card .icon svg{ width:20px; height:20px; }
.guide-card h3{ font-size: 17.5px; margin-bottom: 8px; }
.guide-card p{ color: var(--slate); font-size: 14.5px; margin: 0; flex-grow:1; }
.guide-card .go{
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display:flex; align-items:center; gap:6px;
}

/* ---------- DOC PAGE (instrukcje) ---------- */
.doc-header{
  background: var(--ink);
  color: var(--paper);
  padding: 48px 0 40px;
}
.doc-header .breadcrumb{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #8890A6;
  margin-bottom: 14px;
}
.doc-header .breadcrumb a:hover{ color: var(--paper); }
.doc-header .eyebrow{ margin-bottom:14px; }
.doc-header h1{ font-size: clamp(26px,3.6vw,38px); }
.doc-header p{ color:#B9BFD0; margin-top:14px; max-width:620px; font-size: 15.5px; }

.doc-layout{
  display:grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  padding: 56px 0 100px;
  align-items:start;
}
.doc-toc{
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.doc-toc .eyebrow{ margin-bottom:16px; }
.doc-toc ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.doc-toc a{
  font-size: 13.5px;
  color: var(--slate);
  display:block;
}
.doc-toc a:hover{ color: var(--ink); }
.doc-toc a.active{ color: var(--accent); font-weight: 600; }
.doc-toc .toc-back{
  display:block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--accent);
}

.doc-body h2{
  font-size: 21px;
  margin: 0 0 14px;
  padding-top: 6px;
  scroll-margin-top: 100px;
}
.doc-section{
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.doc-section:last-child{ border-bottom:none; }
.doc-body p{
  color: var(--ink-text);
  font-size: 15.5px;
  margin: 0 0 14px;
}
.doc-body p:last-child{ margin-bottom: 0; }
.doc-body ol, .doc-body ul.doc-list{
  margin: 0 0 14px;
  padding-left: 22px;
}
.doc-body li{
  font-size: 15.5px;
  margin-bottom: 8px;
}
.doc-body strong{ color: var(--ink); }
.doc-body a{ color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.doc-note{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink-text);
  margin: 0 0 20px;
}
.doc-note strong.note-title{
  display:block;
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}
.doc-note--warning{ border-left-color: var(--amber); background: var(--amber-soft); }
.doc-note--tip{ border-left-color: var(--accent); background: var(--accent-soft); }

.doc-img{
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 0 20px;
  box-shadow: 0 1px 2px rgba(16,26,51,.04), 0 16px 32px -24px rgba(16,26,51,.18);
  display: inline-block;
}
.doc-img img{ display: block; max-width: 100%; width: auto; height: auto; }

.doc-table{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14.5px;
}
.doc-table th, .doc-table td{
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc-table th{
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--slate);
  font-weight: 500;
}
.doc-table tr:last-child td{ border-bottom:none; }

.doc-body code{
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ---------- FAQ ---------- */
.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child{ border-bottom: none; }
.faq-q{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
  cursor:pointer;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
}
.faq-q .plus{
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  transition: transform .2s ease;
  flex-shrink:0;
}
.faq-item.open .plus{ transform: rotate(45deg); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .25s ease;
  color: var(--slate);
  font-size: 14.5px;
}
.faq-a-inner{ padding-top: 12px; max-width: 720px; }

@media (max-width: 900px){
  .doc-layout{ grid-template-columns: 1fr; }
  .doc-toc{ position:static; border-left:none; padding-left:0; border-bottom:1px solid var(--line); padding-bottom:20px; }
}

/* ---------- FOOTER ---------- */
footer{
  background: var(--ink);
  color: #98A0B5;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4{
  color: var(--paper);
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-grid ul{ list-style:none; display:flex; flex-direction:column; gap:10px; font-size:14px; }
.footer-grid a:hover{ color: var(--paper); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap:wrap;
  gap: 12px;
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
