:root {
    --bg-body: #F9F9F8;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A; /* Kolor napisu Clariva */
    --text-secondary: #475569;
    --accent: #111827;
    --border-color: #E2E8F0;
    --border-light: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Header Top Bar (Contact) */
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}
.header-top-bar a {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--text-primary);
    transition: var(--transition);
}
.header-top-bar a:hover {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

/* Left cluster: bar text + contact link */
.header-left-cluster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
}
.lang-switch button {
    width: 38px;
    height: 34px;
    padding: 0;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-switch button:hover {
    color: var(--text-primary);
    background: #E2E8F0;
}
.lang-switch button.active {
    background: var(--text-primary);
    color: #fff;
}
@media (max-width: 640px) {
    .header-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-top: 0.75rem;
        margin-bottom: 1rem;
    }
    .header-left-cluster {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        text-align: center;
        flex-wrap: wrap;
    }
    .lang-switch {
        margin: 15px 0;
    }
}

/* Header & Huge Logo */
.site-header {
    background: radial-gradient(ellipse 100% 100% at 50% 0%, #dce6f5 0%, rgba(249, 249, 248, 0) 70%);
}

.site-header.centered-header {
    padding: 0 0 5rem;
}

.brand-tagline {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #94A3B8;
    letter-spacing: 0.01em;
    margin-top: 1.2rem;
}

.huge-logo {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--text-primary);
    text-align: center;
    line-height: 0.9;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
}

.huge-logo span {
    color: #3B82F6;
}

.huge-logo .brand-suffix {
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    color: #94A3B8;
    margin-left: 0.5rem;
    letter-spacing: -0.04em;
    display: inline-block;
}

/* Portfolio List */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-bottom: 4rem;
}

/* App Jump Navigation */
.app-jump-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-bottom: -3rem;
}

.app-jump-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    border-right: none;
    transition: var(--transition);
    white-space: nowrap;
}

.app-jump-btn:last-child {
    border-right: 1px solid var(--border-color);
}

.app-jump-btn:hover {
    color: var(--text-main);
    background: #EEF2F7;
}

/* 
  Row Layout Tile (3 Columns) - Sharp Editorial Style 
  Brak zaokrągleń, twarde linie, brak paddingu zewnętrznego.
*/
.tile.row-layout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0; /* Ostre krawędzie */
    display: grid;
    grid-template-columns: 3fr 4.5fr 3.5fr;
    gap: 0; /* Brak przerw, kolumny stykają się ze sobą */
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0,0,0,0.02); /* Prawie płaskie, minimalny cień otoczenia */
}

.tile.row-layout:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Column 1: Image */
.tile-image-col {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #F1F5F9;
    border-right: 1px solid var(--border-color);
}

/* 
  Naprawienie błędu wylewającego się zdjęcia: 
  absolute + inset: 0 + object-fit: cover sprawia, 
  że zdjęcie idealnie wypełnia komórkę grida i nigdy jej nie przekracza.
*/
.mockup-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-image-col:hover .mockup-img {
    transform: scale(1.04);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.overlay-badge {
    background: #FFFFFF;
    color: var(--text-primary);
    padding: 0.75rem 1.75rem;
    border-radius: 0; /* Ostre krawędzie na hover */
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transform: translateY(10px);
    transition: var(--transition);
}

.tile-image-col:hover .image-overlay {
    opacity: 1;
}

.tile-image-col:hover .overlay-badge {
    transform: translateY(0);
}

/* Column 2: Info */
.tile-info-col {
    padding: 4rem;
    display: flex;
    flex-direction: column;
}

.official-brand-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.official-brand-link:hover {
    transform: translateY(-2px);
}

.official-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.official-brand-logo .brand-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.official-brand-logo .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-meta h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    background: #F1F5F9;
    padding: 0.4rem 1rem;
    border-radius: 0; /* Ostre krawędzie */
    margin-bottom: 2rem;
}

.app-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Typography for sections - Sznyt designerski */
.app-features-section h3, .tech-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}

.features-list li strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Zamiana generycznego ticka na minimalistyczną, mocną pauzę */
.features-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-primary);
    font-weight: 800;
}

/* Column 3: Tech Stack */
.tile-tech-col {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    background-color: var(--text-primary); /* Ciemne tło, kolor napisu Clariva */
    color: #F8FAFC;
}

.tile-tech-col .tech-section h3 {
    color: #E2E8F0; /* Bardziej naturalny, jasny odcień na ciemnym tle */
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 0; /* Ostre krawędzie */
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
}

.tech-badge img {
    width: 18px;
    height: 18px;
}

/* Odwrócenie czarnej ikony Apple, aby była widoczna na czarnym tle */
.tech-badge img[alt="iOS"] {
    filter: brightness(0) invert(1);
}

.tech-specs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-spec-item {
    font-size: 1.05rem;
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-left: 2px solid rgba(255,255,255,0.15); /* Minimalistyczna linia oddzielająca */
    padding-left: 1.2rem;
}

.tech-spec-item span {
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    color: #CBD5E1; /* Lżejszy i bardziej przyjazny kolor dla oka */
    font-weight: 500;
}

.tsi-label-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #A5B4FC;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Actions w ciemnej kolumnie */
.bottom-actions {
    margin-top: 3rem;
}

.btn-google-play img {
    height: 56px;
    transition: transform 0.2s;
}

.btn-google-play:hover img {
    transform: translateY(-2px);
}

.stacked-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0; /* Ostre krawędzie, brutalistyczny styl */
    font-weight: 700;
    transition: var(--transition);
    padding: 1.1rem 1.75rem;
    font-size: 1rem;
    width: 100%;
}

.available-soon-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #94A3B8;
    margin-bottom: 1rem;
    display: block;
}

.btn-beta {
    background: #10B981;
    color: white;
    border: 1px solid #059669;
}

.btn-beta:hover {
    background: #10B981;
    transform: none;
}

.btn-website {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-website:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.tile-tech-col .btn-primary {
    background: #FFFFFF;
    color: var(--text-primary); /* Ciemny tekst na białym przycisku */
    border: 1px solid #FFFFFF;
}

.tile-tech-col .btn-primary:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

.tile-tech-col .btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tile-tech-col .btn-secondary:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
}

.modal-container {
    position: relative;
    width: 96%;
    max-width: 1400px;
    height: 88vh;
    background: var(--bg-card);
    border-radius: 0; /* Ostre krawędzie modala */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: var(--transition);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.btn-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 0; /* Ostry kwadratowy przycisk */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.modal-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-main-view {
    flex: 1;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.modal-main-view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-sidebar {
    width: 340px;
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.modal-sidebar::-webkit-scrollbar {
    width: 4px;
}
.modal-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.modal-sidebar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}
.modal-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.thumb-item {
    width: 100%;
    height: 220px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    transform: scale(0.96);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover {
    opacity: 0.8;
    transform: scale(0.98);
}

.thumb-item.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 10;
    position: relative;
}

/* ========================================= */
/* Additional UI Elements (Buttons & Drawers)*/
/* ========================================= */

/* Text Button (View More) */
.btn-text {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}
.btn-text span {
    transition: transform 0.2s;
}
.btn-text:hover {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}
.btn-text:hover span {
    transform: translateX(4px);
}

/* Off-canvas Features Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.features-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 1000px; /* Zwiększona szerokość, aby pomieścić zdjęcia i tekst */
    background: var(--bg-body);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0,0,0,0.1);
    border-left: 1px solid var(--border-color);
}
.features-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 2.5rem 3.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.drawer-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-header h2 {
    font-size: 1.5rem; /* Zmniejszony rozmiar tekstu wg wskazówek */
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.drawer-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.drawer-badge {
    margin-bottom: 0;
}
.drawer-tech-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.drawer-tech-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}
.drawer-tech-badge img {
    width: 14px;
    height: 14px;
}

.drawer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: var(--transition);
}
.drawer-close:hover {
    transform: rotate(90deg);
}

.drawer-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.drawer-images {
    width: 400px;
    background: #F1F5F9;
    border-right: 1px solid var(--border-color);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    overflow-y: auto;
}

.drawer-images img {
    width: 100%;
    object-fit: cover;
    border-radius: 0; /* Zgodnie z brutalistycznym stylem */
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.drawer-content {
    padding: 3.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Custom scrollbars */
.drawer-content::-webkit-scrollbar,
.drawer-images::-webkit-scrollbar {
    width: 6px;
}
.drawer-content::-webkit-scrollbar-track,
.drawer-images::-webkit-scrollbar-track {
    background: transparent;
}
.drawer-content::-webkit-scrollbar-thumb,
.drawer-images::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}

.drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.drawer-list li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-left: 2rem;
}
.drawer-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.2rem;
}
.drawer-list h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.drawer-list p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}
/* Elementy widoczne tylko w danym języku */
html[lang=en] [data-show-lang="pl"] { display: none !important; }
html[lang=pl] [data-show-lang="en"] { display: none !important; }

/* ========================================= */
/* Drawer — sekcja NOWOŚCI                   */
/* ========================================= */
.drawer-news {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}
.drawer-news-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 1.25rem;
}
.drawer-news-header::before {
    content: '+';
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}
.drawer-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.drawer-news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}
.drawer-news-item:hover {
    border-color: #10b981;
}
.drawer-news-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(16,185,129,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}
.drawer-news-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.drawer-news-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.drawer-news-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.drawer-news-badge {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    background: #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.drawer-news-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

/* ========================================= */
/* Footer, Back to Top, & Cookies */
/* ========================================= */

.site-footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #3B82F6;
    transform: translateY(-5px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--text-primary);
    color: #F8FAFC;
    padding: 1.5rem 4%;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}
.cookie-content a {
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    font-weight: 700;
    transition: var(--transition);
}
.cookie-content a:hover {
    border-bottom-color: #FFFFFF;
}
.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.btn-cookie {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid #FFFFFF;
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-cookie:hover {
    background: #E2E8F0;
}
.btn-cookie-outline {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.3);
}
.btn-cookie-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #FFFFFF;
}

/* Cookie Modal */
#cookieModal {
    z-index: 3000; /* Musi być wyżej niż pasek ciasteczek (2000) */
}
.cookie-policy-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--bg-card);
    z-index: 1001;
    padding: 4rem 3.5rem;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transform: translateY(20px) scale(0.98);
    transition: var(--transition);
}
.modal.active .cookie-policy-container {
    transform: translateY(0) scale(1);
}
.cookie-policy-container h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
.cookie-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500;
}
.cookie-text p {
    margin-bottom: 1.5rem;
}
.cookie-text strong {
    color: var(--text-primary);
    font-weight: 700;
}
.cookie-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.cookie-text a {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: underline;
}
/* ========================================= */
/* Responsive Breakpoints */
/* ========================================= */

@media (max-width: 1300px) {
    .header-top-bar {
        justify-content: center;
        margin-bottom: 3rem;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .tile.row-layout {
        grid-template-columns: 1fr;
    }
    .tile-image-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        aspect-ratio: 21 / 9;
        min-height: auto;
    }
    .tile-info-col {
        padding: 3rem;
    }
    .tile-tech-col {
        padding: 3rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3rem;
    }
    .tech-section {
        flex: 1;
        min-width: 300px;
    }
    .bottom-actions {
        flex: 1;
        min-width: 250px;
        padding-top: 0;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .modal-layout {
        flex-direction: column;
    }
    .modal-sidebar {
        width: 100%;
        height: 180px;
        flex-direction: row;
        padding: 1.5rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
        align-items: center;
    }
    .thumb-item {
        width: 140px;
        height: 100%;
    }
    .btn-close {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    /* Drawer Responsive */
    .drawer-body {
        flex-direction: column;
        overflow-y: auto;
    }
    .drawer-content, .drawer-images {
        overflow-y: visible;
        width: 100%;
    }
    .drawer-images {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
        gap: 1.5rem;
    }
    .drawer-images img {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .app-jump-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        margin-bottom: 0;
        width: 100%;
    }
    .app-jump-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.6rem;
        padding: 0.6rem 0.25rem;
        white-space: normal;
        word-break: break-word;
        letter-spacing: 0.03em;
        line-height: 1.3;
        min-width: 0;
    }
    .tech-section {
        min-width: 0;
        width: 100%;
    }
    .container {
        padding: 0;
    }
    .app-jump-nav {
        padding: 0 1.5rem;
    }
    .portfolio-list {
        padding: 0 0 4rem;
        gap: 3rem;
    }
    .site-header.centered-header {
        padding: 2rem 1.5rem 3rem;
    }
    .tile.row-layout {
        gap: 0;
        border-left: none;
        border-right: none;
    }
    .tile-image-col {
        aspect-ratio: 4 / 3;
    }
    .tile-info-col {
        padding: 2rem 1.5rem;
    }
    .tile-tech-col {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 2rem;
    }
    .bottom-actions {
        width: 100%;
        flex: none; /* Usuwa wymuszone 300px wysokości z większych ekranów */
        justify-content: flex-start;
        margin-top: 0;
    }
    .huge-logo {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .huge-logo .brand-suffix {
        margin-left: 0.4rem;
        margin-top: 0;
    }
    
    .drawer-images {
        display: none; /* Ukryj zdjęcia na małych telefonach by zaoszczędzić miejsce dla tekstu */
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 2rem;
    }
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    .btn-cookie {
        width: 100%;
    }
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
    .cookie-policy-container {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .app-meta h2 {
        font-size: 2rem;
    }
    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
    }
    .features-list li {
        font-size: 0.95rem;
    }
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
    }
    .btn {
        padding: 1.1rem;
        font-size: 0.95rem;
    }
}
