/* ================================================================
   PNEUMATIC CALCULATORS — lead magnet landing (.pc-* + pneu-* hooks)
   Trzyma język marki: --astra-* tokens, ostre 2px, akcent #f97316.
   Klasy pneu-* są sterowane przez pneumatic-calculators.js.
   ================================================================ */

@keyframes pcSlideUp {
    0%   { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes pcKenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.pc-page {
    background: var(--astra-light);
    color: var(--astra-dark);
}

/* ---------- HERO (split, jak srv-hero) ---------- */
.pc-hero {
    position: relative;
    display: flex;
    min-height: 78vh;
    background: var(--astra-darker);
    color: #fff;
    overflow: hidden;
    padding-top: 120px;
}

.pc-hero-img {
    position: absolute;
    top: 0;
    left: 46%;
    right: 0;
    bottom: 0;
    width: 54%;
    height: 100%;
    object-fit: cover;
    animation: pcKenBurns 25s ease-out forwards;
    transform-origin: 0 0;
    opacity: .78;
}

.pc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        var(--astra-darker) 0%,
        var(--astra-darker) 46%,
        rgba(2, 6, 23, .4) 68%,
        rgba(2, 6, 23, 0) 100%);
    z-index: 1;
}

.pc-hero-grid-lines {
    position: absolute;
    top: 0;
    left: 46%;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: .08;
    background-image:
        linear-gradient(#fff 1px, transparent 1px),
        linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.pc-hero-content {
    position: relative;
    z-index: 3;
    width: 54%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 56px 0;
    background: var(--astra-darker);
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.pc-hero-body {
    max-width: 600px;
    margin-left: auto;
    padding-left: 40px;
    animation: pcSlideUp .8s cubic-bezier(.16, 1, .3, 1) both;
}

.pc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 24px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pc-badge i {
    color: var(--astra-accent);
    font-size: 14px;
}

.pc-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.9rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.08;
    margin: 0 0 24px;
    letter-spacing: -.02em;
}

.pc-hero-desc {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: #cbd5e1;
    line-height: 1.7;
    border-left: 4px solid var(--astra-accent);
    padding-left: 24px;
    margin: 0 0 32px;
    font-weight: 300;
}

.pc-hero-points {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pc-hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .95rem;
    color: #e2e8f0;
}

.pc-hero-points i {
    color: var(--astra-accent);
    font-size: 16px;
    margin-top: 2px;
}

.pc-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- TOOL SECTION ---------- */
.pc-tool {
    padding: 88px 0;
    position: relative;
    margin-top: -1px;
}

.pc-tool-head {
    max-width: 720px;
    margin: 0 0 44px;
}

.pc-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--astra-accent);
    margin-bottom: 12px;
}

.pc-tool-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 14px;
    color: var(--astra-dark);
    letter-spacing: -.01em;
}

.pc-tool-head p {
    color: var(--astra-gray);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.pc-layout {
    display: grid;
    grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
    gap: 28px;
    align-items: start;
}

/* ---------- CARDS (sharp, accent border-top) ---------- */
.pc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--astra-accent);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.pc-form {
    padding: 32px 30px;
}

.pc-form-title,
.pc-result-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--astra-dark);
    margin: 0 0 24px;
}

.pc-form-title i,
.pc-result-title i {
    color: var(--astra-accent);
    font-size: 16px;
}

.pc-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.pc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pc-field label,
.pc-field > span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 6px;
}

.pc-field input,
.pc-field select {
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    background: #fff;
    color: #0f172a;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

.pc-field input:focus,
.pc-field select:focus {
    outline: none;
    border-color: var(--astra-accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.pc-field-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.pc-submit {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

/* ---------- RESULT ---------- */
.pc-result-wrap {
    display: grid;
    gap: 24px;
}

.pneu-result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    border-radius: 2px;
    padding: 32px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.pneu-result-card.is-ok {
    border-left-color: #16a34a;
}

.pneu-result-card.is-warning {
    border-left-color: var(--astra-accent);
}

.pneu-result-card.is-critical {
    border-left-color: #dc2626;
}

.pneu-result-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--astra-dark);
    margin: 0 0 18px;
    letter-spacing: -.01em;
}

.pneu-result-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--astra-dark);
    margin: 24px 0 12px;
}

.pneu-result-card h3 i {
    color: var(--astra-accent);
    font-size: 14px;
}

.pneu-status i {
    font-size: 13px;
}

.pneu-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f1f5f9;
    color: var(--astra-gray);
}

.pneu-pill i {
    font-size: 11px;
}

.pneu-pill.is-ok {
    background: #dcfce7;
    color: #166534;
}

.pneu-pill.is-warning {
    background: rgba(249, 115, 22, .14);
    color: #c2410c;
}

.pneu-pill.is-critical {
    background: #fee2e2;
    color: #b91c1c;
}

.pneu-compare td:last-child {
    width: 1%;
    white-space: nowrap;
}

.pneu-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    padding: 7px 14px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #f1f5f9;
    color: var(--astra-gray);
}

.is-ok .pneu-status {
    background: #dcfce7;
    color: #166534;
}

.is-warning .pneu-status {
    background: rgba(249, 115, 22, .12);
    color: #c2410c;
}

.is-critical .pneu-status {
    background: #fee2e2;
    color: #b91c1c;
}

.pneu-result-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.pneu-result-card th,
.pneu-result-card td {
    border-bottom: 1px solid #eef2f7;
    padding: 11px 4px;
    text-align: left;
    font-size: 14px;
}

.pneu-result-card th {
    width: 52%;
    color: var(--astra-gray);
    font-weight: 600;
}

.pneu-result-card td {
    color: var(--astra-dark);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pneu-result-card thead th {
    color: var(--astra-dark);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    width: auto;
}

.pneu-result-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.pneu-result-card ul li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.pneu-result-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--astra-accent);
    border-radius: 50%;
}

.pneu-muted {
    color: var(--astra-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ---------- LEAD FORM ---------- */
.pneu-lead-form {
    display: none;
    background: var(--astra-darker);
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 4px solid var(--astra-accent);
    border-radius: 2px;
    padding: 32px 30px;
    color: #fff;
}

.pneu-lead-form.is-ready {
    display: block;
    animation: pcSlideUp .5s cubic-bezier(.16, 1, .3, 1) both;
}

.pneu-lead-form h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.pneu-lead-form > p {
    color: #94a3b8;
    font-size: .92rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.pneu-lead-form label {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 14px;
    gap: 6px;
}

.pneu-lead-form input[type="text"],
.pneu-lead-form input[type="email"],
.pneu-lead-form input[type="tel"] {
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    border: 1px solid #334155;
    border-radius: 2px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.pneu-lead-form input:focus {
    outline: none;
    border-color: var(--astra-accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .15);
}

.pneu-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pneu-consent {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.5;
}

.pneu-consent input {
    margin-top: 3px;
    accent-color: var(--astra-accent);
}

.pneu-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pneu-lead-status {
    margin: 14px 0 0;
    font-size: 13px;
    color: #cbd5e1;
    min-height: 1em;
}

/* ---------- CONTENT (blueprint bg) ---------- */
.pc-content {
    padding: 88px 0;
    background-color: var(--astra-darker);
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.pc-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.pc-content-grid h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -.01em;
}

.pc-content-grid p {
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
    margin: 0 0 16px;
}

.pc-faq h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    margin: 22px 0 8px;
}

.pc-faq h3:first-of-type {
    margin-top: 0;
}

.pc-faq p {
    color: rgba(255, 255, 255, .6);
    font-size: .92rem;
    line-height: 1.7;
}

/* ---------- RELATED TOOLS ---------- */
.pc-related {
    padding: 88px 0;
    background: #fff;
}

.pc-related-head {
    margin-bottom: 36px;
}

.pc-related-head h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--astra-dark);
    margin: 6px 0 0;
}

.pc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pc-related-card {
    display: flex;
    flex-direction: column;
    background: var(--astra-light);
    border: 1px solid #e2e8f0;
    border-left: 3px solid transparent;
    border-radius: 2px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
}

.pc-related-card:hover {
    border-left-color: var(--astra-accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1);
}

.pc-related-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(249, 115, 22, .08);
    margin-bottom: 16px;
    transition: background .3s;
}

.pc-related-card:hover .pc-related-icon {
    background: var(--astra-accent);
}

.pc-related-icon i {
    font-size: 20px;
    color: var(--astra-accent);
    transition: color .3s;
}

.pc-related-card:hover .pc-related-icon i {
    color: #fff;
}

.pc-related-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--astra-dark);
    margin: 0 0 8px;
}

.pc-related-card p {
    font-size: .85rem;
    color: var(--astra-gray);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.pc-related-card span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--astra-accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .pc-hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 110px;
    }
    .pc-hero-content {
        width: 100%;
        border-right: none;
        padding: 0 0 48px;
    }
    .pc-hero-body {
        max-width: 100%;
        margin: 0;
        padding-left: 0;
    }
    .pc-hero-img,
    .pc-hero-grid-lines {
        position: relative;
        left: 0;
        width: 100%;
        height: 280px;
    }
    .pc-hero-overlay {
        display: none;
    }
    .pc-layout {
        grid-template-columns: 1fr;
    }
    .pc-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pc-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pc-tool,
    .pc-content,
    .pc-related {
        padding: 56px 0;
    }
    .pc-field-row,
    .pneu-lead-grid {
        grid-template-columns: 1fr;
    }
    .pc-form,
    .pneu-result-card,
    .pneu-lead-form {
        padding: 24px 20px;
    }
}
