        /* Kolory motywów: css/themes.css */

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

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            background: var(--bg-gradient);
            background-attachment: fixed;
            color: var(--text-dark);
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            opacity: 0.55;
            background-image:
                radial-gradient(circle at 15% 25%, rgba(28, 25, 23, 0.06) 0%, transparent 22%),
                radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 28%),
                radial-gradient(circle at 70% 85%, rgba(251, 191, 36, 0.05) 0%, transparent 25%);
        }

        [data-theme='dark'] body::before {
            opacity: 1;
            background-image:
                radial-gradient(circle at 20% 30%, rgba(244, 63, 94, 0.07) 0%, transparent 24%),
                radial-gradient(circle at 80% 20%, rgba(68, 64, 60, 0.06) 0%, transparent 28%),
                repeating-linear-gradient(
                    -12deg,
                    transparent,
                    transparent 48px,
                    rgba(255, 255, 255, 0.012) 48px,
                    rgba(255, 255, 255, 0.012) 49px
                );
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 100;
            overflow: visible;
            background: var(--header-bg);
            backdrop-filter: blur(16px) saturate(1.2);
            -webkit-backdrop-filter: blur(16px) saturate(1.2);
            border-bottom: 1px solid var(--header-border);
            box-shadow: var(--header-shadow);
        }

        nav {
            max-width: var(--site-content-max);
            margin: 0 auto;
            padding: 0 24px 6px;
            min-height: 47px;
            height: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 13px;
            overflow: visible;
        }

        .logo {
            font-weight: 800;
            font-size: 1.15rem;
            letter-spacing: -0.03em;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
            text-decoration: none;
        }

        .logo-mark {
            width: 36px;
            height: 36px;
            object-fit: contain;
            flex-shrink: 0;
            display: block;
        }

        .logo span {
            background: var(--logo-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            gap: 4px;
            list-style: none;
            overflow-x: auto;
            overflow-y: visible;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding: 11px 6px 14px;
        }

        .nav-links::-webkit-scrollbar { display: none; }

        .nav-links li { flex-shrink: 0; }

        .nav-links button, .nav-links a.nav-link {
            position: relative;
            z-index: 0;
            isolation: isolate;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 0.875rem;
            font-weight: 600;
            font-family: inherit;
            padding: 8px 10px 5px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            transition: color 0.32s ease, box-shadow 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
            white-space: nowrap;
        }

        .nav-links button::before, .nav-links a.nav-link::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            border-radius: inherit;
            background: var(--nav-active-bg);
            opacity: 0;
            transform: scale(0.92);
            transition:
                opacity 0.38s cubic-bezier(0.34, 1.15, 0.64, 1),
                transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
            pointer-events: none;
        }

        .nav-links button:hover:not(.active), .nav-links a.nav-link:hover:not(.active) {
            color: var(--primary-dark);
            background: rgba(128, 0, 0, 0.1);
        }

        [data-theme='dark'] .nav-links button:hover:not(.active),
        [data-theme='dark'] .nav-links a.nav-link:hover:not(.active) {
            color: var(--primary-light);
            background: rgba(244, 63, 94, 0.1);
        }

        .nav-links button.active, .nav-links a.nav-link.active {
            color: var(--nav-active-color);
            background: transparent;
            box-shadow: none;
            font-weight: 700;
        }

        .nav-links button.active::before, .nav-links a.nav-link.active::before {
            opacity: 1;
            transform: scale(1);
            box-shadow: var(--nav-active-shadow);
        }

        .page-container {
            max-width: var(--site-content-max);
            margin: 32px auto 48px;
            padding: 0 24px;
        }

        @media (max-width: 960px) {
            .page-container { margin-top: 24px; }
            nav {
                display: grid;
                grid-template-columns: 1fr;
                grid-template-rows: auto auto;
                height: auto;
                padding: 8px 8px 10px;
                gap: 6px;
                justify-content: stretch;
            }
            .logo {
                grid-row: 1;
                width: 100%;
                justify-content: center;
            }
            .nav-links {
                grid-row: 2;
                width: 100%;
                max-width: 100%;
                min-width: 0;
                overflow-x: auto;
                overflow-y: visible;
                -webkit-overflow-scrolling: touch;
                justify-content: flex-start;
                scroll-padding-inline: 8px;
                border-top: 1px solid var(--border-soft);
                padding: 10px 8px 15px;
            }
            .nav-links button, .nav-links a.nav-link { padding: 7px 8px 4px; font-size: 0.8rem; }
        }

        @media (max-width: 480px) {
            nav { padding: 6px 6px 5px; gap: 5px; }
            .logo { font-size: 0.95rem; gap: 8px; }
            .logo-mark { width: 29px; height: 29px; }
            .logo span { font-size: 0.9rem; }
            .nav-links {
                gap: 2px;
                padding: 9px 6px 15px;
            }
            .nav-links button, .nav-links a.nav-link {
                padding: 6px 7px 4px;
                font-size: 0.72rem;
            }
        }

        .main-content {
            background: var(--surface-elevated);
            border-radius: var(--radius-xl);
            padding: clamp(24px, 3vw, 36px) clamp(20px, 3.2vw, 36px);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--main-border);
            position: relative;
            overflow: hidden;
        }

        [data-theme='dark'] .main-content {
            background: linear-gradient(165deg, var(--surface-elevated) 0%, var(--surface) 100%);
        }

        .main-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--main-top-bar);
        }

        [data-theme='dark'] .main-content::before {
            height: 3px;
            box-shadow: 0 0 20px var(--primary-glow);
        }

        .main-content::after {
            content: '';
            position: absolute;
            top: -120px;
            right: -80px;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: var(--main-glow);
            pointer-events: none;
        }

        @media (max-width: 640px) {
            .main-content { padding: 24px 20px; border-radius: var(--radius-lg); }
        }

        .tab-content { display: none; animation: fadeIn 0.35s ease; }
        .tab-content.active { display: block; }

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

        .page-hero {
            text-align: center;
            margin-bottom: 36px;
            padding-bottom: 28px;
            border-bottom: none;
            position: relative;
        }

        .page-hero::after {
            content: '';
            display: block;
            width: min(200px, 50%);
            height: 4px;
            margin: 20px auto 0;
            border-radius: 999px;
            background: linear-gradient(90deg, transparent, var(--accent), var(--primary-light), transparent);
            opacity: 0.85;
        }

        [data-theme='dark'] .page-hero::after {
            height: 3px;
            box-shadow: 0 0 16px var(--primary-glow);
        }

        h1 {
            font-size: clamp(1.75rem, 4.5vw, 2.25rem);
            font-weight: 800;
            letter-spacing: -0.035em;
            line-height: 1.15;
            margin-bottom: 12px;
            background: var(--h1-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .subtitle {
            text-align: center;
            color: var(--text-muted);
            margin-bottom: 0;
            font-size: 1.02rem;
            max-width: 560px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        .calc-features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 0.35rem 0;
            max-width: 100%;
            font-size: clamp(0.82rem, 2.2vw, 0.98rem);
            font-weight: 600;
            letter-spacing: 0.03em;
            color: var(--text-dark);
        }

        .calc-features > span:not(.calc-features-sep) {
            white-space: nowrap;
        }

        .calc-features-sep {
            display: inline-block;
            width: 5px;
            height: 5px;
            margin: 0 clamp(0.55rem, 2vw, 0.95rem);
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            transform: rotate(45deg);
            opacity: 0.85;
            flex-shrink: 0;
            border-radius: 1px;
            box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.12);
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 22px;
            margin-bottom: 8px;
        }

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

        .input-group { margin-bottom: 18px; }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 0.92rem;
            text-transform: none;
            letter-spacing: -0.01em;
            color: var(--text-dark);
        }

        input, select {
            width: 100%;
            padding: 14px 18px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-family: inherit;
            transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
            outline: none;
            background: var(--surface);
            color: var(--text-dark);
        }

        input::placeholder { color: var(--text-light); }

        input:hover, select:hover {
            border-color: #d6d3d1;
            background: var(--surface-hover);
        }

        [data-theme='dark'] input:hover,
        [data-theme='dark'] select:hover {
            border-color: #52525b;
        }

        input:focus, select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.15);
        }

        [data-theme='dark'] input:focus,
        [data-theme='dark'] select:focus {
            border-color: var(--primary-dark);
            box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.18);
        }

        .radio-group {
            display: flex;
            gap: 12px;
            padding: 6px 0;
            flex-wrap: wrap;
        }

        .radio-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-weight: 500;
            text-transform: none;
            font-size: 0.95rem;
            color: var(--text-dark);
            padding: 10px 16px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            transition: border-color var(--transition), background var(--transition);
        }

        .radio-label:has(input:checked) {
            border-color: var(--primary);
            background: linear-gradient(145deg, #f0fdf4, #fff7ed);
        }

        [data-theme='dark'] .radio-label:has(input:checked) {
            background: rgba(244, 63, 94, 0.08);
            box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.15);
        }

        .radio-label input { width: auto; accent-color: var(--primary); }

        .btn-calc {
            width: 100%;
            padding: 16px 24px;
            margin-top: 8px;
            background: var(--btn-calc-bg);
            color: var(--btn-calc-color);
            border: none;
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
            letter-spacing: 0.02em;
            box-shadow: var(--btn-calc-shadow);
        }

        [data-theme='dark'] .btn-calc {
            text-transform: uppercase;
            font-size: 0.92rem;
            font-weight: 800;
        }

        .btn-calc:hover {
            transform: translateY(-2px);
            filter: brightness(1.05);
        }

        .btn-calc:active { transform: translateY(0); }

        .result-box { margin-top: 36px; display: none; }

        .section-title {
            color: var(--text-dark);
            font-size: 1.2rem;
            font-weight: 700;
            margin: 32px 0 18px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-soft);
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.02em;
        }

        .section-title::before {
            content: '';
            width: 4px;
            height: 1.1em;
            background: linear-gradient(180deg, var(--accent-soft), var(--accent));
            border-radius: 4px;
        }

        .bmi-card {
            background: var(--calc-tile-bg);
            padding: 28px 24px;
            border-radius: var(--radius-lg);
            text-align: center;
            border: 1px solid var(--calc-tile-border);
            box-shadow: var(--shadow-sm);
        }

        .bmi-val {
            font-size: 3rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            background: linear-gradient(135deg, var(--accent), var(--accent-soft));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .bmi-status {
            display: inline-block;
            padding: 8px 18px;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.88rem;
            margin: 12px 0;
        }

        .status-underweight { background: #fef3c7; color: #b45309; }
        .status-normal { background: #d1fae5; color: #047857; }
        .status-overweight { background: #ffedd5; color: #c2410c; }
        .status-obese { background: #fee2e2; color: #b91c1c; }

        .bmi-bar {
            height: 10px;
            background: linear-gradient(to right, #1e3a5f, #2563eb, #800000, #ef4444);
            border-radius: 999px;
            margin: 20px 8px 0;
            position: relative;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
        }

        .bmi-pointer {
            width: 18px;
            height: 18px;
            background: var(--text-dark);
            border: 3px solid var(--white);
            border-radius: 50%;
            position: absolute;
            top: -4px;
            transform: translateX(-50%);
            transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            left: 50%;
            box-shadow: var(--shadow-md);
        }

        .danger-box {
            background: var(--calc-alert-bg);
            border: 1px solid var(--calc-alert-border);
            border-radius: var(--radius-md);
            padding: 18px 22px;
            margin-top: 18px;
            color: var(--danger);
            display: none;
        }

        .danger-box h4 { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

        .macro-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            margin-bottom: 28px;
        }

        .macro-card {
            background: var(--calc-tile-bg);
            border: 1.5px solid var(--calc-tile-border);
            border-radius: var(--radius-md);
            padding: 18px 14px;
            text-align: center;
            transition: transform var(--transition), box-shadow var(--transition);
            color: var(--text-dark);
        }

        .macro-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .macro-card.kcal-card {
            border-color: var(--calc-tile-border-emphasis);
            background: var(--calc-tile-bg-emphasis);
            grid-column: span 1;
        }

        .macro-num {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-dark);
            margin-top: 6px;
            letter-spacing: -0.02em;
        }

        .water-card {
            background: var(--calc-tile-bg-emphasis);
            border: 1px solid var(--calc-tile-border);
            border-radius: var(--radius-lg);
            padding: 20px 24px;
            margin-bottom: 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
            box-shadow: var(--shadow-sm);
        }

        .water-title { font-weight: 700; color: var(--accent); font-size: 1rem; }
        .water-num { font-size: 2rem; font-weight: 800; color: var(--accent-soft); white-space: nowrap; letter-spacing: -0.03em; }
        .water-text { font-size: 0.88rem; color: var(--text-muted); }

        .calc-protein-maxxing-cta {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 0 0 28px;
            padding: 16px 20px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--calc-tile-border-emphasis);
            background: var(--calc-tile-bg-emphasis);
            text-decoration: none;
            color: inherit;
            box-shadow: var(--shadow-sm);
            transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
        }

        .calc-protein-maxxing-cta:hover {
            transform: translateY(-2px);
            border-color: var(--accent-soft);
            box-shadow: var(--shadow-md);
        }

        .calc-protein-maxxing-cta-emoji {
            font-size: 1.75rem;
            line-height: 1;
            flex-shrink: 0;
        }

        .calc-protein-maxxing-cta-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
            text-align: left;
        }

        .calc-protein-maxxing-cta-text strong {
            font-size: 1.05rem;
            color: var(--accent);
        }

        .calc-protein-maxxing-cta-text small {
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.45;
            font-weight: 500;
        }

        .calc-protein-maxxing-cta-arrow {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--accent);
            flex-shrink: 0;
        }

        .shopping-box {
            background: var(--calc-tile-bg);
            border: 1px solid var(--calc-tile-border);
            border-radius: var(--radius-lg);
            padding: 24px;
            margin: 28px 0;
            box-shadow: var(--shadow-sm);
        }

        .shopping-box h3 {
            color: var(--accent);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .shopping-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 12px;
        }

        a.shop-item {
            display: block;
            background: var(--surface-elevated);
            border: 1px solid var(--border);
            padding: 14px 10px;
            border-radius: var(--radius-md);
            text-align: center;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-dark);
            text-decoration: none;
            transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
        }

        a.shop-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
            border-color: rgba(128, 0, 0, 0.35);
            color: var(--text-dark);
        }

        [data-theme='dark'] a.shop-item:hover {
            border-color: rgba(244, 63, 94, 0.4);
        }

        .shop-item span { display: block; font-size: 2rem; margin-bottom: 6px; }

        .table-wrapper {
            overflow-x: auto;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            margin-top: 12px;
        }

        table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

        th, td {
            padding: 14px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border-soft);
        }

        tr:last-child td { border-bottom: none; }

        th {
            background: var(--surface-hover);
            font-weight: 700;
            color: var(--accent);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .result-box tbody tr:hover td { background: rgba(37, 99, 235, 0.06); }

        .tips-box {
            background: linear-gradient(145deg, #fffbeb, #fef3c7);
            border: 1px solid #fde68a;
            border-radius: var(--radius-lg);
            padding: 28px;
            margin-top: 32px;
            display: none;
            box-shadow: var(--shadow-sm);
        }

        .tips-box h3 {
            color: #b45309;
            margin-bottom: 16px;
            font-size: 1.15rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tips-list { list-style: none; }
        .tips-list li {
            margin-bottom: 14px;
            padding-left: 28px;
            position: relative;
            font-size: 0.95rem;
            line-height: 1.55;
        }

        .tips-list li::before {
            content: "💡";
            position: absolute;
            left: 0;
            top: 2px;
        }

        .btn-pdf {
            background: var(--text-dark);
            color: white;
            border: none;
            padding: 12px 22px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 24px;
            transition: background var(--transition), transform var(--transition);
        }

        .btn-pdf:hover {
            background: #334155;
            transform: translateY(-1px);
        }

        .sub-nav {
            display: flex;
            gap: 8px;
            margin-bottom: 28px;
            padding: 6px;
            background: var(--surface);
            border-radius: var(--radius-md);
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: none;
            border: 1px solid var(--border);
        }

        .sub-nav::-webkit-scrollbar { display: none; }

        .btn-sub {
            position: relative;
            z-index: 0;
            isolation: isolate;
            background: transparent;
            border: none;
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            font-size: 0.88rem;
            color: var(--text-muted);
            transition: color 0.32s ease, box-shadow 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
            text-decoration: none;
            box-sizing: border-box;
        }

        .btn-sub::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            border-radius: inherit;
            background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
            opacity: 0;
            transform: scale(0.92);
            transition:
                opacity 0.38s cubic-bezier(0.34, 1.15, 0.64, 1),
                transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
            pointer-events: none;
        }

        .btn-sub:hover:not(.active) { color: var(--text-dark); background: rgba(255, 255, 255, 0.7); }

        [data-theme='dark'] .btn-sub:hover:not(.active) {
            color: var(--primary-light);
            background: rgba(244, 63, 94, 0.08);
        }

        .btn-sub.active {
            background: transparent;
            color: var(--white);
            box-shadow: 0 4px 14px var(--primary-glow);
        }

        .btn-sub.active::before {
            opacity: 1;
            transform: scale(1);
        }

        [data-theme='dark'] .btn-sub::before {
            background: linear-gradient(135deg, var(--primary-light), var(--accent));
        }

        [data-theme='dark'] .btn-sub.active {
            color: #0c0a09;
        }

        .page-with-subtabs {
            width: 100%;
        }

        .sub-nav.sub-nav--full {
            width: calc(100% + 80px);
            max-width: none;
            margin-left: -40px;
            margin-right: -40px;
            display: flex;
            gap: 8px;
            margin-bottom: 28px;
            padding: 10px;
            background: var(--subnav-full-bg);
            border-radius: var(--radius-lg);
            overflow: visible;
            white-space: normal;
            scrollbar-width: auto;
            box-sizing: border-box;
            border: 1px solid var(--subnav-full-border);
            box-shadow: var(--subnav-full-shadow);
        }

        .sub-nav.sub-nav--full .btn-sub {
            flex: 1 1 0;
            min-width: 0;
            width: 0;
            text-align: center;
            white-space: normal;
            line-height: 1.35;
            padding: 14px 12px;
            min-height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--subnav-btn-color);
            border-radius: var(--radius-sm);
        }

        .sub-nav.sub-nav--full .btn-sub:hover {
            color: var(--subnav-btn-hover-color);
            background: var(--subnav-btn-hover-bg);
        }

        .sub-nav.sub-nav--full .btn-sub::before {
            background: var(--subnav-active-bg);
        }

        .sub-nav.sub-nav--full .btn-sub.active {
            background: transparent;
            color: var(--subnav-active-color);
            box-shadow: 0 4px 20px var(--primary-glow);
        }

        [data-theme='dark'] .sub-nav.sub-nav--full .btn-sub.active {
            box-shadow: 0 0 24px var(--primary-glow);
        }

        @media (max-width: 640px) {
            .sub-nav.sub-nav--full {
                width: calc(100% + 40px);
                margin-left: -20px;
                margin-right: -20px;
                gap: 6px;
                padding: 6px 8px;
            }

            .sub-nav.sub-nav--full .btn-sub {
                padding: 12px 6px;
                font-size: 0.78rem;
                min-height: 48px;
            }
        }

        .sub-tab-content { display: none; }
        .sub-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

        .myth-list {
            list-style: none;
            padding: 0;
            margin: 0 0 1.5rem;
        }
        .myth-list > li {
            margin-bottom: 1rem;
            padding: 1rem 1.15rem;
            background: rgba(255, 255, 255, 0.65);
            border-radius: 12px;
            border-left: 4px solid var(--primary);
            line-height: 1.55;
        }
        .myth-list > li strong {
            display: block;
            margin-bottom: 0.35rem;
            color: var(--text-dark);
        }

        .search-bar { margin-bottom: 28px; position: relative; }

        .search-bar input {
            padding-left: 48px;
            font-size: 1rem;
            background: var(--surface);
            border-color: var(--border);
        }

        .search-bar::before {
            content: "🔍";
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.1rem;
            opacity: 0.7;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
            gap: 22px;
            overflow-anchor: auto;
        }

        .product-card {
            background: var(--surface-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 22px;
            box-shadow: var(--shadow-card);
            transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
        }

        .product-card:hover {
            transform: translateY(-4px) scale(1.01);
            box-shadow: var(--shadow-lg);
            border-color: rgba(128, 0, 0, 0.35);
        }

        [data-theme='dark'] .product-card:hover {
            box-shadow: var(--shadow-lg), 0 0 0 1px rgba(244, 63, 94, 0.25);
            border-color: rgba(244, 63, 94, 0.4);
        }

        .prod-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 16px;
        }

        .prod-img {
            font-size: 2.4rem;
            background: linear-gradient(145deg, #fff7ed, #f0fdf4);
            width: 68px;
            height: 68px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-md);
            border: 1px solid rgba(128, 0, 0, 0.15);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        [data-theme='dark'] .prod-img {
            background: linear-gradient(145deg, rgba(244, 63, 94, 0.12), rgba(68, 64, 60, 0.1));
            border-color: rgba(244, 63, 94, 0.2);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .prod-title {
            font-weight: 800;
            font-size: 1.1rem;
            color: var(--text-dark);
            letter-spacing: -0.02em;
            line-height: 1.3;
        }

        .prod-serving { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

        .prod-kcal-badge {
            background: var(--kcal-badge-bg);
            color: var(--kcal-badge-color);
            font-weight: 800;
            font-size: 1.05rem;
            padding: 10px;
            border-radius: var(--radius-sm);
            text-align: center;
            margin-bottom: 14px;
            border: 1px solid var(--kcal-badge-border);
        }

        .kcal-highlight {
            color: var(--text-dark);
            font-weight: 700;
        }

        .product-card .prod-details .kcal-highlight {
            color: #475569;
            font-weight: 600;
        }

        .pm-ratio-badge.pm-stat-muted,
        .pm-podium-stat.pm-stat-muted,
        .pm-top10-list .pm-list-stat.pm-stat-muted {
            color: #334155 !important;
            text-shadow: none !important;
            font-weight: 700;
        }

        #protein-max .pm-ratio-badge.pm-stat-muted,
        #protein-price .pm-ratio-badge.pm-stat-muted {
            background: var(--rank-stat-badge-bg) !important;
            border: 1px solid var(--rank-stat-badge-border) !important;
            color: var(--rank-stat-badge-color) !important;
            box-shadow: none !important;
            font-family: 'Encode Sans', 'Plus Jakarta Sans', sans-serif;
            font-size: 1.08rem;
            font-weight: 800 !important;
            letter-spacing: 0.04em;
            padding: 11px 12px;
        }

        .random-products-heading {
            font-size: 1.15rem;
            font-weight: 700;
            text-align: center;
            margin: 8px 0 24px 0;
            color: var(--text-dark);
            letter-spacing: -0.02em;
        }

        .random-products-heading span {
            color: var(--primary-dark);
        }

        [data-theme='dark'] .random-products-heading span {
            color: var(--primary-light);
        }

        .products-show-more-wrap {
            display: flex;
            justify-content: center;
            margin: 8px 0 32px;
        }

        .products-show-more-wrap[hidden] {
            display: none !important;
        }

        .btn-show-more {
            padding: 12px 28px;
            border: 2px solid var(--primary-dark);
            border-radius: 12px;
            background: transparent;
            color: var(--primary-light);
            font-family: inherit;
            font-size: 0.92rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
        }

        .btn-show-more:hover {
            background: rgba(244, 63, 94, 0.12);
            transform: translateY(-1px);
            box-shadow: 0 6px 24px var(--primary-glow);
        }

        .product-card.pm-ranked-card {
            position: relative;
        }

        .pm-rank-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 2;
            min-width: 2rem;
            padding: 3px 7px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.55);
            color: rgba(15, 23, 42, 0.45);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.03em;
            text-align: center;
            border: 1px solid rgba(15, 23, 42, 0.08);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .product-card-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .product-card-link.pm-card-static {
            cursor: default;
        }

        .product-card-link.pm-card-static:hover .product-card {
            transform: none;
        }

        .product-card-cta {
            margin-top: 12px;
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--primary-dark);
            text-align: center;
        }

        [data-theme='dark'] .product-card-cta {
            color: var(--accent);
        }

        #protein-max .pm-ranking-title,
        #protein-price .pm-ranking-title {
            font-family: 'Encode Sans', 'Plus Jakarta Sans', sans-serif;
            font-size: clamp(2rem, 5vw, 2.85rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.15;
            margin-bottom: 14px;
            background: var(--ranking-title-max);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme='dark'] #protein-max .pm-ranking-title,
        [data-theme='dark'] #protein-price .pm-ranking-title {
            filter: drop-shadow(0 0 24px rgba(244, 63, 94, 0.2));
        }

        #protein-price .pm-ranking-title {
            background: var(--ranking-title-price);
            -webkit-background-clip: text;
            background-clip: text;
        }

        #baza-prod .page-hero,
        #protein-max .page-hero,
        #protein-price .page-hero {
            margin-bottom: 14px;
            padding-bottom: 12px;
        }

        #baza-prod .page-hero::after,
        #protein-max .page-hero::after,
        #protein-price .page-hero::after {
            margin-top: 12px;
        }

        #baza-prod .search-bar,
        #protein-max .search-bar,
        #protein-price .search-bar {
            margin-top: 0;
            margin-bottom: 10px;
        }

        #baza-prod .pm-baza-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            align-items: stretch;
            max-width: 720px;
            margin: 0 auto 28px auto;
        }

        #baza-prod .pm-baza-filters .pm-category-select {
            flex: 1 1 200px;
            max-width: 340px;
            margin: 0;
        }

        @media (max-width: 520px) {
            #baza-prod .pm-baza-filters {
                flex-direction: column;
                align-items: stretch;
            }

            #baza-prod .pm-baza-filters .pm-category-select {
                max-width: none;
            }
        }

        #protein-max .pm-category-select,
        #protein-price .pm-category-select {
            margin-bottom: 12px;
        }

        #protein-max .random-products-heading,
        #protein-price .random-products-heading {
            margin: 0 0 16px 0;
        }

        .prod-macros {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
            text-align: center;
            margin-bottom: 14px;
        }

        .p-macro {
            background: var(--surface);
            padding: 8px 6px;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            color: var(--text-muted);
            border: 1px solid var(--border);
        }

        .p-macro div {
            font-weight: 700;
            color: var(--text-dark);
            font-size: 0.92rem;
            margin-top: 4px;
        }

        .prod-details {
            font-size: 0.78rem;
            color: var(--text-muted);
            border-top: 1px dashed var(--border);
            padding-top: 12px;
            line-height: 1.5;
        }

        .prod-details div { margin-bottom: 5px; }

        .prod-note {
            font-size: 0.74rem;
            color: var(--accent-soft);
            margin-top: 10px;
            padding: 10px 12px;
            background: rgba(68, 64, 60, 0.08);
            border-radius: var(--radius-sm);
            border-left: 3px solid var(--accent);
            line-height: 1.45;
        }

        .pm-ratio-badge {
            font-weight: 800;
            text-align: center;
            padding: 8px;
            border-radius: var(--radius-sm);
            margin-bottom: 12px;
            font-size: 0.82rem;
            border: 1px solid rgba(0,0,0,0.06);
        }

        #protein-max .pm-ratio-badge {
            font-family: 'Encode Sans', 'Plus Jakarta Sans', sans-serif;
        }

        .products-grid.pm-top10-mode {
            display: block;
            max-width: 920px;
            margin: 0 auto;
        }

        .pm-top10-wrap {
            animation: fadeIn 0.35s ease;
        }

        .pm-top10-lead {
            text-align: center;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 24px;
        }

        .pm-podium {
            display: grid;
            grid-template-columns: 1fr 1.2fr 1fr;
            align-items: end;
            gap: 14px;
            margin-bottom: 36px;
        }

        .pm-podium-slot {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 0;
        }

        .pm-podium-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 100%;
            padding: 18px 12px 16px;
            border-radius: var(--radius-lg);
            border: 2px solid rgba(15, 23, 42, 0.08);
            box-shadow: var(--shadow-md);
            text-decoration: none;
            transition: transform var(--transition), box-shadow var(--transition);
        }

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

        .pm-podium-slot.pm-podium-1 .pm-podium-card {
            min-height: 210px;
            border-color: #f59e0b;
            box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
        }

        .pm-podium-slot.pm-podium-2 .pm-podium-card {
            min-height: 175px;
            border-color: #94a3b8;
        }

        .pm-podium-slot.pm-podium-3 .pm-podium-card {
            min-height: 155px;
            border-color: #d97706;
        }

        .pm-podium-rank {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.05rem;
            margin-bottom: 10px;
            color: #fff;
            flex-shrink: 0;
        }

        .pm-podium-1 .pm-podium-rank {
            background: linear-gradient(145deg, #fbbf24, #d97706);
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
        }

        .pm-podium-2 .pm-podium-rank {
            background: linear-gradient(145deg, #e2e8f0, #94a3b8);
            color: #1e293b;
        }

        .pm-podium-3 .pm-podium-rank {
            background: linear-gradient(145deg, #fdba74, #c2410c);
        }

        .pm-podium-emoji {
            font-size: 2.6rem;
            line-height: 1;
            margin-bottom: 8px;
        }

        .pm-podium-1 .pm-podium-emoji { font-size: 3rem; }

        .pm-podium-name {
            font-weight: 800;
            font-size: 0.92rem;
            line-height: 1.25;
            margin-bottom: 8px;
            letter-spacing: -0.02em;
        }

        .pm-podium-stat {
            font-family: 'Encode Sans', 'Plus Jakarta Sans', sans-serif;
            font-weight: 800;
            font-size: 0.82rem;
            line-height: 1.3;
            padding: 8px 10px;
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.75);
            width: 100%;
        }

        .pm-top10-rest-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 14px;
            text-align: center;
        }

        .pm-top10-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pm-top10-list a {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            background: var(--surface-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            text-decoration: none;
            box-shadow: var(--shadow-sm);
            transition: transform var(--transition), border-color var(--transition);
        }

        .pm-top10-list a:hover {
            transform: translateX(4px);
            border-color: rgba(244, 63, 94, 0.4);
        }

        .pm-top10-list .pm-list-rank {
            font-weight: 800;
            font-size: 1rem;
            color: var(--text-muted);
            min-width: 28px;
            text-align: center;
        }

        .pm-top10-list .pm-list-emoji {
            font-size: 1.75rem;
            line-height: 1;
        }

        .pm-top10-list .pm-list-body {
            flex: 1;
            min-width: 0;
        }

        .pm-top10-list .pm-list-name {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-dark);
            line-height: 1.3;
        }

        .pm-top10-list .pm-list-stat {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .pm-top10-list .pm-list-arrow {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        .pm-podium-card--group,
        .pm-top10-list-item--group .pm-top10-list-row {
            cursor: pointer;
        }

        a.pm-podium-card--group {
            text-decoration: none;
            color: inherit;
        }

        .pm-podium-card--group:hover,
        .pm-top10-list-item--group a.pm-top10-list-row:hover {
            transform: translateY(-3px);
        }

        .pm-group-note {
            font-size: 0.68rem;
            font-weight: 500;
            line-height: 1.4;
            margin-top: 8px;
            padding: 0 4px;
            opacity: 0.88;
            text-align: center;
        }

        .pm-group-subtitle {
            font-size: 0.62rem;
            font-weight: 500;
            line-height: 1.35;
            margin: -4px 0 8px;
            padding: 0 6px;
            opacity: 0.82;
            text-align: center;
        }

        .pm-top10-list-item--group .pm-list-body {
            width: 100%;
        }

        .pm-top10-list-item--group .pm-group-subtitle {
            text-align: left;
            margin: 2px 0 4px;
            font-size: 0.68rem;
            color: var(--text-muted);
            line-height: 1.35;
        }

        .pm-top10-list-item--group .pm-group-note {
            text-align: left;
            margin-top: 4px;
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        @media (max-width: 640px) {
            .pm-podium {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .pm-podium-slot.pm-podium-1 { order: 1; }
            .pm-podium-slot.pm-podium-2 { order: 2; }
            .pm-podium-slot.pm-podium-3 { order: 3; }
            .pm-podium-slot .pm-podium-card { min-height: auto !important; }
        }

        .site-footer {
            background: linear-gradient(180deg, transparent, rgba(255, 254, 251, 0.95));
            backdrop-filter: blur(8px);
            text-align: center;
            padding: 32px 24px 36px;
            margin-top: 0;
            border-top: 1px solid var(--border);
            font-size: 0.88rem;
            color: var(--text-muted);
        }

        [data-theme='dark'] .site-footer {
            background: linear-gradient(180deg, transparent, rgba(12, 10, 9, 0.95));
            border-top-color: rgba(244, 63, 94, 0.12);
        }

        .site-footer strong {
            color: var(--text-dark);
            font-weight: 700;
        }

        .site-footer-brand {
            margin: 0;
        }

        .site-footer-nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 0.35rem 0.55rem;
            margin: 14px 0 10px;
        }

        .site-footer-nav a {
            color: var(--accent);
            font-weight: 600;
            text-decoration: none;
        }

        [data-theme='dark'] .site-footer-nav a {
            color: var(--accent-soft);
        }

        .site-footer-nav a:hover {
            text-decoration: underline;
        }

        .site-footer-nav span[aria-hidden="true"] {
            color: var(--text-muted);
            user-select: none;
        }

        .site-footer-copy {
            margin: 0;
            font-size: 0.82rem;
        }

        .pm-category-select {
            max-width: 340px;
            margin: 0 auto 28px auto;
            text-align: center;
        }

        .pm-category-select label { text-align: center; }

        .info-tab { max-width: 680px; margin: 0 auto; text-align: left; }

        .info-tab .page-hero { border-bottom: none; padding-bottom: 0; margin-bottom: 32px; }

        .info-tab h1 {
            text-align: center;
            -webkit-text-fill-color: unset;
            background: none;
            color: var(--text-dark);
        }

        .info-tab > .subtitle { text-align: center; margin-bottom: 0; }

        .info-tab h2 {
            color: var(--primary-dark);
            font-size: 1.2rem;
            font-weight: 700;
            margin: 32px 0 14px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-soft);
            letter-spacing: -0.02em;
        }

        .info-tab h3 {
            color: var(--text-dark);
            font-size: 1.05rem;
            margin: 22px 0 10px 0;
            font-weight: 700;
        }

        .info-tab p {
            margin-bottom: 14px;
            color: var(--text-dark);
            font-size: 0.96rem;
            line-height: 1.7;
        }

        .info-tab ul {
            margin: 10px 0 16px 22px;
            color: var(--text-dark);
            font-size: 0.96rem;
        }

        .info-tab ul li { margin-bottom: 10px; line-height: 1.6; }

        .info-tab a {
            color: var(--primary-dark);
            font-weight: 600;
            text-decoration: none;
            border-bottom: 2px solid rgba(128, 0, 0, 0.3);
            transition: border-color var(--transition), color var(--transition);
        }

        .info-tab a:hover {
            color: var(--primary-light);
            border-bottom-color: var(--primary-light);
        }

        .info-tab-figure {
            margin: 28px 0 32px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(15, 23, 42, 0.06);
        }

        .info-tab-figure img {
            display: block;
            width: 100%;
            height: auto;
        }

        .info-tab-figure figcaption {
            font-size: 0.85rem;
            color: var(--text-muted);
            padding: 10px 14px;
            text-align: center;
            background: var(--surface);
        }

        .info-callout {
            background: linear-gradient(145deg, rgba(244, 63, 94, 0.1), rgba(68, 64, 60, 0.06));
            border: 1px solid rgba(244, 63, 94, 0.25);
            border-radius: var(--radius-lg);
            padding: 22px 24px;
            margin-top: 28px;
            font-size: 0.96rem;
            line-height: 1.7;
            box-shadow: var(--shadow-sm);
        }

        .info-warning {
            background: linear-gradient(145deg, #fffbeb, #fef9c3);
            border: 1px solid #fde047;
            border-radius: var(--radius-lg);
            padding: 20px 22px;
            margin: 24px 0;
            font-size: 0.9rem;
            line-height: 1.65;
            color: #854d0e;
            box-shadow: var(--shadow-sm);
        }

        .pm-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 24px;
        }

        .pm-filters .btn-sub { font-size: 0.82rem; padding: 8px 14px; }

        @media print {
            body { background: white; color: black; }
            .site-header, nav, button, .btn-pdf, .search-bar, .sub-nav { display: none !important; }
            .page-container { margin: 0; padding: 0; }
            .main-content { border: none; box-shadow: none; padding: 0; }
            .result-box { display: block !important; }
        }
    
        .nav-links a.nav-link {
            display: inline-block;
            text-decoration: none;
        }
        .page-with-subtabs .sub-tab-content { display: none; animation: fadeIn 0.35s ease; }
        .page-with-subtabs .sub-tab-content.active { display: block; }
        a.logo { text-decoration: none; color: inherit; }
