﻿.przycisk-preview {
    margin-top: 8px;
}

.kierunek-dialog {
    max-width: 95vw;
}

    .kierunek-dialog .rz-dialog-content {
        max-height: 90vh;
        overflow-y: auto;
    }


/*---*/
.kierunek-info {
    width: 100%;
    max-width: 1920px;
    max-height: 710px;
    margin-inline: auto;
    padding: 46px 0px;
    box-sizing: border-box;
    /*background: #ff6a00;*/
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.kierunek-info__layout {
    --main-width: 961px;
    --details-width: 525px;
    --details-overlap: 190px;
    display: grid;
    /*
        Kolumna 1: elastyczna część białego panelu
        Kolumna 2: wspólne nakładanie 190px
        Kolumna 3: pozostała część czarnego panelu
    */
    grid-template-columns: minmax(0, 1fr) var(--details-overlap) calc(var(--details-width) - var(--details-overlap));
    grid-template-rows: 548px;
    width: 100%;
    max-width: 1296px;
    height: 548px;
    margin-inline: auto;
    box-sizing: border-box;
}

.kierunek-info__main {
    grid-column: 1 / 3;
    grid-row: 1;
    min-width: 0;
    max-width: 961px;
    height: 468px;
    background: #fff;
    padding: 40px 40px;
    border-radius: 8px;
    display: flex;
}

.kierunek-info__content {
    width: calc(100% - var(--details-overlap) - 24px);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.kierunek-info__faculty {
    margin: 0 0 24px;
}

.kierunek-info__title {
    margin: 0 0 20px;
}

.kierunek-info__lead {
    /*    margin: 0 0 12px;*/
    line-height: 120%;
}

    .kierunek-info__lead p {
        margin: 0 !important;
        padding: 10px 0 !important;
    }

.kierunek-info__actions {
    margin-top: 24px;
}

.kierunek-info__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kierunek-info__aside {
    grid-column: 2 / 4;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 548px;
}

.kierunek-info__details {
    position: relative;
    width: 100%;
    height: 313px;
    background: #191d35;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

    .kierunek-info__details::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 5px;
        background: var(--faculty-color);
    }
/* =========================================================
   FLAGI KIERUNKU
   ========================================================= */

.kierunek-info__flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 6px;
}

.kierunek-info__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    padding: 0 14px;
    box-sizing: border-box;
    background-color: var(--flag-background);
    color: var(--flag-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border-radius: 8px;
}
@media (max-width: 1295px) and (min-width: 1101px) {

    .kierunek-info__layout {
        --details-width: 40.51%;
        --details-overlap: 190px;
    }

    .kierunek-info__main {
        max-width: none;
    }

    .kierunek-info__content {
        width: calc(100% - var(--details-overlap) + 20px);
    }
}

@media (max-width: 1100px) {
    .kierunek-info {
        max-height: 900px;
    }
    .kierunek-info__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        width: 100%;
        height: auto;
    }

    .kierunek-info__main {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: auto;
        min-height: 360px;
        border-radius: 0px;
        padding: 40px 0px;
        max-width: 100%;
    }

        .kierunek-info__main .blokTekst {
            width: 100%;
        }
    .kierunek-info__content {
        width: 100%;
        margin: 0 40px;
    }
    .kierunek-info__aside {
        grid-column: 1;
        grid-row: 2;
        display: block;
        width: 100%;
        height: auto;
    }

    .kierunek-info__details {
        width: 100%;
        height: 313px;
        border-radius: 0 0 8px 8px;
    }
}

.kierunek-info__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 1.5px solid #000;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-radius: 8px;
}

.kierunek-info__button--secondary {
    background: #fff;
    color: #000;
}

    .kierunek-info__button--secondary:hover {
        /*        background: #000;
        color: #fff;*/
        box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    }

.kierunek-info__button--primary {
    background: var(--cms-primary);
    color: #fff;
    border: 0;
}

    .kierunek-info__button--primary:hover {
        /*        background: #000;
        color: #fff;*/
        box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    }

.test {
    width: 100%;
    display: grid;
    max-width: 445px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    column-gap: clamp(16px, 3vw, 40px);
    row-gap: 28px;
    place-content: center;
    margin: 0 auto;
}

.kierunek-info__details {
    display: grid;
    /*    grid-template-columns: repeat(2, minmax(0, 1fr));*/
    /*    column-gap: 40px;
    row-gap: 28px;*/
    /*place-content: center;*/
    padding-left: max(12px, 6%);
    padding-right: max(12px, 6%);
    width: 100%;
}

.kierunek-info__detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.kierunek-info__details-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
    color: #fff;
}

.kierunek-info__detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kierunek-info__detail-label {
    font-size: 14px;
    line-height: 1.3;
    opacity: 1;
    color: #ADB5BD;
}

.kierunek-info__detail-value {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}
