﻿.kontakty {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.kontakty__cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex: 1 1 auto;
    gap: 1rem;
    padding: 1rem 0;
}

.kontakty__card {
    position: relative;
    flex: 0 0 348px;
    width: 348px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-sizing: border-box;
}

.kontakty__etykieta {
    padding: .75rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    background: #edf1f5;
    text-align: center;
}

.kontakty__obraz-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1.5rem .75rem;
}

.kontakty__obraz {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.kontakty__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.kontakty__nazwa {
    margin: 0 0 .4rem;
    font-size: 1.4rem;
    line-height: 1.25;
    text-align: center;
}

.kontakty__funkcja {
    margin-bottom: 1.25rem;
    font-size: .95rem;
    line-height: 1.4;
    opacity: .75;
    text-align: center;
    color: var(--cms-primary);
}

.kontakty__dana {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    width: 100%;
    margin-bottom: .65rem;
    text-align: center;
    overflow-wrap: anywhere;
}

    .kontakty__dana a {
        color: inherit;
        text-decoration: underline;
    }

    .kontakty__dana .bi {
        flex: 0 0 auto;
        font-size: 1.1rem;
        line-height: 1;
    }

.kontakty__opis {
    width: 100%;
    margin-top: 1rem;
    font-size: .95rem;
    line-height: 1.5;
    text-align: center;
}

.kontakty__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .5rem;
}

.kontakty__navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.kontakty__dots {
    display: flex;
    gap: .5rem;
}

.kontakty__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid #555;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

    .kontakty__dot.is-active {
        background: #222;
    }

.kontakty__inactive-badge {
    position: absolute;
    z-index: 2;
    top: .75rem;
    right: .75rem;
    padding: .25rem .5rem;
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
}

.obszar-podgladu.tablet .kontakty__cards {
    max-width: calc(2 * 360px + 1.5rem);
    margin-inline: auto;
}

@media (max-width: 1180px) {
    .kontakty__cards {
        max-width: calc(2 * 360px + 1.5rem);
        margin-inline: auto;
    }
}

@media (max-width: 780px) {
    .kontakty__cards {
        max-width: 360px;
        margin-inline: auto;
    }

    .kontakty__card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 360px;
    }
}
/* --------------------------------- */
.kontakty--export {
    --kontakty-visible: 3;
    --kontakty-card: 348px;
    --kontakty-gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1135px) {
    .kontakty--export {
        --kontakty-visible: 2;
    }
}

@media (max-width: 768px) {
    .kontakty--export {
        --kontakty-visible: 1;
    }
}

.kontakty__viewport {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(var(--kontakty-visible) * var(--kontakty-card) + (var(--kontakty-visible) - 1) * var(--kontakty-gap));
    min-width: 0;
    margin-inline: auto;
    overflow: hidden;
}

.kontakty__track {
    display: flex;
    gap: var(--kontakty-gap);
    min-width: 0;
    transition: transform 280ms ease;
}

.kontakty--export .kontakty__card {
    box-sizing: border-box;
    flex: 0 0 var(--kontakty-card);
    width: var(--kontakty-card);
    max-width: var(--kontakty-card);
}

.kontakty__arrow {
    width: 36px;
    height: 36px;
    border: 1px solid #555;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

    .kontakty__arrow:disabled {
        opacity: .35;
        cursor: default;
    }