/* ========================================
   Subpages: Diagnoza, Mentoring, Prezes na zastępstwo,
   Męska Twierdza, Od czego zacząć, O nas, Kontakt, Test
   Builds on styles.css variables and components.
   ======================================== */

body.pg {
    background: var(--color-off-white);
}

/* ---------- Hero ---------- */
.pg-hero {
    background: #04041a;
    padding: 150px 0 90px;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}
.pg-hero::before,
.pg-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.pg-hero::before {
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227, 0, 0, 0.12) 0%, transparent 60%);
    animation: pgFloat 15s ease-in-out infinite;
}
.pg-hero::after {
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 0, 0, 0.08) 0%, transparent 60%);
    animation: pgFloat 20s ease-in-out infinite reverse;
}
@keyframes pgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}
.pg-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.pg-hero-grid.pg-hero-single {
    grid-template-columns: 1fr;
    max-width: 820px;
}
.pg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}
.pg-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-base);
}
.pg-breadcrumb a:hover { color: var(--color-white); }
.pg-breadcrumb-current { color: rgba(255, 255, 255, 0.75); }
.pg-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}
.pg-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    text-wrap: balance;
}
.pg-hero-title span { color: var(--color-accent); }
.pg-hero-lead {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 14px;
}
.pg-hero-lead strong { color: var(--color-white); font-weight: 600; }
.pg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.pg-hero-image { position: relative; }
.pg-hero-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.pg-hero-image::before {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 2px solid var(--color-accent);
    border-radius: 24px;
    opacity: 0.3;
    z-index: -1;
}

/* ---------- Sections ---------- */
.pg-section {
    padding: 90px 0;
    position: relative;
}
.pg-section.pg-white { background: var(--color-white); }
.pg-section.pg-soft { background: var(--color-off-white); }
.pg-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.pg-section-header .section-title { margin-bottom: 0; }
.pg-section-intro {
    max-width: 680px;
    margin: 20px auto 0;
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
}
.pg-narrow { max-width: 820px; margin: 0 auto; }
.pg-prose p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 18px;
}
.pg-prose p:last-child { margin-bottom: 0; }
.pg-prose .pg-highlight {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.45;
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    margin: 28px 0;
}

/* ---------- Cards grid ---------- */
.pg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.pg-cards.pg-cards-2 { grid-template-columns: repeat(2, 1fr); }
.pg-cards.pg-cards-3 { grid-template-columns: repeat(3, 1fr); }
.pg-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.pg-soft .pg-card { background: var(--color-white); }
.pg-white .pg-card { background: var(--color-off-white); }
.pg-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #9E0000);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.pg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 0, 0, 0.15);
}
.pg-card:hover::before { transform: scaleX(1); }
.pg-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(227, 0, 0, 0.12), rgba(227, 0, 0, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all var(--transition-base);
}
.pg-card-icon svg { width: 24px; height: 24px; color: var(--color-accent); }
.pg-card:hover .pg-card-icon { background: var(--color-accent); transform: rotate(-5deg) scale(1.05); }
.pg-card:hover .pg-card-icon svg { color: var(--color-white); }
.pg-card-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(227, 0, 0, 0.08);
    border-radius: 20px;
    margin-bottom: 14px;
}
.pg-card-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.pg-card-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.65;
}
.pg-card-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-gray-200);
    font-size: 13px;
    color: var(--color-gray-500);
}
.pg-card.pg-card-featured {
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 0 4px rgba(227, 0, 0, 0.08);
}

/* ---------- Group label between card groups ---------- */
.pg-group + .pg-group { margin-top: 64px; }
.pg-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}
.pg-group-title::before {
    content: '';
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-accent), #9E0000);
    flex-shrink: 0;
}

/* ---------- Steps (Jak to wygląda) ---------- */
.pg-steps {
    max-width: 820px;
    margin: 0 auto;
    counter-reset: pgstep;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pg-step {
    counter-increment: pgstep;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 18px;
    padding: 24px;
}
.pg-white .pg-step { background: var(--color-off-white); }
.pg-step::before {
    content: counter(pgstep, decimal-leading-zero);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #9E0000);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(227, 0, 0, 0.25);
}
.pg-step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}
.pg-step-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ---------- Boundary note ---------- */
.pg-note {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-xl);
}
.pg-note-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(227, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pg-note-icon svg { width: 24px; height: 24px; color: #FF6B6B; }
.pg-note-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.pg-note-text { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }

/* ---------- Author block ---------- */
.pg-author {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}
.pg-author-photo {
    position: relative;
}
.pg-author-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}
.pg-author-photo::after {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 2px solid var(--color-accent);
    border-radius: 28px;
    opacity: 0.25;
    z-index: -1;
}
.pg-author-quote {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    text-wrap: balance;
}
/* Quote badge above the text, in the style of the card icons */
.pg-author-quote::before {
    content: '';
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 16px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M4.6 18.6C3.5 17.4 3 16.1 3 14c0-3.7 2.6-7 6.3-8.6l.9 1.4c-3.5 1.9-4.2 4.4-4.4 6 .6-.3 1.3-.4 2-.3 1.9.2 3.4 1.7 3.4 3.7a3.7 3.7 0 0 1-3.7 3.7c-1.1 0-2.2-.5-2.9-1.3zm10.4 0c-1.1-1.2-1.6-2.5-1.6-4.6 0-3.7 2.6-7 6.3-8.6l.9 1.4c-3.5 1.9-4.2 4.4-4.4 6 .6-.3 1.3-.4 2-.3 1.9.2 3.4 1.7 3.4 3.7a3.7 3.7 0 0 1-3.7 3.7c-1.1 0-2.2-.5-2.9-1.3z'/%3E%3C/svg%3E") center / 24px no-repeat,
        linear-gradient(135deg, var(--color-accent), #9E0000);
    box-shadow: 0 10px 24px rgba(227, 0, 0, 0.25);
}
.pg-author-name {
    font-weight: 700;
    color: var(--color-text);
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
}
.pg-author-role { font-size: 14px; color: var(--color-text-light); }
.pg-author-stats {
    display: flex;
    gap: 28px;
    margin-top: 24px;
}
.pg-author-stat-num {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}
.pg-author-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-500);
    margin-top: 6px;
}

/* ---------- CTA ---------- */
.pg-cta {
    padding: 100px 0;
    background: radial-gradient(circle at center, #0B0B3A 0%, #050518 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}
.pg-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 0, 0, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: pgPulse 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pgPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
.pg-cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}
.pg-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}
.pg-cta-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
}
.pg-cta-phone {
    display: inline-block;
    margin: 30px 0 6px;
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-white);
    transition: color var(--transition-base);
}
.pg-cta-phone:hover { color: #FF6B6B; }
.pg-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}
.pg-copy-btn {
    font-family: inherit;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 4px;
}
.pg-copy-btn:hover { color: var(--color-white); }

/* ---------- Product tiles (home + od czego zacząć) ---------- */
.pg-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pg-product {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pg-product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pg-product img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pg-product-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pg-product-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-primary); }
.pg-product-text { font-size: 14px; color: var(--color-text-light); line-height: 1.6; flex: 1; }
.pg-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
}
.pg-product-link svg { width: 14px; height: 14px; transition: transform var(--transition-base); }
.pg-product:hover .pg-product-link svg { transform: translateX(4px); }

/* ---------- Situation finder (od czego zacząć) ---------- */
.pg-finder {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pg-finder-head,
.pg-finder-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: center;
}
.pg-finder-head {
    padding: 0 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-gray-500);
}
.pg-finder-row {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 18px;
    padding: 22px 28px;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.pg-finder-row:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(227, 0, 0, 0.25);
}
.pg-finder-situation {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.55;
}
.pg-finder-answer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}
.pg-finder-answer svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}
.pg-finder-row:hover .pg-finder-answer svg { transform: translateX(4px); }
.pg-finder-label { display: none; }

/* ---------- People (o nas) ---------- */
.pg-people {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}
.pg-person {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pg-person-photo {
    aspect-ratio: 4 / 4;
    background: linear-gradient(135deg, #0A0A45, #1A1A5E);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.pg-person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pg-person-initials {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
}
.pg-person-body { padding: 28px; }
.pg-person-name { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--color-primary); }
.pg-person-role { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--color-accent); margin: 6px 0 16px; }
.pg-person-text { font-size: 15px; color: var(--color-text-light); line-height: 1.7; }
.pg-person-text + .pg-person-text { margin-top: 12px; }

.pg-principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}
.pg-principle {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    padding: 20px 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}
.pg-principle svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }

/* ---------- Test (quiz) ---------- */
.test-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}
.test-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 12px;
    border-radius: 50%;
    background: rgba(227, 0, 0, 0.08);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.quiz-option-btn.test-option {
    display: flex;
    align-items: center;
}
.quiz-option-btn.test-option.is-selected {
    border-color: var(--color-accent);
    background: rgba(227, 0, 0, 0.04);
}
.test-back {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.test-back:hover { color: var(--color-accent); }
.test-back[hidden] { display: none; }

.test-result { text-align: left; }
.test-result .quiz-badge { margin-bottom: 10px; }
.test-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 24px 0;
}
.test-level {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}
.test-level em { font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.test-level.is-current {
    background: linear-gradient(135deg, var(--color-primary), #1A1A5E);
    color: var(--color-white);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(10, 10, 69, 0.2);
}
.test-level.is-current em { color: #FF8A8A; }
.test-l5 { width: 60%; } .test-l4 { width: 70%; } .test-l3 { width: 80%; } .test-l2 { width: 90%; } .test-l1 { width: 100%; }
.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.test-cell {
    border-top: 3px solid var(--color-accent);
    padding-top: 10px;
    min-width: 0;
}
.test-cell-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-500);
    margin-bottom: 4px;
}
.test-cell-text { font-size: 15px; color: var(--color-text); line-height: 1.55; }
.test-next {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--color-off-white);
    border-radius: 12px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}
.test-next strong { color: var(--color-primary); }
.test-restart-wrap { text-align: center; }
.test-motto {
    text-align: center;
    font-size: 14px;
    color: var(--color-gray-500);
    margin-top: 32px;
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pg-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .pg-hero-image { max-width: 520px; }
    .pg-cards.pg-cards-3 { grid-template-columns: repeat(2, 1fr); }
    .pg-products { grid-template-columns: repeat(2, 1fr); }
    .pg-author { grid-template-columns: 240px 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .pg-hero { padding: 110px 0 60px; }
    .pg-hero-lead { font-size: 15px; }
    .pg-section { padding: 64px 0; }
    .pg-section-header { margin-bottom: 32px; }
    .pg-cards.pg-cards-2,
    .pg-cards.pg-cards-3 { grid-template-columns: 1fr; }
    .pg-card { padding: 24px 22px; }
    .pg-prose p { font-size: 16px; }
    .pg-author { grid-template-columns: 1fr; text-align: center; }
    .pg-author-photo { max-width: 260px; margin: 0 auto; }
    .pg-author-stats { justify-content: center; }
    .pg-note { flex-direction: column; padding: 24px; }
    .pg-cta { padding: 70px 0; }
    .pg-finder-head { display: none; }
    .pg-finder-row { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
    .pg-finder-label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--color-gray-500);
        margin-bottom: 4px;
    }
    .pg-finder-answer { padding-top: 12px; border-top: 1px solid var(--color-gray-200); }
    .pg-people { grid-template-columns: 1fr; }
    .pg-principles { grid-template-columns: 1fr; }
    .test-card { padding: 26px 18px; border-radius: 20px; }
    .test-grid { grid-template-columns: 1fr; }
    .test-l5, .test-l4, .test-l3, .test-l2, .test-l1 { width: 100%; }
}
@media (max-width: 560px) {
    .pg-products { grid-template-columns: 1fr; }
    .pg-hero-actions .btn { width: 100%; }
    .pg-step { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .pg-hero::before, .pg-hero::after, .pg-cta::before { animation: none; }
}

/* ---------- Anchors under the fixed header, active menu item ---------- */
.pg-section[id],
.pg-cta[id],
.contact[id],
#formularz,
#testResult {
    scroll-margin-top: 96px;
}
.nav-link.active { color: var(--color-white); }
.header.scrolled .nav-link.active { color: var(--color-primary); }
.nav-link.active::after { width: 100%; }
a.footer-contact-item:hover { color: var(--color-white); }
.contact-detail-label,
.contact-detail-value { display: block; }
@media (max-width: 768px) {
    .pg-author-quote::before { margin-left: auto; margin-right: auto; }
}

/* ---------- Notice modal (e.g. Męska Twierdza: sign up by phone) ---------- */
.pg-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 4, 26, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: pgModalFade 0.25s ease;
}
.pg-modal[hidden] { display: none; }
@keyframes pgModalFade { from { opacity: 0; } to { opacity: 1; } }
.pg-modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--color-white);
    border-radius: 24px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: pgModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pgModalPop { from { transform: translateY(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.pg-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    background: var(--color-gray-100);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.pg-modal-close:hover { background: var(--color-gray-200); color: var(--color-primary); }
.pg-modal-close svg { width: 18px; height: 18px; }
.pg-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), #9E0000);
    box-shadow: 0 10px 24px rgba(227, 0, 0, 0.25);
}
.pg-modal-icon svg { width: 26px; height: 26px; color: var(--color-white); }
.pg-modal-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-wrap: balance;
}
.pg-modal-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-light);
}
.pg-modal-phone {
    display: inline-block;
    margin: 18px 0 4px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    transition: color var(--transition-base);
}
.pg-modal-phone:hover { color: var(--color-accent); }
.pg-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}
@media (max-width: 480px) {
    .pg-modal-card { padding: 36px 20px 24px; }
    .pg-modal-actions .btn { width: 100%; }
}
