/* Czysta Przyszłość — demo Programo. Petrol/papier/amber, Archivo + IBM Plex Sans. */

:root {
  --ink: #101e1d;
  --petrol: #0e4f52;
  --petrol-dark: #0a3638;
  --paper: #f5f6f2;
  --paper-2: #eceee7;
  --amber: #e07b27;
  --amber-dark: #b85f18;
  --steel: #5c6b68;
  --line: #d8dcd4;
  --white: #ffffff;
  --font-head: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

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

a { color: var(--petrol); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--steel); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

button, .btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* ---------- Top notice ---------- */
.top-notice {
  background: var(--ink);
  color: var(--paper-2);
  font-size: 0.82rem;
  text-align: center;
  padding: 6px 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--amber);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-contact a {
  color: var(--petrol);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { top: -6px; position: absolute; }
.nav-toggle span::after { top: 6px; position: absolute; }

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .header-contact .phone-text { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-weight: 700;
  color: var(--petrol);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  padding: 14px 26px;
  text-decoration: none;
  font-weight: 700;
  border: none;
}
.btn-primary:hover { background: var(--amber-dark); color: var(--white); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 13px 26px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--ink);
}
.btn-secondary:hover { border-color: var(--petrol); color: var(--petrol); }

.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-mosaic figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(10px);
  animation: mosaic-in 0.5s ease forwards;
}
.hero-mosaic figure:nth-child(1) { animation-delay: 0.05s; }
.hero-mosaic figure:nth-child(2) { animation-delay: 0.15s; }
.hero-mosaic figure:nth-child(3) { animation-delay: 0.25s; }
.hero-mosaic figure:nth-child(4) { animation-delay: 0.35s; }

@keyframes mosaic-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.hero-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  padding: 5px 8px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hero-mosaic figure { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Section shell ---------- */
.section {
  padding: 56px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark p { color: #b9c4c1; }
.section-dark h2 { color: var(--paper); }

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

/* ---------- Dla kogo ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}

.audience-card h3 { margin-bottom: 10px; }
.audience-card p { margin-bottom: 0; font-size: 0.95rem; }

@media (max-width: 780px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ---------- Kartoteka / karty kategorii i produktów ---------- */
.tag-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 22px 20px 20px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.tag-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--paper-2) transparent transparent;
}

.tag-card .tag-index {
  font-family: var(--font-head);
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: block;
}

.tag-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tag-card p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.tag-card:hover {
  border-color: var(--amber);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* ---------- Wyróżnik: płatność online ---------- */
.pitch-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.pitch-old,
.pitch-new {
  border: 1px solid #2a3b3a;
  padding: 24px;
}

.pitch-old { opacity: 0.75; }
.pitch-new { border-color: var(--amber); }

.pitch-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}

.pitch-old .pitch-label { color: #8a9491; }

.pitch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pitch-list li {
  padding: 6px 0;
  color: #cfd8d5;
  font-size: 0.95rem;
  border-bottom: 1px solid #22322f;
}
.pitch-list li:last-child { border-bottom: none; }

@media (max-width: 780px) {
  .pitch-strip { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--steel);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { color: var(--petrol); }

/* ---------- Produkty (siatka na stronie głównej) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover { border-color: var(--petrol); }

.product-thumb {
  aspect-ratio: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.product-thumb img { max-height: 100%; object-fit: contain; }

.product-body { padding: 16px 16px 18px; }

.product-brand {
  font-size: 0.76rem;
  color: var(--steel);
  margin-bottom: 4px;
  font-weight: 600;
}

.product-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--amber-dark);
  font-size: 1.05rem;
}

.product-price .net {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--steel);
}

.product-price .ask {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--petrol);
}

/* ---------- Produkt (karta) ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 32px 0 0;
}

.product-photo {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-photo img { max-height: 420px; }

.product-info .product-brand { font-size: 0.85rem; }

.product-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }

.availability {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--petrol);
  background: #e5efef;
  padding: 5px 10px;
  margin-bottom: 20px;
}

.price-box {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.price-box .gross {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--amber-dark);
  display: block;
}

.price-box .net {
  color: var(--steel);
  font-size: 0.9rem;
}

.add-to-cart {
  background: var(--amber);
  color: var(--ink);
  border: none;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 1rem;
}
.add-to-cart:hover { background: var(--amber-dark); color: var(--white); }

.demo-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--steel);
  display: none;
}
.demo-note.visible { display: block; }

.spec-block {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.spec-block h2 { font-size: 1.2rem; }

.spec-block dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 0.92rem;
}
.spec-block dt { color: var(--steel); font-weight: 600; }
.spec-block dd { margin: 0; color: var(--ink); }

@media (max-width: 780px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.contact-list a { text-decoration: none; font-weight: 700; }

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 12px;
  display: none;
}
.form-note.visible { display: block; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-dark);
  color: #cfe0de;
  padding: 40px 0 20px;
}
.site-footer a { color: #cfe0de; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}
.footer-meta {
  font-size: 0.85rem;
  color: #93a8a5;
}
.demo-strip {
  border-top: 1px solid #1e4143;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #7c928f;
  text-align: center;
}
.demo-strip a { color: #9fb6b3; }
