:root {
  --aszk-primary: #1E40AF;
  --aszk-primary-dark: #1E3A8A;
  --aszk-accent: #10B981;
  --aszk-accent-dark: #059669;
  --aszk-bg: #FFFFFF;
  --aszk-card: #F9FAFB;
  --aszk-border: #E5E7EB;
  --aszk-text: #1F2937;
  --aszk-text-muted: #6B7280;
  --aszk-error: #EF4444;
  --aszk-radius: 10px;
  --aszk-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--aszk-text);
  background: var(--aszk-bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--aszk-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.aszk-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--aszk-primary);
  color: #fff;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--aszk-shadow);
}
.site-header .container,
.site-header > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.site-nav a { color: #fff; font-weight: 500; }
.site-nav a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer__links a { color: #CBD5E1; font-size: 0.9rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* ===== SECTIONS ===== */
.aszk-section { padding: 4rem 0; }
.aszk-section--alt { background: var(--aszk-card); }
.aszk-section__title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 2.5rem;
  color: var(--aszk-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== HERO ===== */
.aszk-hero {
  background: linear-gradient(135deg, var(--aszk-primary) 0%, var(--aszk-primary-dark) 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  text-align: center;
}
.aszk-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.aszk-hero__sub {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}
.aszk-hero__trust {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== CTA BUTTON ===== */
.aszk-cta {
  display: inline-block;
  background: var(--aszk-accent);
  color: #fff !important;
  padding: 1rem 2.25rem;
  border-radius: var(--aszk-radius);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  text-decoration: none;
}
.aszk-cta:hover {
  background: var(--aszk-accent-dark);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}
.aszk-cta:disabled { opacity: 0.6; cursor: wait; transform: none; }
.aszk-cta--full { display: block; width: 100%; text-align: center; }

/* ===== STEPS ===== */
.aszk-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.aszk-step {
  background: #fff;
  border: 1px solid var(--aszk-border);
  border-radius: var(--aszk-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.aszk-step:hover { transform: translateY(-4px); box-shadow: var(--aszk-shadow); }
.aszk-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--aszk-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}
.aszk-step h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--aszk-primary); }
.aszk-step p { margin: 0; color: var(--aszk-text-muted); font-size: 0.95rem; }

/* ===== FEATURES ===== */
.aszk-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.aszk-feature {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--aszk-accent);
  border-radius: var(--aszk-radius);
  box-shadow: var(--aszk-shadow);
}
.aszk-feature strong { color: var(--aszk-primary); display: block; margin-bottom: 0.25rem; }

/* ===== CTA SECTION ===== */
.aszk-cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--aszk-primary) 0%, var(--aszk-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 2rem;
  border-radius: 16px;
}
.aszk-cta-section h2 { color: #fff; margin: 0 0 1rem; font-size: 2rem; }
.aszk-cta-section p { margin: 0 0 1.75rem; opacity: 0.95; font-size: 1.1rem; }

/* ===== FORM ===== */
.aszk-form-wrap {
  max-width: 700px;
}
.aszk-form-wrap h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--aszk-primary);
}
.aszk-form__lead {
  color: var(--aszk-text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}
#aszk-form {
  background: var(--aszk-card);
  padding: 2rem;
  border-radius: var(--aszk-radius);
  border: 1px solid var(--aszk-border);
}
.aszk-field { margin-bottom: 1.5rem; }
.aszk-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--aszk-text);
}
.aszk-field input[type=text],
.aszk-field input[type=email],
.aszk-field input[type=tel],
.aszk-field select,
.aszk-field textarea,
.aszk-field input[type=file] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--aszk-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.aszk-field input:focus,
.aszk-field select:focus,
.aszk-field textarea:focus {
  outline: none;
  border-color: var(--aszk-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}
.aszk-field small { display: block; margin-top: 0.35rem; color: var(--aszk-text-muted); font-size: 0.85rem; }
.aszk-field--check label {
  font-weight: 400;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.95rem;
}
.aszk-field--check input { margin-top: 0.25rem; }
.aszk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .aszk-row { grid-template-columns: 1fr; }
}
.aszk-error {
  background: #FEF2F2;
  color: var(--aszk-error);
  border-left: 4px solid var(--aszk-error);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.aszk-form__notice {
  margin-top: 1rem;
  text-align: center;
  color: var(--aszk-text-muted);
  font-size: 0.9rem;
}

/* ===== DROPZONE / FILE UPLOAD ===== */
.aszk-dropzone {
  position: relative;
  border: 2px dashed var(--aszk-border);
  border-radius: var(--aszk-radius);
  background: #fff;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.aszk-dropzone:hover,
.aszk-dropzone--active {
  border-color: var(--aszk-accent);
  background: rgba(16, 185, 129, 0.04);
}
.aszk-dropzone input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: none;
  background: transparent;
}
.aszk-dropzone__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.aszk-dropzone__hint strong {
  display: block;
  color: var(--aszk-primary);
  margin-bottom: 0.25rem;
}
.aszk-dropzone__formats {
  font-size: 0.85rem;
  color: var(--aszk-text-muted);
  margin-top: 0.5rem;
}
.aszk-uploads-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.aszk-upload-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--aszk-card);
  border: 1px solid var(--aszk-border);
  border-radius: 8px;
  font-size: 0.9rem;
  animation: aszk-fade-in 0.25s ease-out;
}
@keyframes aszk-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.aszk-upload-item__icon {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
}
.aszk-upload-item__name {
  flex: 1;
  font-weight: 600;
  color: var(--aszk-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aszk-upload-item__size {
  color: var(--aszk-text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ===== STATUS PAGE ===== */
.aszk-status {
  max-width: 600px;
  text-align: center;
}
.aszk-status h1 {
  color: var(--aszk-primary);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}
.aszk-status__spinner {
  width: 64px;
  height: 64px;
  border: 5px solid #DBEAFE;
  border-top-color: var(--aszk-accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: aszk-spin 1s linear infinite;
}
@keyframes aszk-spin { to { transform: rotate(360deg); } }
.aszk-status__label {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--aszk-primary);
}
.aszk-status__progress {
  background: #E5E7EB;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.aszk-status__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--aszk-primary), var(--aszk-accent));
  width: 5%;
  transition: width 0.5s ease-out;
}
.aszk-status__steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.aszk-status__steps li {
  padding: 0.75rem 1rem;
  background: var(--aszk-card);
  border-radius: 8px;
  color: var(--aszk-text-muted);
  text-align: left;
  border-left: 4px solid transparent;
  transition: all 0.3s;
}
.aszk-status__steps li.aszk-status__step--done {
  color: var(--aszk-text);
  border-left-color: var(--aszk-accent);
}
.aszk-status__steps li.aszk-status__step--active {
  background: rgba(16, 185, 129, 0.1);
  font-weight: 600;
}
.aszk-status__note {
  font-size: 0.9rem;
  color: var(--aszk-text-muted);
  margin-top: 2rem;
}

/* ===== REPORT (case view) ===== */
.aszk-case-header { margin-bottom: 2rem; }
.aszk-case-header h1 {
  color: var(--aszk-primary);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.aszk-download {
  background: var(--aszk-card);
  padding: 1.5rem;
  border-radius: var(--aszk-radius);
  text-align: center;
  margin: 1.5rem 0 2.5rem;
  border: 2px dashed var(--aszk-accent);
}
.aszk-report { line-height: 1.7; }
.aszk-report__section {
  background: #fff;
  border: 1px solid var(--aszk-border);
  border-radius: var(--aszk-radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--aszk-shadow);
}
.aszk-report__title {
  color: var(--aszk-primary);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--aszk-accent);
  display: inline-block;
}
.aszk-report__body p,
.aszk-report__body li { margin-bottom: 0.5rem; }
.aszk-report__body ol,
.aszk-report__body ul { padding-left: 1.5rem; }
.aszk-report__confidence {
  text-align: right;
  color: var(--aszk-text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ===== LEGAL DOCS (Polityka / Regulamin) ===== */
.aszk-legal {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--aszk-text);
}
.aszk-legal h1 {
  color: var(--aszk-primary);
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
  border-bottom: 2px solid var(--aszk-accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.aszk-legal h2 {
  color: var(--aszk-primary);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--aszk-border);
}
.aszk-legal ol,
.aszk-legal ul { padding-left: 1.5rem; }
.aszk-legal li { margin-bottom: 0.5rem; }

/* ===== DISCLAIMER ===== */
.aszk-disclaimer {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CONSENTS (formularz) ===== */
.aszk-field--check--important {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  padding: 0.85rem 1rem;
  border-radius: 8px;
}
.aszk-field--check--important label { font-size: 0.92rem; }

/* ===== FAQ ===== */
.aszk-faq {
  background: #fff;
  border: 1px solid var(--aszk-border);
  border-radius: var(--aszk-radius);
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.aszk-faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--aszk-primary);
  list-style: none;
  position: relative;
}
.aszk-faq summary::-webkit-details-marker { display: none; }
.aszk-faq summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--aszk-accent);
  font-weight: 700;
}
.aszk-faq[open] summary::after { content: '−'; }
.aszk-faq p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  color: var(--aszk-text);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.aszk-contact-card {
  background: linear-gradient(135deg, var(--aszk-primary) 0%, var(--aszk-primary-dark) 100%);
  color: #fff;
  padding: 2rem;
  border-radius: var(--aszk-radius);
  text-align: center;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--aszk-shadow);
}
.aszk-contact-card h2 { margin: 0 0 1rem; color: #fff; }
.aszk-contact-card p { margin: 0 0 0.5rem; color: #fff; opacity: 0.95; }
.aszk-contact-email {
  display: inline-block;
  background: var(--aszk-accent);
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
.aszk-contact-email:hover { background: var(--aszk-accent-dark); text-decoration: none; }

/* ===== MAIN content fallback ===== */
.site-main { min-height: 60vh; padding: 0; }

/* ===== BURGER / MOBILE NAV ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-header > div { position: relative; flex-wrap: wrap; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--aszk-primary);
    box-shadow: var(--aszk-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 70vh; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.4rem 0; }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .site-nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
}
