@font-face {
    font-family: 'Graphik';
    src: url('https://www.finntack.com/m1/production/css/fonts/Graphik-Regular.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Graphik';
    src: url('https://www.finntack.com/m1/production/css/fonts/Graphik-Semibold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root {
    --red: #e1142d;
    --blue: #0032a0;
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f4f4f4;
    --gray: #c4c4c4;
}

body, span, h1, h2, h3, h4, p, a, button, input {
    font-family: 'Graphik', sans-serif !important;
}

body, h1, h2, h3, h4, p, th, td, input, a, div {
    color: #000;
}


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

.visually-hidden {
    position: absolute;
    z-index: -1;
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    margin: 0 -1px -1px 0;
    overflow: hidden;
    padding: 0;
    display: block;
}

body {
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;

}




header {
    text-align: center;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 60rem;

    @media screen and (max-width: 25rem) {
        padding: 1rem 0 0;
    }

    svg {
        width: 100%;
        height: auto;
        max-width: 600px;

        @media screen and (max-width: 25rem) {
            max-width: 50vw;
        }
    }

}

main {
    width: 100%;
    max-width: 60rem;
    padding: 0 2rem 2rem;

    @media screen and (max-width: 40rem) {
        padding: 1rem;
    }

    @media screen and (max-width: 25rem) {
        padding: 0.5rem;
        padding-top: 0;

    }
}


h1 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 2rem;


    @media screen and (max-width: 40rem) {

        h1 {
            font-size: 1.5rem;
            margin: 0 0 1rem;
        }
    }

    @media screen and (max-width: 25rem) {
        font-size: 1.25rem;
        margin: 0 0 1rem;
    }
}


ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem 1rem;
    background: var(--light-gray);
    padding: 2rem 1rem;
    border-radius: 0.75rem;
    border: 3px solid var(--red);
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    transition: 0.3s;

    @media screen and (max-width: 40rem) {
        padding: 1rem 0.5rem;
        grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
        gap: 1rem 0.5rem;
    }

    @media screen and (max-width: 25rem) {
        padding: 0.5rem 0.25rem;
        grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
        gap: 0.5rem 0.25rem;
    }

}


li {

    a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #202416;
        text-decoration: none;
        border-radius: 0.5rem;
        padding: 1rem;

        @media screen and (max-width: 40rem) {
            padding: 0.5rem;
        }

        &:hover,
        &:focus-visible {
            /*background: var(--white);*/
            box-shadow: 0 0 2rem 1rem #fff inset;
            outline: 2px solid var(--blue);
            p {
                /*text-decoration: underline;*/
                opacity: 1;
            }

            h2 {
                color: black;
            }
        }

        &:active {
            background: var(--gray);
            box-shadow: none;
        }

    }

    img {
        display: block;
        width: 64px;
        height: 64px;

        @media screen and (max-width: 25rem) {
            width: 48px;
            height: 48px;
        }
    }

    h2 {
        font-size: 1rem;
        font-weight: 700;
        text-align: center;

        @media screen and (max-width: 40rem) {
            font-size: 0.875rem;
        }
    }

    p {
        font-size: 0.75rem;
        font-weight: 400;
        opacity: 0.7;
        padding: 0.5rem 0 0.5rem;
        word-spacing: 0.25em;
        text-align: center;

        @media screen and (max-width: 40rem) {
            font-size: 0.625rem;
        }

        @media screen and (max-width: 25rem) {
            font-size: 0.625rem;
        }

    }
}

.b2b-b2c-wrapper {
    text-align: center;
    padding: 1rem;

    a {
        color: var(--blue);
        padding: 0.5rem;
        border-radius: 0.5rem;

        &:hover {
            color: var(--red);
        }

        &:active {
            color: var(--black);
        }
    }
}

footer {
    font-size: 0.75rem;
    opacity: 0.7;
    padding: 0.5rem 2rem 2rem;
}


