/* ==========================================================================
   FIRMOWANE.PL — arkusz drukarski
   Paleta: papier #F7F6F2 · czerń drukarska #191813 · kobalt #2438E8
           CMYK: #00A3E0 / #E10098 / #FFCE00 · zieleń #00B27A
   Typografia: Anton (display) · Archivo (tekst) · IBM Plex Mono (specyfikacje)
   ========================================================================== */

:root {
    --paper: #F7F6F2;
    --ink: #191813;
    --line: #DBD9D0;
    --kobalt: #2438E8;
    --cyjan: #00A3E0;
    --magenta: #E10098;
    --zolty: #FFCE00;
    --muted: #6B6A61;
    --font-display: 'Anton', 'Arial Narrow', sans-serif;
    --font-body: 'Archivo', 'Helvetica Neue', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Elementy wspólne
   -------------------------------------------------------------------------- */

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.regmark {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 1.25;
    color: var(--kobalt);
    flex: none;
}

.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary {
    background: var(--ink);
    color: var(--paper);
}

.btn--primary:hover {
    background: var(--kobalt);
    border-color: var(--kobalt);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--kobalt);
    color: var(--kobalt);
}

/* --------------------------------------------------------------------------
   Nagłówek strony — pasek zlecenia
   -------------------------------------------------------------------------- */

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

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 4rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.875rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1;
}

.logo__tld { color: var(--kobalt); }

.site-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
}

.site-nav a:hover { color: var(--kobalt); }

.site-header__cta { padding: 0.5rem 1.125rem; }

/* --------------------------------------------------------------------------
   Hero — arkusz ze znacznikami cięcia
   -------------------------------------------------------------------------- */

.hero { padding: 2.5rem 1.5rem 0; }

.sheet {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: clamp(2.5rem, 6vw, 5rem);
}

.sheet--hero {
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 3.5rem);
}

.sheet__ticket {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.sheet__ticket-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.colorbar {
    display: inline-flex;
}

.colorbar span {
    width: 0.8rem;
    height: 0.8rem;
    display: inline-block;
}

.crop {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
}

.crop::before, .crop::after {
    content: '';
    position: absolute;
    background: var(--ink);
}

.crop::before { width: 100%; height: 1px; }
.crop::after  { width: 1px; height: 100%; }

.crop--tl { top: -0.625rem; left: -0.625rem; }
.crop--tr { top: -0.625rem; right: -0.625rem; transform: scaleX(-1); }
.crop--bl { bottom: -0.625rem; left: -0.625rem; transform: scaleY(-1); }
.crop--br { bottom: -0.625rem; right: -0.625rem; transform: scale(-1); }

.crop--tl::before, .crop--tr::before, .crop--bl::before, .crop--br::before { top: 0; left: 0; }
.crop--tl::after, .crop--tr::after, .crop--bl::after, .crop--br::after { top: 0; left: 0; }

/* --- Grafiki wtopione w arkusz --- */

.hero__watermark {
    position: absolute;
    top: 50%;
    right: -3.5rem;
    transform: translateY(-58%);
    width: clamp(14rem, 26vw, 24rem);
    height: auto;
    color: var(--line);
    opacity: 0.55;
    pointer-events: none;
}

.hero__halftone {
    position: absolute;
    left: 0;
    bottom: 0;
    width: clamp(8rem, 18vw, 16rem);
    height: clamp(5rem, 10vw, 9rem);
    background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px);
    background-size: 11px 11px;
    -webkit-mask-image: linear-gradient(45deg, #000 20%, transparent 75%);
    mask-image: linear-gradient(45deg, #000 20%, transparent 75%);
    pointer-events: none;
}

/* --- Slajder arkuszy --- */

.hero-slides {
    display: grid;
    position: relative;
    z-index: 1;
}

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 480ms ease, visibility 0s linear 480ms;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 480ms ease;
}

.hero-slide__proof {
    justify-self: center;
    background: #FFFFFF;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(25, 24, 19, 0.14);
    padding: 0.625rem 0.625rem 0;
    transform: rotate(1.6deg);
    width: min(100%, 22rem);
}

.hero-slide__proof img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}

.hero-slide__proof figcaption {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 0.55rem 0.125rem;
}

.hero__dial {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__dial-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-right: 0.5rem;
}

.hero__dot {
    width: 0.8rem;
    height: 0.8rem;
    padding: 0;
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.hero__dot:hover { background: var(--line); }

.hero__dot.is-active { background: var(--kobalt); border-color: var(--kobalt); }

.hero__headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 7.25rem);
    line-height: 0.96;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin: 1.75rem 0 1.5rem;
}

/* Overprint — druga, rozjechana warstwa druku w kobalcie */
.overprint {
    position: relative;
    font-style: normal;
    color: var(--kobalt);
    display: inline-block;
}

.overprint::before {
    content: attr(data-word);
    position: absolute;
    top: 0.028em;
    left: 0.04em;
    white-space: nowrap;
    color: var(--magenta);
    opacity: 0.42;
    z-index: -1;
    mix-blend-mode: multiply;
}

.hero__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.hero__sub {
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sheet__spec {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    color: var(--muted);
}

/* Animacja wejścia — jedno zaplanowane otwarcie */
@media (prefers-reduced-motion: no-preference) {
    .hero__headline, .hero__foot, .hero .eyebrow {
        animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .hero__headline { animation-delay: 80ms; }
    .hero__foot { animation-delay: 180ms; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(1rem); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Ticker — taśma produktów
   -------------------------------------------------------------------------- */

.tape-stage {
    overflow: hidden;
    margin-top: 1.25rem;
    padding: 1.5rem 0 1.75rem;
}

.tape-stage + .section { padding-top: 2.5rem; }

.tape {
    position: relative;
    overflow: hidden;
    width: 106%;
    margin-left: -3%;
}

.tape--ink {
    background: var(--ink);
    transform: rotate(-0.7deg);
    box-shadow: 0 14px 34px rgba(25, 24, 19, 0.22);
}

.tape__track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
}

.tape--ink .tape__track {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3.4vw, 2.75rem);
    letter-spacing: 0.04em;
    color: var(--paper);
    padding: 0.5em 0 0.45em;
}

.tape__track-half {
    display: inline-flex;
    align-items: center;
}

.tape__word { margin: 0 0.5em; }

.tape__star {
    font-size: 0.55em;
    line-height: 1;
    transform: translateY(-0.15em);
}

.tape__star--c { color: var(--cyjan); }
.tape__star--m { color: var(--magenta); }
.tape__star--y { color: var(--zolty); }
.tape__star--k { color: var(--paper); opacity: 0.55; }

@media (prefers-reduced-motion: no-preference) {
    .tape__track { animation: feed 38s linear infinite; }
}

@keyframes feed {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Sekcje
   -------------------------------------------------------------------------- */

.section { padding: 3.75rem 0; }

.section--ruled {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #FFFFFF;
}

.section__head { margin-bottom: 2.25rem; }

.section__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.25rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin-top: 0.75rem;
}

.section__lede {
    margin-top: 1rem;
    max-width: 38rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Próbniki Pantone — sygnatura strony
   -------------------------------------------------------------------------- */

.swatches {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.25rem;
}

.swatch {
    background: #FFFFFF;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.swatch:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(25, 24, 19, 0.10);
}

.swatch__field {
    display: block;
    aspect-ratio: 5 / 3;
    position: relative;
    overflow: hidden;
}

.swatch__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.swatch:hover .swatch__photo { transform: scale(1.04); }

.swatch__ink {
    position: absolute;
    bottom: 0.5rem;
    right: 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    color: #FFFFFF;
    mix-blend-mode: difference;
    opacity: 0.7;
}

.swatch__label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.125rem 1.25rem;
}

.swatch__code {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
}

.swatch__name {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.swatch__desc {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Tabela technologii — karta specyfikacji
   -------------------------------------------------------------------------- */

.spec-scroll { overflow-x: auto; }

.spec {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
}

.spec th, .spec td {
    text-align: left;
    padding: 1.125rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.spec thead th {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid var(--ink);
}

.spec tbody th {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.spec tbody td { color: var(--muted); }

.spec__run {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink) !important;
    white-space: nowrap;
}

.spec tbody tr:hover { background: var(--paper); }

/* --------------------------------------------------------------------------
   Realizacje — odbitki próbne
   -------------------------------------------------------------------------- */

.proofs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
}

.proof {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 0.875rem 0.875rem 0;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.proof:nth-child(odd) { transform: rotate(-0.4deg); }
.proof:nth-child(even) { transform: rotate(0.4deg); }

.proof:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 12px 28px rgba(25, 24, 19, 0.12);
}

.proof img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}

.proof__caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.75rem 0.125rem 0.875rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
}

.proof__tech { color: var(--muted); }

/* --------------------------------------------------------------------------
   Proces — obieg zlecenia
   -------------------------------------------------------------------------- */

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 2rem 1.5rem;
    counter-reset: step;
}

.step {
    text-align: center;
}

.step__icon {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--ink);
    margin: 0 auto 1.125rem;
}

.step__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0.375rem 0 0.5rem;
}

.step__desc {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Opinia — pełny zalew kobaltu (aplaż)
   -------------------------------------------------------------------------- */

.quote-band {
    background: var(--kobalt);
    color: var(--paper);
    padding: 3.75rem 0 4.25rem;
}

.quote-band__head { margin-bottom: 2rem; }

.eyebrow--inverse { color: rgba(255, 255, 255, 0.72); }

.eyebrow--inverse + .section__title { color: #FFFFFF; }

.slips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
}

.slip {
    position: relative;
    background: #FFFFFF;
    color: var(--ink);
    padding: 1.25rem 1.375rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.slip__meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    padding-right: 6.5rem;
}

.slip__quote {
    font-size: 1.0625rem;
    line-height: 1.5;
    flex: 1;
}

.slip__author {
    display: block;
    margin-top: 1.25rem;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.slip__stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    transform: rotate(-6deg);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kobalt);
    border: 2px solid var(--kobalt);
    border-radius: 2px;
    padding: 0.25rem 0.5rem;
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Kontakt / CTA — drugi arkusz
   -------------------------------------------------------------------------- */

.sheet--cta { text-align: center; }

.cta__headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    text-transform: uppercase;
    line-height: 1.02;
    text-wrap: balance;
}

.cta__text {
    margin: 1.25rem auto 2rem;
    max-width: 32rem;
    color: var(--muted);
}

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

/* --- Formularz briefu --- */

.brief-form {
    max-width: 46rem;
    margin: 0 auto;
    text-align: left;
}

.brief-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.brief-form__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.field { display: block; }

.field--full { grid-column: 1 / -1; }

.field__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.375rem;
}

.field__input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 0;
    padding: 0.75rem 0.875rem;
}

.field__input:focus {
    outline: 2px solid var(--kobalt);
    outline-offset: 1px;
    border-color: var(--kobalt);
}

.field__input--area {
    resize: vertical;
    min-height: 7rem;
}

.brief-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.brief-form__alt {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.brief-form__alt:hover { color: var(--kobalt); }

.form-note {
    max-width: 34rem;
    margin: 0 auto;
    font-size: 1.0625rem;
}

.form-note--ok {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.5rem 1.75rem;
}

.form-note__stamp {
    position: static;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.form-note--error {
    color: #B4231F;
    margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Stopka
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: 1.125rem;
}

.site-footer__meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */

@media (max-width: 44rem) {
    .site-nav { display: none; }
    .overprint::before { display: none; }
    .site-header__cta { margin-left: auto; }
    .sheet__spec { display: none; }
    .hero { padding: 1.5rem 1rem 0; }
    .hero__headline { font-size: 12vw; }
    .hero-slide { grid-template-columns: 1fr; }
    .hero-slide__proof { display: none; }
    .hero__watermark { display: none; }
    .brief-form__grid { grid-template-columns: 1fr; }

    /* Tabela technologii układa się w karty zamiast przewijać w bok */
    .spec { min-width: 0; }
    .spec thead { display: none; }
    .spec tbody tr { display: block; padding: 1.125rem 0; }
    .spec tbody th, .spec tbody td {
        display: block;
        padding: 0;
        border-bottom: none;
        white-space: normal;
    }
    .spec tbody tr { border-bottom: 1px solid var(--line); }
    .spec tbody td { margin-top: 0.25rem; }
    .spec tbody tr:hover { background: none; }
    .section { padding: 3.5rem 0; }
}
