* {
    /* outline: 1px dotted red; */

    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-1: #33343F;
    --color-2: #8C8EA8;
    --color-3: #F8E632;
    --color-4: #f0f1fb;
    --color-5: #FFFFFF;
    --wrapper-margin: 1cqw;
}

body {
    padding-inline: 3vw;
    background-color: var(--color-4);
}

/* ****************************************** */

h1,
h2 {
    font-family: "Playfair Display", serif;
    font-style: normal;
}

h3,
h6,
p {
    font-family: "Inter", sans-serif;
    font-style: normal;
}

h1 {
    font-size: 10cqw;
}

h2 {
    /* font-size: 5.5cqw; */
    font-size: 4.2cqw;
}

h3 {

    /* font-size: 6.5cqw; */
    font-size: 5cqw;
    font-weight: 700;
    letter-spacing: 0.4cqw;
    line-height: 1;
    margin: 0;
    margin-top: 5%;
}

h6 {
    font-size: 2cqw;
}

p {
    font-size: 1.5cqw;
}

/* ****************************************** */

[class^="h-size-"] {
    height: auto;
}

section {
    max-width: 1440px;
    /* max-width: 1920px; */
    margin: 0 auto;
    margin-block: min(100px, 10cqw);
}

section .wrapper {
    width: 100%;
    container-type: inline-size;
    display: grid;

    & [class^="box-"] {
        margin-inline: var(--wrapper-margin);
    }
}

section a:hover {
    text-decoration: none;
}

.radius {
    border-radius: 2cqw;
}

.vert-align {
    display: flex;
    flex-direction: column;
    gap: 1cqw;
}

.vert-center {
    justify-content: center;
}

.vert-end {
    justify-content: end;
    padding-bottom: 2cqw;
}

.bck-gray {
    background-color: var(--color-1);
}

.bck-white {
    background-color: var(--color-5);
}

.brd-yellow {
    border: 3px solid var(--color-3);
}

.fnt-white {
    color: var(--color-5);
}

.fnt-yellow {
    color: var(--color-3);
}

[class^="box-"] {
    padding-inline: 2cqw;
}

.p-inline-0,
div:has(> img) {
    padding-inline: 0px !important;
    overflow: hidden;
}

div:has(> img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

[class^="box-"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-on {
    display: none;
}

.mobile-off {
    display: flex;
}

/* ****************************************** */

.button-wrapper {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1cqw;
    font-size: 1.5cqw;
}

.button-wrapper>* {
    height: 4cqw;
    border-radius: 1.5cqw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wide {
    /* max-width: 190px; */
    color: var(--color-5);
    background-color: var(--color-1);
    padding-inline: 2.5cqw;
    white-space: nowrap;
    /* padding-bottom: 1%; */
}

.button-narrow {
    /* max-width: 57px; */
    background-color: var(--color-3);
    aspect-ratio: 1;
    font-size: 180%;

    & img {
        width: 50%;
        height: 50%;
    }
}

/* ****************************************** */

section.hero {
    container-type: inline-size;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--color-1);
    margin-top: 10vh;

    .video-wrapper-desktop>* {
        flex: 1 1 50%;


    }

    .video-wrapper-desktop {
        position: relative;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        /* gap: 5vw; */

        & .logo {
            position: absolute;
            inset: 0 auto auto 0;

            & img {
                width: min(230px, 15cqw);
            }
        }

        .title {
            width: fit-content;
        }

        h1 span {
            display: inline-block;
            color: var(--color-2);
        }

        .video-container {
            display: flex;
            justify-content: center;
            width: auto;
            height: min(1000px, 80vh);

            & video {
                width: min-content;
                height: 100%;
                object-fit: contain;
            }
        }
    }
}

section.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2cqw;

    & .divider {
        width: 30%;
        height: .5rem;
        border-radius: 32px;
        background-color: var(--color-1);
    }

    h2 {
        font-size: min(70px, 5.5cqw);
        width: 70%;
        text-align: center;
    }

    p {
        max-width: 860px;
        font-size: min(24px, 1.5cqw);
        text-align: center;
    }
}

section.fond .box-1 img {
    height: auto;
    margin-top: 100px;
}

section.fond .wrapper,
section.budget .wrapper {
    grid-template-columns: 75% 25%;

    & [class^="box-"] {
        height: 32cqw;
    }
}

section.krediti .wrapper {
    grid-template-columns: 25% 50% 25%;

    & [class^="box-"] {
        height: 32cqw;
    }
}


section.statistika .wrapper {
    grid-template-columns: 33% 33% 33%;

    & [class^="box-"] {
        /* height: 15cqw; */
        padding-inline: 2cqw;
        padding-block: 1cqw;
    }

    .box-1 {
        order: 1;
    }

    .box-2 {
        order: 2;
    }

    .box-3 {
        order: 3;
    }

    .box-4 {
        order: 4;
    }
}

section.mirovine .wrapper {
    grid-template-columns: 25% 50% 25%;

    & [class^="box-"] {
        height: 32cqw;
    }
}

section.investiranje .wrapper {
    grid-template-columns: 25% 75%;

    & [class^="box-"] {
        height: 32cqw;
    }

    .box-1 {
        order: 1;
    }

    .box-2 {
        order: 2;
    }
}

section.quiz .wrapper {
    /* grid-template-columns: 25% 75%; */

    & [class^="box-"] {
        height: 15cqw;
    }
}

/* ************************************************* */
/* ************************************************* */

/* @media (max-width: 768px) { */
@media (max-width: 960px) {

    h2 {
        font-size: 10cqw;
    }

    h6 {
        font-size: 4cqw;
    }

    /* ************************************************* */

    section {
        max-width: 680px;
    }

    .mobile-on {
        display: flex;
    }

    .mobile-off {
        display: none;
    }

    .h-size-1 {
        height: 65cqw !important;
    }

    .h-size-2 {
        height: 25cqw !important;
    }

    .h-size-3 {
        /* height: 31cqw !important; */
        height: fit-content !important;

        & h2 {
            line-height: 0.9;
            margin-bottom: 3cqw;
        }
    }

    .h-size-4 {
        height: 55cqw !important;
    }

    .radius {
        border-radius: 4cqw;
    }

    section .wrapper {

        & [class^="box-"] {
            margin-inline: calc(var(--wrapper-margin)*2);
        }

    }

    /* ************************************************* */

    .button-wrapper {
        gap: 2cqw;
        font-size: min(21px, 4cqw);
        line-height: min(58px, 9cqw);
    }

    .button-wrapper>* {
        height: min(58px, 9cqw);
        border-radius: 3cqw;
    }

    .button-wide {
        padding-inline: min(34px, 5.5cqw);
    }

    .vert-end-mob {
        justify-content: end;
    }

    /* ************************************************* */

    section.hero {
        display: block;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        margin-top: 0;
        margin-inline: -3vw;

        & .video-wrapper-mobile {
            position: relative;
            display: block;
            width: 100%;
            height: 100%;
            background-color: #000;

            & .down-scroll-arrows {
                width: 50px;
                height: 50px;
                position: absolute;
                display: inline-block;
                bottom: 1%;
                left: 50%;
                transform: translateX(-50%);
                background-color: #ffffffb3;
                border-radius: 50%;

                & video {
                    width: 100%;
                    height: auto;
                }
            }

            .rba-video {
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }
    }

    section.intro {

        & h2 {
            font-size: min(8.5cqw, 60px);
            width: 80%;
        }

        p {
            font-size: 3.2cqw;
            max-width: 100%;
        }
    }

    section.fond .box-1 img {
    height: 100%;
    margin-top: 0;
    }

    section.fond .wrapper,
    section.budget .wrapper {
        grid-template-columns: 100%;

        &>[class^="box-"]:last-child {
            /* grid-column: 1 / -1; */
            margin-top: calc(var(--wrapper-margin)*5);
        }
    }

    section.krediti .wrapper {
        grid-template-columns: 50% 50%;

        &>[class^="box-"]:last-child {
            grid-column: 1 / -1;
            margin-top: calc(var(--wrapper-margin)*5);
            flex-direction: row;
            align-items: center;
            justify-content: start;
            gap: 3cqw;
            padding-bottom: 0;
            padding-inline: 1rem;

            & h3 {
                font-size: 10cqw;
                margin: 0;
            }

            p {
                font-size: 4cqw;
                margin: 0;
            }
        }
    }



    section.statistika .wrapper {
        grid-template-columns: 50% 50%;
        row-gap: calc(var(--wrapper-margin)*5);

        & h3 {
            /* font-size: 15cqw; */
            font-size: 12cqw;
        }

        p {
            font-size: 4cqw;
        }

        .box-1 {
            order: 3;
        }

        .box-3 {
            order: 1;
        }
    }

    section.mirovine .wrapper {
        grid-template-columns: 50% 50%;
    }

    section.investiranje .wrapper {
        grid-template-columns: 100%;

        .box-1 {
            order: 21;
            margin-top: calc(var(--wrapper-margin)*5);
        }

        .box-2 {
            order: 1;
        }
    }
}