/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
}
.logo:hover {
    opacity: 0.75;
}

.logo-badge {
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background:
        linear-gradient(rgba(10, 18, 35, 0.62), rgba(10, 18, 35, 0.62)),
        url('images/hero-gate3.jpg') center / cover no-repeat;
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.25rem;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    background: #f0f7ff;
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: none;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
    box-shadow: none;
}

/* Speech bubble tooltip */
.hero-quiz-wrapper {
    position: relative;
    display: inline-block;
}

.quiz-tooltip {
    position: absolute;
    left: calc(100% + 18px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: white;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    width: 210px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: normal;
    z-index: 10;
}

.hero-quiz-wrapper:hover .quiz-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Ogonek chmurki (strzałka w lewo) */
.quiz-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: white;
    border-left-width: 0;
}

@media (max-width: 640px) {
    .quiz-tooltip { display: none; }
}

/* Konfigurator Section */
.configurator {
    padding: 4rem 0;
    background: var(--bg-white);
}

.configurator h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Config Form */
.config-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control.input-error {
    border-color: #e53e3e;
}

.field-error {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #e53e3e;
}

.form-range {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.range-value {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Config Summary */
.config-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.config-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.config-summary p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Gate Preview */
.gate-preview {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.preview-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

#gateVisualization {
    width: 100%;
    height: auto;
    display: block;
}

.preview-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Wizualizacja 3D w podsumowaniu */
.gate-3d-preview {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

#gate3DContainer {
    width: 100%;
    height: 500px;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #e8f4f8;
    box-shadow: var(--shadow-md);
}

#gate3DContainer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Catalogs Section */
.catalogs {
    padding: 4rem 0;
    background: var(--bg-light);
}

.catalogs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.catalog-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.catalog-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.catalog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.catalog-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact Form Section */
.contact-form {
    padding: 4rem 0;
    background: var(--bg-white);
}

.contact-form h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d1fae5;
    color: var(--success-color);
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: var(--error-color);
    display: block;
}

/* Honeypot - ukryte przed użytkownikiem, widoczne dla botów */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .configurator-grid {
        grid-template-columns: 1fr;
    }

    .gate-preview {
        position: static;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 2rem 0;
    }

    .configurator,
    .catalogs,
    .contact-form {
        padding: 2rem 0;
    }

    .config-form,
    .gate-preview,
    .form {
        padding: 1.5rem;
    }

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

/* ===== WIZARD STYLES ===== */

/* Wizard Progress */
.wizard-progress {
    margin-bottom: 3rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: var(--success-color);
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    width: 0%;
}

/* Wizard Container */
.wizard-container {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
    flex: 1;
}

.wizard-step.active {
    display: block;
}

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

.wizard-step h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.color-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.color-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.color-option.active {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: var(--shadow-md);
}

.color-swatch {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
}

.color-swatch.microline {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 0, 0, 0.1) 2px
    );
}

.color-swatch.woodgrain {
    border: 2px solid rgba(139, 69, 19, 0.3);
}

/* Model card icons */
.model-icon {
    width: 100%;
    height: 100px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pattern thumbnails */
.pattern-preview {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

/* Extras with thumbnail */
.option-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-item-row > div {
    flex: 1;
    min-width: 0;
}

.extra-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.color-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.option-card {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.option-card.active {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: var(--shadow-md);
}

.option-card.pattern-locked {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(40%);
}

.woodgrain-lock-info {
    margin-bottom: 1rem;
    background: #fff8e6 !important;
    border-color: #e6a817 !important;
}

.option-item.motor-incompatible {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(30%);
}

.motor-limit-notice {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #c0392b;
    font-weight: 500;
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.option-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.option-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Options List */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-item {
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.option-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.option-item.active {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: var(--shadow-md);
}

.option-item.toggleable {
    cursor: pointer;
}

.option-item.toggleable.selected {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.option-header h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
}

.option-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.option-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.recommended-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Info Box */
.info-box {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-box p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Summary Box */
.summary-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.summary-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h4 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.summary-section p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.price-summary h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.total-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.price-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0.5rem 0 0 0;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.wizard-navigation .btn {
    min-width: 120px;
}

.wizard-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gate-preview h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

/* Responsive Wizard */
@media (max-width: 768px) {
    .progress-steps {
        flex-wrap: wrap;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .wizard-container {
        padding: 1.5rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

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

    .total-price {
        font-size: 2.5rem;
    }
}

/* ===== CHECKMARK BADGES ===== */

.option-card {
    position: relative;
}

.option-card.active::after,
.option-item.active::after,
.option-item.toggleable.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.2s ease;
    line-height: 1;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Color option checkmark (smaller swatches) */
.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.2s ease;
    line-height: 1;
}

.color-option {
    position: relative;
}

/* ===== SCROLL ANIMATIONS ===== */

html {
    scroll-behavior: smooth;
}

/* ===== ENTRY CHOICE SECTION ===== */

.entry-choice {
    background: var(--bg-light);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.entry-subtitle {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.entry-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.entry-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    text-align: center;
}

.entry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.entry-card-featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0ff 100%);
}

.entry-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.entry-card-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

.entry-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.entry-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.entry-card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .entry-cards { grid-template-columns: 1fr; }
}

/* ===== QUIZ OVERLAY ===== */

.quiz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 35, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1rem;
}

.quiz-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.quiz-modal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2.25rem 1.75rem;
    width: 100%;
    max-width: 560px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.quiz-overlay.active .quiz-modal {
    transform: translateY(0);
}

.quiz-close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.quiz-close:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Progress */
.quiz-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-dots {
    display: flex;
    gap: 6px;
}

.quiz-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background 0.3s ease, transform 0.3s ease;
}

.quiz-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.quiz-dot.done {
    background: var(--success-color);
    transform: scale(1);
}

.quiz-progress-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Questions */
.quiz-screen {
    display: none;
}

.quiz-screen.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.quiz-question {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    background: white;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
    transform: translateX(4px);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.quiz-option-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.quiz-option div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.quiz-option strong {
    font-size: 0.97rem;
    color: var(--text-dark);
    font-weight: 600;
}

.quiz-option span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Result */
.quiz-result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-result-check {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.quiz-result-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.quiz-result-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.quiz-result-model {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.quiz-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.92rem;
}

.quiz-result-label {
    color: var(--text-light);
    font-weight: 500;
}

.quiz-result-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quiz-result-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.15);
    display: inline-block;
    flex-shrink: 0;
}

.quiz-result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.quiz-result-actions .btn {
    width: 100%;
    text-align: center;
}

.quiz-restart-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.quiz-restart-btn:hover {
    color: var(--text-dark);
}

/* Footer / Back */
.quiz-footer {
    margin-top: 1.25rem;
    min-height: 1.5rem;
}

.quiz-back-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.quiz-back-btn:hover {
    color: var(--text-dark);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }

/* ===== SUMMARY 2-COLUMN GRID ===== */

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.summary-grid .summary-section {
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 1rem 1.25rem 1rem 0;
}

.summary-grid .summary-section:nth-child(even) {
    border-right: none;
    padding-left: 1.25rem;
    padding-right: 0;
}

.summary-grid .summary-full {
    grid-column: 1 / -1;
    border-right: none;
    padding-right: 0;
}

/* Color swatch inline */
.summary-color-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.summary-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
    display: inline-block;
}

/* Extras list */
.summary-extras-section {
    border-bottom: none;
    padding-top: 1rem;
    padding-left: 0;
    padding-right: 0;
}

.summary-extras-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.summary-extras-list li {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
}

.summary-no-extras {
    color: var(--text-light) !important;
    font-weight: 400 !important;
}

.summary-extra-price {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.gate-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f7ff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.gate-price-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.gate-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-dark);
}

.summary-total-row strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.summary-grand-total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--primary-color);
}

.summary-grand-total strong {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.summary-price-disclaimer {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
}

.option-price-tag {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== REALIZACJE ===== */

.realizacje {
    padding: 4rem 0;
    background: var(--bg-white);
}

.realizacje h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.realizacje-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.realizacja-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.realizacja-card:hover {
    box-shadow: var(--shadow-lg);
}

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

.realizacja-header-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.realizacja-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.realizacja-header-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.2rem 0;
}

.realizacja-header-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.realizacja-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    background: #e2e8f0;
}

.realizacja-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
}

.realizacja-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.realizacja-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.realizacja-photo:hover img {
    transform: scale(1.07);
}

.realizacja-photo:hover::after {
    opacity: 1;
}

@media (max-width: 640px) {
    .realizacja-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .realizacja-header {
        padding: 1.25rem;
    }

    .realizacja-header .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==============================
   PDF RYSUNEK TECHNICZNY
   ============================== */

.btn-pdf-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 1.25rem 0;
    padding: 0.85rem 1.5rem;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn-pdf-download:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}
.btn-pdf-download:active {
    transform: translateY(0);
}

.pdf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}
.pdf-overlay.active {
    display: flex;
}

.pdf-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    max-width: 460px;
    width: 90%;
    position: relative;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}
.pdf-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.15s;
}
.pdf-modal-close:hover { color: #222; }

.pdf-modal-box h3 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.pdf-modal-sub {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.pdf-form-row {
    margin-bottom: 1rem;
}
.pdf-form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #333;
}
.pdf-form-row input[type="number"],
.pdf-form-row select {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.pdf-form-row input[type="number"]:focus,
.pdf-form-row select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.pdf-input-hint {
    display: block;
    font-size: 0.775rem;
    color: #888;
    margin-top: 0.2rem;
}

.pdf-modal-note {
    background: #eff6ff;
    border-left: 3px solid var(--primary-color);
    padding: 0.7rem 0.9rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.845rem;
    color: #2d4080;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.pdf-modal-actions {
    display: flex;
    gap: 0.75rem;
}
.pdf-modal-actions .btn {
    flex: 1;
}
