﻿:root {
  --color-primary: #b30000;
  --color-accent: #ffcc00;
  --color-bg: #fff;
  --color-text: #222;
  --radius: 22px;
}

* {
  box-sizing: border-box;
  cursor: default !important;
}

.hero-cta,
.hero-cta:hover,
.contact-card a,
.contact-card a:hover {
  cursor: pointer !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(540px, 75vh);
  padding: clamp(30px, 6vw, 60px) 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  background: radial-gradient(circle at top, rgba(255,255,255,.18), transparent 35%),
    linear-gradient(180deg, #e50000 0%, #8b0000 100%);
  color: #fff;
  overflow: hidden;
}

.hero-bg-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-image {
  position: relative;
  z-index: 3; /* Obrazek pod fg-svg */
  width: min(440px, 86vw);
  max-height: 55vh;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  object-fit: cover;
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  animation: heroImageReveal 0.9s ease-out 0.15s forwards;
}

.hero-copy {
  position: relative;
  z-index: 5; /* Tekst nad wszystkim */
  width: min(780px, 100%);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: fadeInSlide 0.9s ease-out 0.25s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.hero-actions a.hero-cta {
  width: min(340px, 100%);
  max-width: 340px;
  white-space: nowrap;
}

.hero-copy h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 auto 1.6rem;
  max-width: 44ch;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.6rem 3.8rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #111;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16), 0 8px 14px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
  transition: transform 0.24s ease, filter 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.20), 0 12px 22px rgba(0, 0, 0, 0.12);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-cta-secondary:hover {
  background: #fff;
}

.hero-cta .button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  aspect-ratio: 1 / 1;
  font-size: 1rem;
  line-height: 1;
  overflow: visible;
  transform: translateY(0.12em);
  margin-right: 0.25rem;
  background: transparent;
  color: #fff;
  border: none;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.hero-cta:hover .button-icon {
  transform: translateY(0.12em) scale(1.04);
}

section {
  width: min(100%, 920px);
  margin: 0 auto 28px;
  padding: 40px 24px;
}

section:last-of-type {
  margin-bottom: 0;
}

.section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--color-primary);
  position: relative;
  text-align: center;
}

.section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, rgba(47,128,237,1), rgba(47,128,237,0.35));
  border-radius: 999px;
  transform: translateX(-50%);
}

.contact-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  padding: clamp(64px, 7vw, 90px) 0;
  background: linear-gradient(180deg, #fff2b8 0%, #fff9e0 55%, #f9f1d4 100%);
}

.contact-section .contact-panel {
  padding: 0 24px;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: flex-start;
}

.about-copy p {
  margin-bottom: 1.5rem;
}

.about-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.about-highlights li {
  background: #fff7e0;
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  color: #1a1a1a;
  text-align: left;
  box-shadow: 0 18px 30px rgba(255, 190, 0, 0.1);
}

.about-highlights li strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #b36a00;
}

.about-card {
  background: linear-gradient(180deg, #fff8c1 0%, #fffdeb 100%);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 28px;
  padding: 30px 24px;
  box-shadow: 0 24px 60px rgba(255, 190, 0, 0.12);
  text-align: center;
}

.about-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #ffd400;
  color: #111;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin: 0 auto 2.8rem;
}

.about-card p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.75;
}

.section-tag {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c5e00;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: #ffd400;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  width: fit-content;
  white-space: nowrap;
}

.section-intro {
  margin: 0 auto;
  max-width: 620px;
  color: var(--color-text);
  opacity: 0.82;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.75rem;
}

.benefit-card {
  background: #fff8d8;
  border: 1px solid rgba(255, 204, 0, 0.26);
  border-radius: 22px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(255, 187, 0, 0.12);
}

.benefit-emoji {
  font-size: 2.1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.benefit-card p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.7;
}

.contact-intro {
  margin: 0 0 1.5rem;
}

.contact-card {
  background: #fff4b8;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(255, 187, 0, 0.14);
}

.contact-card-secondary {
  background: #fffbe0;
  border: 1px solid rgba(255, 204, 0, 0.25);
}

.contact-phone,
.contact-mail {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
}

.contact-note {
  margin: 0 0 1.35rem;
  color: var(--color-text);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  margin: 0 auto;
  width: min(100%, 760px);
}

.contact-actions a.hero-cta,
.contact-email a.hero-cta {
  width: 100%;
  max-width: 340px;
  white-space: normal;
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  line-height: 1.25;
}

.footer-inner {
  width: min(100%, 920px);
  margin: 0 auto;
}

.site-footer {
  padding: 24px 0 32px;
  background: #fffdf2;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
}

.product-inner {
  background: linear-gradient(180deg, #fff8c1 0%, #fffef2 80%);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 40px 40px;
}

.section--pricing .product-inner {
  text-align: center;
}

.section--pricing .product-features li {
  align-items: center;
  text-align: center;
}

.product-inner h2,
.about-content h2,
.trust-grid h2 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--color-primary);
}


.product-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.product-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.3rem 1.15rem;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 18px;
  background: #fff7e0;
  color: #1f1f1f;
}

.product-features li strong {
  font-size: 1.05rem;
}

.feature-note {
  font-size: 0.95rem;
  color: #5b5b5b;
  max-width: 34ch;
  line-height: 1.5;
}

.feature-emoji {
  font-size: 2.4rem;
  line-height: 1;
  display: block;
}

.trust-grid {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
}

.trust-grid p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.trust-grid a.hero-cta {
  margin: 0;
}

.contact-panel {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

@media (max-width: 900px) {
  section {
    width: 100%;
    margin: 0 auto;
    padding: 40px 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .product-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding: 28px 14px;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-copy p {
    max-width: 100%;
  }

  .hero-cta {
    padding: 1.4rem 2rem;
    font-size: 1.25rem;
    max-width: 100%;
  }

  .about-card,
  .benefit-card,
  .product-features li,
  .contact-card {
    padding: 22px;
    min-width: 0;
  }

  .section {
    width: 100%;
    padding: 32px 14px;
    margin-bottom: 24px;
  }

  .contact-section {
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: clamp(48px, 6vw, 70px) 0;
  }

  .contact-card {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .contact-panel {
    padding: 0 14px;
    width: 100%;
    max-width: 100%;
  }

  .contact-actions {
    gap: 0.75rem;
  }

  .contact-actions a.hero-cta,
  .contact-email a.hero-cta {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .product-features li,
  .about-highlights li,
  .benefit-card {
    min-width: 0;
  }
}

.contact-card {
  background: #fff7e0;
  border: 1px solid rgba(255, 204, 0, 0.34);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(255, 204, 0, 0.16);
}

.contact-card-secondary {
  background: #fffdf2;
  border: 1px solid rgba(255, 204, 0, 0.16);
}

.contact-phone {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
}

.contact-mail {
  margin: 0 0 0.75rem;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1rem, 3vw, 2.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.contact-note {
  margin: 0 0 1.35rem;
  color: var(--color-text);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contact-card a {
  display: inline-block;
}

.about-highlights li,
.product-features li,
.benefit-card,
.contact-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.about-highlights li:hover,
.product-features li:hover,
.benefit-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.14);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeIn 0.85s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroImageReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroButtonReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero-image {
    max-height: 45vh;
  }

  .about-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.96rem;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .hero-cta {
    width: 100%;
    padding: 1rem 1.2rem;
    gap: 0.75rem;
    font-size: 1.35rem;
    white-space: normal;
  }

  .hero-cta .button-icon {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.2rem;
    transform: translateY(0.06em);
  }

  .contact-actions {
    flex-direction: column;
    gap: 0.95rem;
  }

  .product-inner {
    padding: 24px 20px;
  }

  section {
    padding: 32px 14px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.explain-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.explain-form textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 1.2rem 1.3rem;
  font-size: 1rem;
  line-height: 1.75;
  background: #fff;
  color: var(--color-text);
}

.file-upload-label {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.file-upload-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  background: #fff;
  color: var(--color-text);
}

.field-note {
  margin: 0.25rem 0 0.85rem;
  color: rgba(17, 17, 17, 0.78);
  font-size: 0.95rem;
}

.status-message {
  margin: 0.5rem 0 0.75rem;
  color: rgba(17, 17, 17, 0.78);
  font-size: 0.95rem;
}

.status-message.error {
  color: #9b1d1d;
}

.extracted-text-preview {
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: #fff9e6;
  border: 1px solid rgba(255, 204, 0, 0.35);
  color: var(--color-text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}

.loader[hidden] {
  display: none !important;
}

.error-message {
  margin: 0;
  color: #9b1d1d;
  font-weight: 700;
}

.result-card {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(179, 0, 0, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

.result-card h3 {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.result-text {
  line-height: 1.8;
  color: var(--color-text);
  white-space: pre-wrap;
}

.payment-info {
  margin-top: 1.5rem;
  padding: 1.25rem 1.3rem;
  background: #fff8db;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 22px;
}

.payment-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
  word-break: break-word;
}

@media (max-width: 760px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-subtitle {
    max-width: 42ch;
    margin: 0 auto;
  }
}
