/* =================================================================
   TryVinci – Social Proof (Poznaj nasze działania)
   ================================================================= */
.tv-social {
    background: #09090b;
    padding: 6rem 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    border-top: 1px solid #18181b;
    color: #fff;
}
@media (min-width: 768px) { .tv-social { padding: 8rem 0; } }

.tv-social__header { margin-bottom: 3rem; }
.tv-social__header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}
.tv-social__subtext {
    color: #a1a1aa;
    font-size: 1.125rem;
    font-weight: 700;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.5;
}

.tv-social__carousel-wrap {
    position: relative;
    max-width: 87.5rem;
    margin: 0 auto;
    overflow: visible;
}

/* Track */
.tv-social__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.5rem 2rem;
    cursor: grab;
}
@media (min-width: 1024px) {
    .tv-social__track { gap: 1.5rem; padding: 1rem 5rem 2rem; }
}
.tv-social__track.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }

/* Cards */
.tv-social__card {
    flex-shrink: 0;
    width: 85vw;
    height: 23.75rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #27272a;
    border: 1px solid #3f3f46;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    transition: border-color .2s, box-shadow .2s;
    scroll-snap-align: center;
}
@media (min-width: 768px) {
    .tv-social__card { width: 28.125rem; height: 26.25rem; border-radius: 2rem; }
}
@media (min-width: 1024px) {
    .tv-social__card { width: 31.25rem; }
}
.tv-social__card:hover {
    border-color: #71717a;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

/* BG image */
.tv-social__card-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.tv-social__card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}
.tv-social__card:hover .tv-social__card-bg { transform: scale(1.1); }

/* Fake FB header */
.tv-social__card-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
    pointer-events: none;
}
@media (min-width: 768px) { .tv-social__card-header { padding: 1.25rem 1.5rem; } }
.tv-social__card-author { display: flex; align-items: center; gap: 0.625rem; }
@media (min-width: 768px) { .tv-social__card-author { gap: 0.75rem; } }
.tv-social__card-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #EF6A23;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .tv-social__card-avatar { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
}
.tv-social__card-name {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
@media (min-width: 768px) { .tv-social__card-name { font-size: 0.875rem; } }
.tv-social__card-date {
    display: block;
    font-size: 0.625rem;
    color: rgba(255,255,255,.8);
}
@media (min-width: 768px) { .tv-social__card-date { font-size: 0.75rem; } }

/* Gradient + body */
.tv-social__card-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.2), transparent);
    z-index: 10;
    transition: background .2s;
}
.tv-social__card:hover .tv-social__card-gradient {
    background: linear-gradient(to top, #000, rgba(0,0,0,.2), transparent);
}

.tv-social__card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 1.5rem;
    z-index: 20;
    pointer-events: none;
}
.tv-social__card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
    padding-right: 1rem;
}
@media (min-width: 768px) { .tv-social__card-title { font-size: 1.25rem; } }
.tv-social__card-desc {
    font-size: 0.875rem;
    color: #d4d4d8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
@media (min-width: 768px) { .tv-social__card-desc { font-size: 1rem; } }

.tv-social__card-likes {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,.15);
}
.tv-social__like-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tv-social__card-likes span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d4d4d8;
}
@media (min-width: 768px) { .tv-social__card-likes span { font-size: 0.875rem; } }

/* Controls: dots + arrows */
.tv-social__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2rem;   /* content(karty) → rząd kropek = X = 32px (kropki na środku; nawigacja pod kartami) */
    padding: 0 1.5rem;
}
/* Dots – inherit shared .tv-carousel-dots, override colours for dark bg */
.tv-social .tv-carousel-dots { justify-content: center; }
.tv-social .tv-carousel-dot {
    background: rgba(255,255,255,.3);
}
.tv-social .tv-carousel-dot.is-active {
    background: #EF6A23;
    width: 2rem;
}
.tv-social__arrows {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;   /* kropki → strzałki = X = 32px */
}
.tv-social__arrow--dark {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    color: #fff;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.tv-social__arrow--dark:hover {
    background: rgba(255,255,255,.18);
}
