/* ============================================
   NEWSOLUSZKI - Portal Newsowy Ghost Theme
   Odwzorowanie 1:1 z Figma
   ============================================ */

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-sygnet {
    width: 56px;
    height: auto;
    animation: loadingSpin 1.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

@keyframes loadingSpin {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-8deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.1) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0c1117;
    --bg-card: #121b23;
    --bg-surface: #121b23;
    --border-nav: #273338;
    --accent: #6fc6fb;
    --accent-dark: #5ab0e0;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-radius: 6px;
    --card-radius-lg: 6px;
    --transition: 0.25s ease;
    --container-max: 1388px;
    --header-height: 70px;
    --sidebar-width: 450px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

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

/* Top page gradient - Figma */
.top-gradient {
    position: absolute;
    top: calc(-1 * var(--header-height));
    left: 0;
    right: 0;
    height: 900px;
    background: linear-gradient(180deg, #162330 0%, var(--bg-primary) 100%);
    z-index: 0;
    pointer-events: none;
}

.site-main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

/* ============================================
   HEADER - Figma exact
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: transparent;
    backdrop-filter: none;
}


body.has-scrolled .site-header {
    background-color: rgba(12, 17, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.site-logo, .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Helvetica Neue', 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

/* Navigation - pill buttons */
.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav ul,
.site-nav .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li a,
.site-nav .nav-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 877px;
    font-size: 15px;
    font-weight: 300;
    color: #fff;
    background: rgba(18, 27, 35, 0.5);
    border: 1px solid rgba(39, 51, 56, 0.6);
    transition: all var(--transition);
    white-space: nowrap;
}

.site-nav li a:hover,
.site-nav .nav-item a:hover {
    border-color: var(--accent);
    color: #fff;
}

.site-nav li.nav-current a,
.site-nav .nav-item.nav-current a {
    border-color: var(--accent);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition);
}

.search-btn:hover {
    color: var(--accent);
}


/* Contact button - ghost/transparent style */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 877px;
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-contact:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.btn-suggest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--accent);
    color: #000;
    font-size: 15px;
    font-weight: 500;
    border-radius: 877px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-suggest:hover {
    background: var(--accent-dark);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 24px;
    z-index: 150;
    overflow-y: auto;
    z-index: 99;
}

.mobile-nav[aria-hidden="false"] {
    display: block;
}

/* Ensure header gets bg when menu is open */
.site-header:has(.mobile-menu-btn[aria-expanded="true"]) {
    background-color: rgba(12, 17, 23, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

.mobile-nav-links ul,
.mobile-nav-links .nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.mobile-nav-links li a,
.mobile-nav-links .nav-item a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 300;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    border-radius: 877px;
    text-align: center;
}

.btn-suggest--mobile {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 14px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.section-hero {
    padding-top: 24px;
}

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

.section-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-group svg {
    color: var(--accent);
    flex-shrink: 0;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    letter-spacing: -1.5px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 300;
    color: var(--accent);
    white-space: nowrap;
    transition: all var(--transition);
}

.section-link:hover {
    opacity: 0.8;
}

/* ============================================
   HERO LAYOUT
   ============================================ */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 24px;
    align-items: stretch;
}

.hero-featured .card-hero {
    height: 100%;
    min-height: 440px;
}

.hero-layout--full {
    grid-template-columns: 1fr;
}

.hero-layout--full .hero-featured .card-hero {
    min-height: 520px;
}

/* Hero with side posts (zero.pl style) */
.hero-layout--with-side {
    grid-template-columns: 1fr 340px;
}

.hero-layout--with-side .hero-featured .card-hero {
    min-height: 480px;
}

.hero-layout--with-side .card-hero .card-title {
    max-width: 85%;
}

.hero-side-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-side-card {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.hero-side-card .card-link {
    display: block;
    height: 100%;
    position: relative;
}

.hero-side-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-side-card .card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}

.hero-side-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-side-card .card-tag {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.hero-side-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side-card .card-image--placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
}

/* ============================================
   SIDEBAR - Najnowsze / Z ostatniej chwili
   Text-only list matching Figma
   ============================================ */
/* Najnowsze sidebar - dark bg matching Figma */
.hero-sidebar {
    background: rgba(18, 27, 35, 0.85);
    border-radius: 10px;
    border: none;
    padding: 24px 28px;
    position: relative;
    z-index: 2;
}

/* Z ostatniej chwili sidebar - WITH blue border */
.section-sidebar {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--accent);
    padding: 24px 28px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar-header svg {
    color: var(--accent);
}

.sidebar-header h3 {
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -1.3px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform var(--transition);
}

.card:hover {
    transform: translateY(-3px);
}

.card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.card-image--placeholder {
    background: linear-gradient(135deg, #1a2530, #0f1820);
}

/* Card gradient overlay - subtle teal from Figma */
.card-gradient-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius);
    background: linear-gradient(
        15.575deg,
        rgba(49, 64, 70, 0.7) 20%,
        rgba(8, 9, 10, 0.15) 50%,
        rgba(109, 137, 150, 0) 75%
    );
    z-index: 1;
}

/* Card blur overlay - from Figma */
.card-blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(
        0.586deg,
        rgba(217, 217, 217, 0.01) 74.154%,
        rgba(115, 115, 115, 0) 173.99%
    );
    mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
    z-index: 2;
}

/* Card content overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card-date {
    font-size: 10px;
    font-weight: 400;
    color: #fff;
}

.card-title {
    color: #fff;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ============================================
   TAG PILLS - Gradient per category (Figma exact)
   ============================================ */
.card-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 12px;
    border-radius: 510px;
    font-size: 10px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    background: linear-gradient(to right, var(--accent), #c1e7ff);
    white-space: nowrap;
    line-height: 1.6;
}

/* Per-category gradient colors from Figma */
.card-tag.tag-wiadomosci {
    background: linear-gradient(to right, #ef6ffb, #ffc1fe);
}
.card-tag.tag-girl-talk {
    background: linear-gradient(to right, #fb6fa8, #ffc1de);
}
.card-tag.tag-rozrywka {
    background: linear-gradient(to right, #6fc6fb, #c1e7ff);
}
.card-tag.tag-ciekawostki {
    background: linear-gradient(to right, #786ffb, #c3c1ff);
}
.card-tag.tag-technologia {
    background: linear-gradient(to right, #6ffba3, #c1ffd9);
}
.card-tag.tag-sport {
    background: linear-gradient(to right, #fbd76f, #ffe8a3);
}
.card-tag.tag-promocje {
    background: linear-gradient(to right, #fb9f6f, #ffd4b8);
}

.card-tag.tag-rekomendowane {
    background: linear-gradient(to right, #6fc6fb, #c1e7ff);
}
.card-tag.tag-z-ostatniej-chwili {
    background: linear-gradient(to right, #fb6f71, #ffc1c2);
}

/* ============================================
   CARD HERO
   ============================================ */
.card-hero .card-overlay {
    padding: 28px 32px;
}

.card-hero .card-title {
    font-size: 38px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    max-width: 90%;
}

.card-hero .card-tag {
    font-size: 11px;
    padding: 3px 14px;
}

.card-hero .card-date {
    font-size: 13px;
}

/* ============================================
   CARD MEDIUM
   ============================================ */
.card-medium {
    background: var(--bg-card);
    position: relative;
}

.card-medium .card-link {
    height: 100%;
    position: relative;
    display: block;
}

.card-medium .card-title {
    font-size: 22px;
    letter-spacing: -1px;
}

.card-medium .card-tag {
    font-size: 10px;
    padding: 3px 12px;
}

.card-medium .card-date {
    font-size: 10px;
}

/* ============================================
   CARD LIST (sidebar - text only, Figma exact)
   ============================================ */
.card-list {
    border-radius: 0;
    overflow: visible;
    border-bottom: none;
    padding: 16px 0;
    position: relative;
}

.card-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(111, 198, 251, 0.3), rgba(111, 198, 251, 0.05));
}

.card-list:first-child {
    padding-top: 0;
}

.card-list:last-child {
    padding-bottom: 0;
}

.card-list:last-child::after {
    display: none;
}

.card-list:hover {
    transform: none;
    box-shadow: none;
}

.card-list:hover .card-title {
    color: var(--accent);
}

.card-list .card-link {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.card-list .card-time {
    font-size: 16px;
    font-weight: 300;
    color: var(--accent);
    white-space: nowrap;
    min-width: 48px;
    line-height: 1.55;
    flex-shrink: 0;
}

.card-list .card-title {
    font-size: 15px;
    font-weight: 300;
    color: #fff;
    line-height: 1.55;
    max-width: 280px;
    transition: color 0.2s ease;
}

/* ============================================
   GRIDS
   ============================================ */
.grid {
    display: grid;
    gap: 16px;
}

/* ============================================
   CAROUSEL - Na topie horizontal scroll
   ============================================ */
.carousel-wrapper {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.card-carousel {
    flex: 0 0 340px;
    height: 420px;
    border-radius: var(--card-radius);
}

.card-carousel .card-link {
    height: 100%;
}

.card-carousel .card-title {
    font-size: 24px;
    letter-spacing: -1px;
}

.card-carousel .card-tag {
    font-size: 10px;
    padding: 3px 12px;
}

.card-carousel .card-date {
    font-size: 10px;
}

/* Date below title in carousel */
.card-date-below {
    font-size: 11px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-nav);
    background: rgba(18, 27, 35, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 5;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.carousel-btn-left {
    left: -8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.carousel-btn-left.visible {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn-right {
    right: -8px;
}

/* Subtle fade shadow on right edge */
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 4px;
    width: 60px;
    background: linear-gradient(to left, rgba(12, 17, 23, 0.7), transparent);
    pointer-events: none;
    z-index: 4;
}

/* Rekomendowane: 2 tall on top, then rows of 3 smaller */
.grid-rekomendowane {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.grid-rekomendowane .card:nth-child(1),
.grid-rekomendowane .card:nth-child(2) {
    grid-column: span 3;
    height: 380px;
}

.grid-rekomendowane .card:nth-child(1) .card-title,
.grid-rekomendowane .card:nth-child(2) .card-title {
    font-size: 29px;
    letter-spacing: -1.45px;
}

.grid-rekomendowane .card:nth-child(n+3) {
    grid-column: span 2;
    height: 250px;
}

/* ============================================
   SECTION LAYOUT - Figma exact
   Top: 2x2 cards + sidebar (sidebar = height of 2 cards)
   Bottom: 3 cards full width
   ============================================ */
/* Section layout: all cards same height, geometrically aligned */
.section-top-row {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 16px;
    margin-bottom: 16px;
}

.section-cards-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 250px 250px;
    gap: 16px;
}

.section-cards-2x2 .card-medium {
    height: 250px;
}

/* Sidebar = exactly 2 cards + 1 gap height */
.section-top-row .section-sidebar {
    height: calc(250px + 250px + 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.section-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.section-bottom-row .card-medium {
    height: 250px;
}

/* Gradient border sidebar */
.sidebar-gradient-border {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 24px 28px;
    border: none;
    position: relative;
}

.sidebar-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(111, 198, 251, 0.2) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* General 3-col grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-3 .card-medium {
    height: 250px;
}

/* ============================================
   CTA SECTION - Figma style
   ============================================ */
/* CTA Banner - Figma pixel-perfect (container = 1378x339) */
.section-cta {
    padding: 24px 0;
}

.cta-box {
    position: relative;
    background: linear-gradient(181deg, rgb(22, 35, 45) 50%, rgb(18, 27, 35) 111%);
    border-radius: 10px;
    overflow: hidden;
    height: 339px;
}

.cta-layer {
    position: absolute;
    pointer-events: none;
}

/* Logo outline vector: Figma inset(-45.82% -8.33% -88.49% 42.4%)
   = starts at 42.4% from left, extends 45.82% above and 88.49% below
   Total height = 45.82% + 100% + 88.49% = 234.31% of container
   Total width = 100% - 42.4% + 8.33% = 65.93% of container */
/* Desktop logo */
.cta-logo-desk {
    left: 42.4%;
    top: -45.82%;
    width: 65.93%;
    height: 234.31%;
    max-width: none;
}

/* Mobile logo - hidden on desktop */
.cta-logo-mob { display: none; }

/* Glow ellipses: sized with expansion from Figma inset(-53.42% -48.73%)
   Actual render size = container * (1 + 2*53.42%) width, (1 + 2*48.73%) height
   But simpler: just make glows big with the SVG handling blur internally */
.cta-glow-wrap {
    overflow: visible;
}

.cta-glow-wrap img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Glow right: Figma left=812, top=231, 513x468, expanded by ~53%/49% */
.cta-glow-right {
    left: 540px;
    top: -20px;
    width: 1013px;
    height: 968px;
}

/* Glow left: Figma left=-323, top=15, 513x468, expanded */
.cta-glow-left {
    left: -596px;
    top: -235px;
    width: 1013px;
    height: 968px;
}

/* Phone blurred shadow: same pos as phone, blur 50px, rotate -5.07deg */
.cta-phone-blur {
    left: 836px;
    top: 3px;
    width: 373px;
    height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-phone-blur img {
    width: 330px;
    height: 503px;
    object-fit: contain;
    filter: blur(50px);
    transform: rotate(-5.07deg);
}

/* Phone actual: Figma left=836, top=3, 373x530 */
/* Desktop phone (absolute) */
.cta-phone-desktop {
    left: 836px;
    top: 3px;
    width: 373px;
    height: 530px;
    object-fit: contain;
    z-index: 2;
}

/* Mobile phone wrapper - hidden on desktop */
.cta-phone-mobile {
    display: none;
}

.cta-phone-mobile-img {
    display: block;
    width: 65%;
    max-width: 384px;
    height: auto;
    margin: 0 auto -40px;
}

/* Text: Figma left=62, top=58 */
.cta-text {
    position: relative;
    z-index: 3;
    padding: 58px 0 0 62px;
}

.cta-text h2 {
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 45px;
}

.cta-text h2 strong {
    color: var(--accent);
    font-weight: 600;
}

.cta-text p {
    color: #b4b4b4;
    margin-bottom: 40px;
    font-size: 20px;
    font-weight: 400;
    max-width: 535px;
    line-height: 30px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: var(--accent);
    color: #000;
    font-size: 17.55px;
    font-weight: 500;
    border-radius: 877px;
    transition: all var(--transition);
}

.btn-cta:hover {
    background: var(--accent-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-nav);
    margin-top: 40px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding: 48px 0;
}

.footer-brand .footer-logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col li a,
.footer-col .nav-item a {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: color var(--transition);
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.footer-col li a:hover,
.footer-col .nav-item a:hover {
    color: var(--accent);
    background: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-nav);
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent);
}

/* ============================================
   POST PAGE - Figma pixel-perfect
   ============================================ */
.post-page {
    position: relative;
    z-index: 2;
}

/* Hero: Figma 1322px wide, 568px tall, centered, top: 114px (after navbar) */
.post-hero {
    max-width: 1322px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-hero-image {
    position: relative;
    width: 100%;
    height: 568px;
    border-radius: 9px;
    overflow: hidden;
}

.post-hero-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient: Figma linear-gradient(0deg, rgb(49,64,70) 11.5%, transparent 68%) */
.post-hero-gradient {
    position: absolute;
    inset: 0;
    border-radius: 9px;
    background: linear-gradient(0deg, rgb(49, 64, 70) 11.5%, rgba(8, 9, 10, 0) 68%, rgba(109, 137, 150, 0) 107%);
}

/* Blur: Figma backdrop-blur(31.62px) at bottom */
.post-hero-blur {
    position: absolute;
    bottom: 0;
    left: -22px;
    right: -22px;
    height: 310px;
    backdrop-filter: blur(31.62px);
    -webkit-backdrop-filter: blur(31.62px);
    background: linear-gradient(0.69deg, rgba(217, 217, 217, 0.01) 74.15%, rgba(115, 115, 115, 0) 174%);
    mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
}

/* Overlay content: centered */
.post-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    z-index: 3;
}

/* Date pill: Figma bg #6fc6fb, Geist Light 13px, black text */
.post-hero-date {
    display: inline-flex;
    align-items: center;
    padding: 4px 18px;
    background: var(--accent);
    color: #000;
    font-size: 13px;
    font-weight: 300;
    border-radius: 819px;
    margin-bottom: 12px;
}

/* Title: Figma Geist Medium 54px, centered, 719px wide */
.post-hero-title {
    font-size: 54px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 63px;
    letter-spacing: -2.71px;
    max-width: 719px;
    margin-bottom: 16px;
}

/* Author: "dodane przez" + avatar + name */
.post-hero-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 300;
    color: #fff;
}

.post-hero-author-label {
    font-weight: 300;
}

.post-hero-author-name {
    font-weight: 500;
}

.post-hero-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.post-hero-avatar--placeholder {
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Content card: Figma bg #1b1b1b, rounded 10px, overlaps hero by ~30px */
.post-content-card {
    max-width: 1321px;
    margin: -30px auto 0;
    background: #070C11;
    border-radius: 10px;
    padding: 60px 80px;
    position: relative;
    z-index: 4;
}

.post-content-inner {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: #e2e8f0;
}

.post-content-inner h2 { font-size: 28px; font-weight: 500; margin: 40px 0 16px; letter-spacing: -1px; color: #fff; }
.post-content-inner h3 { font-size: 22px; font-weight: 500; margin: 32px 0 12px; color: #fff; }
.post-content-inner p { margin-bottom: 20px; }
.post-content-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-content-inner img { border-radius: 8px; margin: 32px 0; }
.post-content-inner blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0; color: var(--text-secondary); font-style: italic; }
.post-content-inner ul, .post-content-inner ol { padding-left: 24px; margin-bottom: 20px; list-style: disc; }
.post-content-inner ol { list-style: decimal; }
.post-content-inner li { margin-bottom: 8px; }
.post-content-inner figure { margin: 32px 0; }
.post-content-inner figcaption { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.post-content-inner .kg-image-card img,
.post-content-inner .kg-gallery-image img { border-radius: 8px; }
.post-content-inner .kg-width-wide { max-width: 100%; }
.post-content-inner .kg-width-full { max-width: 100%; }

.post-content-inner .kg-bookmark-card { background: var(--bg-card); border: 1px solid var(--border-nav); border-radius: 10px; overflow: hidden; margin: 24px 0; }
.post-content-inner .kg-bookmark-container { display: flex; text-decoration: none; }
.post-content-inner .kg-bookmark-content { flex: 1; padding: 20px; }
.post-content-inner .kg-bookmark-title { font-weight: 500; font-size: 16px; margin-bottom: 8px; color: #fff; }
.post-content-inner .kg-bookmark-description { font-size: 14px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-content-inner .kg-bookmark-thumbnail { width: 200px; min-height: 160px; }
.post-content-inner .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Tags */
.post-content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-nav);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.post-tag-pill {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 300;
    border-radius: 877px;
    transition: all var(--transition);
}

.post-tag-pill:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Author card at end of post */
.post-author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-nav);
}

.post-author-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-card-info {
    display: flex;
    flex-direction: column;
}

.post-author-card-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.post-author-card-role {
    font-size: 13px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1.4;
}

/* Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 877px;
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.share-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #000;
}

button.share-btn {
    cursor: pointer;
    font-family: inherit;
}

/* Related posts */
.post-related {
    max-width: var(--container-max);
    margin: 48px auto 0;
    padding: 0 24px 48px;
}

.post-related h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -1px;
}


/* Post responsive */
@media (max-width: 1024px) {
    .post-hero-image { height: 400px; }
    .post-hero-title { font-size: 38px; line-height: 46px; max-width: 600px; }
    .post-content-card { padding: 40px 40px; }
}

@media (max-width: 768px) {
    .post-hero-image { height: 320px; }
    .post-hero-title { font-size: 28px; line-height: 34px; max-width: 90%; letter-spacing: -1.5px; }
    .post-hero-date { font-size: 11px; }
    .post-content-card { padding: 32px 24px; margin-top: -20px; }
    .post-content-inner { font-size: 16px; }
}

@media (max-width: 480px) {
    .post-hero-image { height: 260px; }
    .post-hero-title { font-size: 22px; line-height: 28px; }
    .post-hero-content { padding-bottom: 24px; }
    .post-content-card { padding: 24px 16px; border-radius: 8px; }
}

/* ============================================
   ARCHIVE
   ============================================ */
.section-archive { padding-top: 40px; }
.archive-header { text-align: center; margin-bottom: 32px; }
.archive-title { font-size: 32px; font-weight: 500; margin-bottom: 8px; letter-spacing: -1.5px; }
.archive-desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto 12px; font-weight: 300; }
.archive-count { font-size: 14px; color: var(--text-muted); font-weight: 300; }

/* Tag scroll filter */
.tag-scroll-wrapper {
    margin-bottom: 20px;
    overflow: hidden;
}

.tag-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.tag-scroll::-webkit-scrollbar {
    display: none;
}

.tag-scroll-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 877px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    font-family: 'Geist', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.tag-scroll-btn:hover {
    border-color: var(--accent);
}

.tag-scroll-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 500;
}

/* Tag scroll - gradient bg like card tags */
.tag-scroll-btn[href*="rozrywka"] { background: linear-gradient(to right, #6fc6fb, #c1e7ff); color: #000; border: none; }
.tag-scroll-btn[href*="wiadomosci"] { background: linear-gradient(to right, #ef6ffb, #ffc1fe); color: #000; border: none; }
.tag-scroll-btn[href*="sport"] { background: linear-gradient(to right, #fbd76f, #ffe8a3); color: #000; border: none; }
.tag-scroll-btn[href*="ciekawostki"] { background: linear-gradient(to right, #786ffb, #c3c1ff); color: #000; border: none; }
.tag-scroll-btn[href*="motoryzacja"] { background: linear-gradient(to right, #fb6f71, #ffc1c2); color: #000; border: none; }
.tag-scroll-btn[href*="technologia"] { background: linear-gradient(to right, #6ffba3, #c1ffd9); color: #000; border: none; }
.tag-scroll-btn[href*="gry"] { background: linear-gradient(to right, #fb6fdb, #ffc1f2); color: #000; border: none; }
.tag-scroll-btn[href*="promocje"] { background: linear-gradient(to right, #fb9f6f, #ffd4b8); color: #000; border: none; }
.tag-scroll-btn[href*="dramy"] { background: linear-gradient(to right, #fb6f71, #ffc1c2); color: #000; border: none; }

/* Archive toolbar */
.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.archive-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    border-radius: 877px;
    padding: 10px 20px;
    flex: 1;
    max-width: 400px;
    transition: border-color 0.25s ease;
}

.archive-search-box:focus-within {
    border-color: var(--accent);
}

.archive-search-box svg {
    color: var(--accent);
    flex-shrink: 0;
}

.archive-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.archive-search-box input::placeholder {
    color: var(--text-muted);
}

.archive-sort {
    display: flex;
    gap: 4px;
}

.sort-btn {
    padding: 8px 16px;
    border-radius: 877px;
    border: 1px solid var(--border-nav);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.sort-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 500;
}

@media (max-width: 768px) {
    .archive-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .archive-search-box {
        max-width: 100%;
    }
    .archive-sort {
        justify-content: center;
    }
}
.author-avatar-large { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 0;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
}

.pagination a {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    border-radius: 877px;
    color: #fff;
    font-weight: 300;
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 48px 24px;
}

.error-code { font-size: 6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.error-message { font-size: 20px; font-weight: 300; color: var(--text-secondary); margin: 16px 0 32px; }
.error-link { padding: 12px 28px; background: var(--accent); color: #000; border-radius: 877px; font-weight: 500; transition: all var(--transition); }
.error-link:hover { background: var(--accent-dark); }

/* ============================================
   CUSTOM SEARCH MODAL
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-modal {
    width: 620px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.open .search-modal {
    transform: translateY(0);
}

/* Search input box */
.search-input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    border-radius: 877px;
    padding: 14px 24px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(111, 198, 251, 0.15);
}

.search-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.search-input-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 300;
}

.search-input-box input::placeholder {
    color: var(--text-muted);
}

.search-kbd {
    font-family: 'Geist', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-nav);
    border-radius: 6px;
    padding: 3px 8px;
    flex-shrink: 0;
}

/* Search results box */
.search-results {
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    border-radius: 16px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--border-nav);
    border-radius: 2px;
}

.search-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
}

.search-no-results {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
}

/* Search result item */
.search-result {
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
    align-items: center;
}

.search-result:hover {
    background: rgba(111, 198, 251, 0.08);
}

.search-result-img {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
}

.search-result-tag {
    font-size: 10px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    background: linear-gradient(to right, var(--accent), #c1e7ff);
    padding: 1px 8px;
    border-radius: 510px;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #3d3d3d;
    border-radius: 999px;
    padding: 8px 6px;
    gap: 0;
    width: auto;
    max-width: 92vw;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
    }

    /* Add padding at bottom of page so content isn't hidden */
    .site-footer {
        padding-bottom: 80px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    border-radius: 999px;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.4px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Geist', sans-serif;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.bottom-nav-item.active {
    color: #fff;
    background: rgba(18, 31, 39, 0.8);
}

.bottom-nav-item.active svg {
    stroke: var(--accent);
}

.bottom-nav-item:hover {
    color: #fff;
}

/* ============================================
   MOBILE MENU PANEL
   ============================================ */
.mobile-menu-panel {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 190;
    width: 92vw;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: 1px solid #3d3d3d;
    border-radius: 40px;
    padding: 32px 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-panel {
        display: block;
    }

    .mobile-menu-panel.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

.menu-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.menu-panel-section h3 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.menu-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.menu-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 1806px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    background: var(--bg-card);
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-tag:hover {
    border-color: var(--accent);
}

/* Menu tag colors - gradient like card tags */
.menu-tag.tag-rozrywka { background: linear-gradient(to right, #6fc6fb, #c1e7ff); color: #000; border: none; }
.menu-tag.tag-wiadomosci { background: linear-gradient(to right, #ef6ffb, #ffc1fe); color: #000; border: none; }
.menu-tag.tag-sport { background: linear-gradient(to right, #fbd76f, #ffe8a3); color: #000; border: none; }
.menu-tag.tag-ciekawostki { background: linear-gradient(to right, #786ffb, #c3c1ff); color: #000; border: none; }
.menu-tag.tag-girl-talk { background: linear-gradient(to right, #fb6fa8, #ffc1de); color: #000; border: none; }
.menu-tag.tag-technologia { background: linear-gradient(to right, #6ffba3, #c1ffd9); color: #000; border: none; }
.menu-tag.tag-promocje { background: linear-gradient(to right, #fb9f6f, #ffd4b8); color: #000; border: none; }


.menu-panel-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 877px;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid var(--border-nav);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.menu-panel-btn:hover {
    border-color: var(--accent);
}

.menu-panel-btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 500;
}

.menu-panel-btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* ============================================
   COOKIE CONSENT BOX
   ============================================ */
.cookie-box {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 300;
    max-width: 420px;
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #3d3d3d;
    animation: cookieSlideIn 0.5s ease 1s both;
}

.cookie-box.hidden {
    display: none;
}

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

.cookie-box-blur {
    display: none;
}

.cookie-box-inner {
    padding: 24px;
}

.cookie-text {
    font-size: 14px;
    font-weight: 300;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 16px;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 877px;
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 0;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #000;
}

.cookie-btn-accept:hover {
    background: var(--accent-dark);
}

.cookie-btn-reject {
    background: var(--bg-card);
    color: #fff;
    border: 1px solid var(--border-nav);
}

.cookie-btn-reject:hover {
    border-color: var(--accent);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent);
    border: none;
    flex: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cookie-btn-settings:hover {
    color: #fff;
}

.cookie-btn-settings svg {
    flex-shrink: 0;
}

/* Cookie settings panel */
.cookie-settings {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-nav);
}

.cookie-settings.open {
    display: block;
}

.cookie-category {
    margin-bottom: 14px;
}

.cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cookie-cat-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.cookie-cat-badge {
    font-size: 11px;
    font-weight: 400;
    color: var(--accent);
    background: rgba(111, 198, 251, 0.1);
    padding: 2px 10px;
    border-radius: 877px;
}

.cookie-cat-desc {
    font-size: 12px;
    font-weight: 300;
    color: #999;
    line-height: 1.4;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background: #333;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-slider {
    background: var(--accent);
}

.cookie-toggle input:checked + .cookie-slider::before {
    transform: translateX(18px);
}

.cookie-settings .cookie-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cookie-box {
        bottom: 120px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-box-inner {
        padding: 18px;
    }

    .cookie-text {
        font-size: 13px;
    }

    .cookie-btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .cookie-actions {
        gap: 6px;
    }
}

/* Ghost nav helper */
.nav { list-style: none; margin: 0; padding: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-nav); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.anim-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.anim-stagger .card:nth-child(1) { transition-delay: 0s; }
.anim-stagger .card:nth-child(2) { transition-delay: 0.08s; }
.anim-stagger .card:nth-child(3) { transition-delay: 0.16s; }
.anim-stagger .card:nth-child(4) { transition-delay: 0.24s; }
.anim-stagger .card:nth-child(5) { transition-delay: 0.32s; }
.anim-stagger .card:nth-child(6) { transition-delay: 0.4s; }

/* Card hover lift */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Smooth image zoom on hover */
.card .card-image {
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* CTA phone float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cta-phone-desktop {
    animation: float 5s ease-in-out infinite;
}

/* Energy wave glow on logo containers */
@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 1px rgba(111, 198, 251, 0.05)); }
    50% { filter: drop-shadow(0 0 6px rgba(111, 198, 251, 0.15)); }
}

.cta-logo-desk {
    animation: glowPulse 5s ease-in-out infinite;
}

.cta-logo-mob {
    animation: glowPulse 4s ease-in-out infinite;
}

/* Section header fade-in */
.section-header {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 360px;
    }

    .site-nav li a,
    .site-nav .nav-item a {
        padding: 7px 12px;
        font-size: 13px;
    }

    .card-carousel {
        flex: 0 0 300px;
        height: 360px;
    }

    .grid-rekomendowane {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid-rekomendowane .card:nth-child(1),
    .grid-rekomendowane .card:nth-child(2) {
        grid-column: span 2;
        height: 320px;
    }
    .grid-rekomendowane .card:nth-child(n+3) {
        grid-column: span 2;
        height: 220px;
    }
}

@media (max-width: 1024px) {
    .site-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero-layout,
    .hero-layout--with-side,
    .section-with-sidebar {
        grid-template-columns: 1fr;
    }

    .hero-side-posts {
        display: none;
    }

    .hero-featured .card-hero { height: 400px; }

    .hero-layout--with-side .card-hero .card-title {
        max-width: 90%;
    }
    .section-sidebar { display: none; }

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

    .section-top-row .section-sidebar {
        height: auto;
    }

    .section-cards-2x2 {
        grid-template-rows: 220px 220px;
    }

    .section-cards-2x2 .card-medium { height: 220px; }

    .section-bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-bottom-row .card-medium { height: 220px; }

    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .post-hero-image { height: 400px; }
    .post-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }

    .btn-suggest:not(.btn-suggest--mobile) { display: none; }
    .btn-contact { display: none; }

    /* Mobile: hide search + hamburger, center logo, smaller sygnet */
    .header-actions { display: none; }
    .header-inner { justify-content: center; }
    .site-logo { margin: 0; }
    .logo-icon { width: 22px; height: auto; }

    .hero-featured .card-hero { height: 300px; min-height: 300px; }
    .card-hero .card-title { font-size: 22px; max-width: 85%; }
    .card-hero .card-overlay { padding: 20px 20px; }

    .card-carousel { flex: 0 0 260px; height: 320px; }

    .grid-rekomendowane { grid-template-columns: repeat(2, 1fr); }
    .grid-rekomendowane .card:nth-child(1),
    .grid-rekomendowane .card:nth-child(2) { grid-column: span 1; height: 260px; }
    .grid-rekomendowane .card:nth-child(n+3) { grid-column: span 1; height: 200px; }

    .section-cards-2x2 { grid-template-rows: 200px 200px; }
    .section-cards-2x2 .card-medium { height: 200px; }
    .section-bottom-row .card-medium { height: 200px; }

    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 24px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* CTA mobile - Figma: 573x652 ratio */
    .cta-box { height: 0; padding-bottom: 113.8%; overflow: hidden; }
    .cta-phone-blur { display: none; }
    .cta-phone-desktop { display: none; }
    .cta-logo-desk { display: none; }

    /* Mobile logo: viewBox 573x263, positioned at bottom behind phone */
    /* Figma: Vector at x=-162 y=732 in 573x652 container → bottom area */
    .cta-logo-mob {
        display: block;
        left: 0;
        bottom: 0;
        width: 100%;
        height: auto;
    }

    .cta-text {
        position: absolute;
        z-index: 3;
        top: 0;
        left: 0;
        right: 0;
        padding: 9% 5% 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cta-text h2 { font-size: 28px; margin-bottom: 4px; }
    .cta-text p { font-size: 16px; text-align: center; max-width: 80%; margin-bottom: 32px; line-height: 1.4; }

    /* Phone: Figma x=103 y=292 w=384 h=367 */
    .cta-phone-mobile {
        display: block;
        position: absolute;
        top: 44.8%;
        left: 18%;
        z-index: 2;
        width: 67%;
    }

    .cta-phone-mobile-img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Glows: Figma exact px positions, scale with container */
    .cta-glow-right {
        left: auto;
        right: -52%;
        top: 35%;
        width: 89%;
        height: 72%;
    }
    .cta-glow-left {
        left: -56%;
        top: 2%;
        width: 89%;
        height: 72%;
    }

    /* Post page */
    .post-hero-image { height: 320px; }
    .post-hero-title { font-size: 28px; line-height: 34px; max-width: 90%; }
    .post-hero-content { padding-bottom: 36px; }
    .post-content-card { padding: 32px 24px; }
    .post-content-inner { font-size: 16px; }

    /* Card list sidebar */
    .card-list .card-title { max-width: 100%; }

    /* Search */
    .search-modal { width: 95vw; }
}

@media (max-width: 480px) {
    :root { --header-height: 56px; }
    .container { padding: 0 14px; }

    /* Header */
    .header-inner { gap: 8px; padding: 0 14px; }
    .mobile-menu-btn { width: 36px; height: 36px; padding: 6px; }
    .logo-text { font-size: 17px; }

    /* Hero */
    .hero-featured .card-hero { height: 380px; min-height: 380px; }
    .card-hero .card-title { font-size: 26px; max-width: 90%; line-height: 1.25; }
    .card-hero .card-overlay { padding: 20px 18px; }
    .card-hero .card-tag { font-size: 9px; padding: 2px 10px; }
    .card-hero .card-date { font-size: 9px; }

    /* Carousel */
    .card-carousel { flex: 0 0 85vw; height: 300px; }
    .card-carousel .card-title { font-size: 18px; }

    /* Grids -> 1 column */
    .grid-rekomendowane { grid-template-columns: 1fr; }
    .grid-rekomendowane .card { grid-column: span 1 !important; height: 260px !important; }
    .grid-rekomendowane .card .card-title { font-size: 18px !important; letter-spacing: -0.5px !important; }

    .section-cards-2x2 { grid-template-columns: 1fr; grid-template-rows: auto; }
    .section-cards-2x2 .card-medium { height: 240px !important; }

    .section-bottom-row { grid-template-columns: 1fr; }
    .section-bottom-row .card-medium { height: 240px !important; }

    .grid-3 { grid-template-columns: 1fr; }
    .grid-3 .card-medium { height: 240px; }

    /* Sections */
    .section { padding: 20px 0; }
    .section-title { font-size: 20px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* CTA - same ratio, smaller text */
    .cta-text { padding: 8% 5% 0; }
    .cta-text h2 { font-size: 22px; margin-bottom: 4px; }
    .cta-text p { font-size: 13px; margin-bottom: 20px; }
    .btn-cta { font-size: 13px; padding: 8px 22px; }

    /* Footer */
    .footer-links { grid-template-columns: 1fr; gap: 24px; }

    /* Post page */
    .post-hero-image { height: 400px; }
    .post-hero-title { font-size: 28px; line-height: 34px; letter-spacing: -1px; }
    .post-hero-date { font-size: 10px; padding: 3px 12px; }
    .post-hero-content { padding-bottom: 50px; }
    .post-hero-author { font-size: 13px; }
    .post-hero-avatar { width: 24px; height: 24px; }
    .post-hero-blur { height: 180px; }
    .post-hero-gradient { background: linear-gradient(0deg, rgba(49, 64, 70, 0.8) 5%, rgba(8, 9, 10, 0) 50%); }

    /* Przeczytaj również - stack vertically on mobile */
    .post-related .carousel-wrapper::after { display: none; }
    .post-related .carousel-btn { display: none; }
    .post-related .carousel-track {
        flex-direction: column;
        overflow: visible;
        gap: 16px;
    }
    .post-related .card-carousel {
        flex: none;
        width: 100%;
        height: 240px;
    }
    .post-content-card { padding: 24px 16px; border-radius: 8px; }
    .post-content-inner { font-size: 15px; }

    /* Search */
    .search-input-box { padding: 10px 14px; }
    .search-kbd { display: none; }
    .search-results { max-height: 340px; }
    .search-result-img { width: 56px; height: 42px; }
}

@media (max-width: 360px) {
    .hero-featured .card-hero { height: 320px; min-height: 320px; }
    .card-hero .card-title { font-size: 22px; }
    .card-hero .card-tag { font-size: 8px; }
    .card-carousel { flex: 0 0 90vw; height: 260px; }
    .post-hero-image { height: 360px; }
    .post-hero-title { font-size: 24px; line-height: 30px; }
    .post-hero-content { padding-bottom: 44px; }
    .section-cards-2x2 .card-medium,
    .section-bottom-row .card-medium,
    .grid-3 .card-medium { height: 220px !important; }
}

/* ============================================
   SUGGEST FORM PAGE
   ============================================ */
.section-form {
    padding-top: 40px;
    padding-bottom: 80px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.form-desc {
    font-size: 16px;
    color: #999;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.form-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 14px;
    padding: 36px 40px;
    border: 1px solid rgba(255,255,255,0.06);
}

.suggest-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

.form-optional {
    color: #666;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: #1b1f27;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
}

.form-submit:hover {
    opacity: 0.85;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
}

.form-success svg {
    color: #6ffba3;
}

.form-success h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
}

.form-success p {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
}

.form-another {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-another:hover {
    background: rgba(255,255,255,0.14);
}

@media (max-width: 600px) {
    .form-card {
        padding: 24px 20px;
    }
    .form-title {
        font-size: 28px;
    }
}

/* ============================================
   CONTACT PAGE LAYOUT
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
}

.contact-info {
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 32px 28px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info-header h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-item svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    color: #fff;
    transition: color 0.2s;
}

.contact-value:hover {
    color: var(--accent);
}

.contact-info-note {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
}

.contact-info-note p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info {
        position: static;
    }
}

/* Checkbox RODO */
.form-group-checkbox {
    margin-top: 4px;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.form-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    margin-top: 1px;
    transition: all 0.2s;
    position: relative;
}

.form-checkbox-label input:checked + .form-checkbox-box {
    background: var(--accent);
    border-color: var(--accent);
}

.form-checkbox-label input:checked + .form-checkbox-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox-text {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.form-checkbox-text a {
    color: var(--accent);
}

.form-checkbox-text a:hover {
    text-decoration: underline;
}
