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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Domyślnie 1 — unikaj mismatchu z wysokością kontenera przy DPI Windows */
    zoom: var(--page-zoom, 1);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

input,
textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue-soft-hover);
    transform: scale(1.03);
}

.btn-light {
    background: #fff;
    color: #000;
}

.btn-light:hover {
    background: #f5f5f7;
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.view-all {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition-base), opacity var(--transition-fast);
}

.view-all:hover {
    background: none;
    color: var(--accent-blue-hover, #0055b3);
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.9s var(--ease-out-expo) forwards;
}

.reveal {
    /* NIGDY nie chowaj sekcji przed JS - FOUC: widać → CSS opacity:0 → „znika” */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.reveal.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Baner Mitoto - widoczność niezależna od klasy reveal */
#mitoto-spotlight {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f2 25%, #e8e8ed 50%, #f0f0f2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 8px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    background: var(--text-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}
