:root
{
    --bg: #141414;
    --font: #f5f6fa;
    --primary: #FBC531;
    --secondary: #b1b2b9;
    --accent: #E1B12C;
}

*
{
    margin: 0;
    padding: 0;
}

html
{
    scroll-behavior: smooth;
}

body
{
    font-family: 'Roboto', sans-serif;
    background-color: rgba(20, 20, 20, 1);
    background-image: linear-gradient(90deg, rgba(20, 20, 20, 1) 0%, rgba(30, 30, 30, 1) 100%);
    color: var(--font);
}

a
{
    color: inherit;
    text-decoration: none;
}

.section-cont
{
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 1rem;
}

.nav-active
{
    border-bottom: 2px solid var(--primary);
}

.primary
{
    color: var(--primary);
}

.kreska
{
    width: 15rem;
    height: 0.15rem;
    background-color: var(--primary);
    margin-top: 1rem;
}

.margin-0
{
    margin: 0 !important;
}

.padding-5rem
{
    padding: 5rem 0 !important;
}

.open
{
    display: none;
    cursor: pointer;
    font-size: 1.45rem;
}

.close
{
    display: none;
    cursor: pointer;
    font-size: 1.45rem;
    position: absolute;
}

/*** NAV ***/

header
{
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
}

nav
{
    max-width: 1400px;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 5rem;
}

.logo > img
{
    height: 5rem;
    width: auto;
    display: none;
}

.logo > span
{
    font-size: 1.45rem;
    font-weight: bold;
}

nav > ol
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    list-style-type: none;
}

nav > ol > li
{
    font-size: 1.2rem;
}

nav > ol > li > a
{
    padding: 0.75rem 1.5rem;
    transition: 0.5s;
}

nav > ol > li:not(:last-child) > a:hover:not(.nav-active)
{
    color: var(--primary);
}

nav > ol > li:last-child > a
{
    border: 1px solid var(--accent);
    position: relative;
    padding: 0.75rem 2rem;
}

nav > ol > li:last-child > a::before
{
    content: '';
    transition: 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 0;
    background-color: var(--accent);
}

nav > ol > li:last-child > a:hover::before
{
    width: 100%;
}

nav > ol > li:last-child > a:active::before
{
    background-color: var(--primary);
}

/*** TOP ***/

#top
{
    width: 100%;
    height: calc(100vh - 6rem);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6rem;
}

.top-cont
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-text
{
    width: 50%;
}

.top-text > h1
{
    font-size: 4rem;
    text-transform: uppercase;
}

.top-words
{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 2rem;
}

.top-words > h2
{
    margin-top: 2rem;
    font-size: 1.6rem;
    color: var(--secondary);
    text-transform: uppercase;
}

.top-text > p
{
    margin-top: 2rem;
    color: var(--secondary);
    font-size: 1.1rem;
    text-align: justify;
}

.top-buttons
{
    margin-top: 2.5rem;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 2rem;
    font-size: 1.1rem;
}

.top-buttons > a
{
    padding: 1rem 3.5rem;
    width: max-content;
    transition: 0.5s;
    font-weight: bolder;
}

.top-buttons > a:first-child
{
    border: 1px solid var(--primary);
    background-color: var(--primary);
    color: var(--bg);
}

.top-buttons > a:first-child:hover
{
    background-color: var(--accent);
    border: 1px solid var(--accent);
}

.top-buttons > a:last-child
{
    border: 1px solid var(--primary);
    color: var(--primary);
}

.top-buttons > a:last-child:hover
{
    color: var(--font);
}

.top-image
{
    width: 50%;
    display: flex;
    justify-content: right;
    align-items: center;
}

.top-image > img
{
    width: 75%;
    height: auto;
    transform: scale(1.1);
    margin-right: 1rem;
}

/*** ABOUT ***/

#about
{
    width: 100%;
    margin-top: 7rem;
}

#about h1
{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#about h2
{
    font-size: 3.5rem;
    margin-bottom: 4.5rem;
}

.about-grid
{
    display: grid;
    grid-template-columns: repeat(3, calc(33% - 1.33rem));
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
}

.grid-item
{
    border-bottom: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 2rem 3rem;
    height: 15rem;
    max-height: 15rem;
    background: rgba(0, 0, 0, 0.1);
}

.grid-item > h3
{
    font-size: 1.7rem;
}

.grid-item > p
{
    color: var(--secondary);
    font-size: 1.1rem;
    word-spacing: 0.2rem;
    line-height: 1.5rem;
}

.grid-item > img
{
    width: 17%;
    height: auto;
}

.img-smaller
{
    width: 12.5% !important;
    height: auto;
}

.img-bigger
{
    width: 20% !important;
    height: auto;
}

/*** O NAS ***/

#o-nas
{
    width: 100%;
    margin-top: 12rem;
}

.o-nas-cont
{
    display: flex;
    justify-content: center;
}

.o-nas-text
{
    width: 50%;
}

.o-nas-text > h1
{
    margin-top: 3rem;
    font-size: 3.5rem;
    text-transform: uppercase;
}

.o-nas-text > p
{
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.o-nas-text > a
{
    width: max-content;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border: 1px solid var(--accent);
    transition: 0.5s;
    position: relative;
}

.o-nas-text > a::before
{
    content: '';
    transition: 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 0;
    background-color: var(--accent);
}

.o-nas-text > a:hover::before
{
    width: 100%;
}

.o-nas-text > a:active::before
{
    background-color: var(--primary);
}

.o-nas-image
{
    width: 50%;
    display: flex;
    justify-content: right;
    align-items: center;
}

.o-nas-image > img
{
    width: 40%;
    height: auto;
    margin-right: 5rem;
}

/*** CYTAT ***/

#cytat
{
    width: 100%;
    background-color: var(--bg);
    padding: 5rem 0;
    margin-top: 5rem;
}

.cytat-cont
{
    max-width: 1040px;
    width: 100% - 5rem;
    padding: 2.5rem;
    margin: 0 auto;
    position: relative;
}

.first-quote
{
    position: absolute;
    top: 0rem;
    left: 0rem;
    font-size: 4rem;
    color: var(--primary);
}

.last-quote
{
    position: absolute;
    bottom: 0rem;
    right: 0rem;
    font-size: 4rem;
    color: var(--primary);
}

.cytat-text-img
{
    width: 100%;
    height: 17rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 100;
}

.cytat-img
{
    flex: 35%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.cytat-img > img
{
    height: 100%;
    width: auto;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
}

.cytat-text
{
    flex: 65%;
    display: flex;
    flex-direction: column;
}

.cytat-text > p
{
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author
{
    font-size: 1.4rem;
    font-weight: bolder;
}

.under-author
{
    font-size: 1rem;
    margin-top: 0.3rem;
}

/*** KONTAKT ***/

#kontakt
{
    width: 100%;
    margin: 10rem 0;
}

.kontakt-cont
{
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.kontakt-text
{
    flex: 60%;
    display: flex;
    flex-direction: column;
}

.kontakt-text > h1
{
    font-size: 3.5rem;
    text-transform: uppercase;
}

.kontakt-text > p
{
    font-size: 1.3rem;
    margin-top: 1.2rem;
    color: var(--secondary);
}

.kontakt-icons
{
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.kontakt-icon
{
    display: flex;
    justify-content: left;
    align-items: center;
    height: 4rem;
}

.kontakt-icon-img
{
    flex: 20%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.kontakt-icon-img > img
{
    height: 100%;
    width: auto;
    transition: 0.5s;
}

.kontakt-icon-img > img:hover
{
    transform: scale(1.2);
}

.kontakt-icon-text
{
    flex: 80%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kontakt-icon-text > span
{
    font-size: 1rem;
}

.kontakt-icon-text > a
{
    width: max-content;
    font-size: 1.2rem;
    font-weight: bolder;
}

.kontakt-image
{
    flex: 40%;
    display: flex;
    justify-content: right;
    align-items: center;
}

.kontakt-image > img
{
    width: 75%;
    margin-right: 5rem;
    transform: rotate(-15deg);
}

/*** STOPKA ***/

footer
{
    width: 100%;
    padding: 5rem 0 4rem 0;
    background-color: var(--bg);
}

.footer-section-nav
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo
{
    color: var(--secondary);
}

.footer-logo > a
{
    transition: 0.5s;
}

.footer-logo > a:hover
{
    color: var(--accent);
}

.footer-socjal-icons
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-socjal-icons > a > img
{
    width: auto;
    height: 2.5rem;
    padding: 0 0.5rem;
    transition: 0.5s;
}

.footer-socjal-icons > a > img:hover
{
    transform: scale(1.2);
}

ul
{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    gap: 1rem;
}

ul > li
{
   font-size: 1rem;
}

ul > li > a
{
    padding: 0.5rem;
    color: var(--secondary);
    transition: 0.5s;
}

ul > li > a:hover
{
    color: var(--font);
}

.web-author
{
    margin-top: 3.5rem;
    text-align: center;
    color: var(--font);
}

.web-author > a
{
    color: var(--accent);
    transition: 0.5s;
}

.web-author > a:hover
{
    color: var(--primary);
}

/*** O NAS STRONA ***/

#onas-section
{
    width: 100%;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg);
    padding-top: 6rem;
    text-align: center;
}

#onas-section > h1
{
    text-transform: uppercase;
    font-size: 6rem;
}

.onas-text
{
    width: 100%;
    padding: 5rem 0;
}

.onas-top-text
{
    margin: 0 auto;
    width: 95%;
}

.onas-top-text > h1
{
    font-size: 3rem;
}

.onas-text-text
{
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: 2rem;
    word-spacing: 0.1rem;
    line-height: 2rem;
}

.team
{
    width: 100%;
    margin-top: 7rem;
}

.team > h2
{
    font-size: 3rem;
    text-align: center;
}

.team-kafelki
{
    margin-top: 3.5rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.team-kafelek
{
    /* aspect-ratio: 4/5;
    height: max-content; */
    background-color: var(--bg);
    transition: 0.5s;
    border: 1px solid var(--bg);
}

.team-kafelek:hover
{
    border: 1px solid var(--primary);
}

.team-kafelek:hover img
{
    transform: scale(1.2);
}

.kafelek-img
{
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    overflow: hidden;
}

.kafelek-img > img
{
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    transition: 0.5s;
}

.kafelek-text
{
    width: 100% - 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.team-name
{
    font-size: 1.5rem;
    font-weight: bolder;
}

.team-function
{
    font-size: 1.1rem;
    color: var(--accent);
}

.onas-text-one
{
    margin-top: 10rem;
}

.onas-text-one > h2
{
    font-size: 3rem;
}

.onas-text-one-cont
{
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 2rem;
    margin-top: 4rem;
}

.onas-text-one-cont > p
{
    flex: 55%;
    padding-right: 2rem;
}

.onas-text-img
{
    flex: 45%;
}

.onas-text-img > img
{
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
}

.onas-text-one-cont-text
{
    flex: 55%;
    padding-left: 2rem;
}

/*** LINKI STRONA ***/

#linki
{
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg);
    padding-top: 6rem;
    text-align: center;
}

#linki > h1
{
    text-transform: uppercase;
    font-size: 6rem;
}

.links
{
    width: 100%;
    padding: 5rem 0;
}

.linki-grid
{
    position: relative;
    max-width: 1400px;
    aspect-ratio: 3/1;
    display: grid;
    grid-template-columns: repeat(4, calc(25% - 0.7rem));
    grid-template-rows: repeat(3, 33%);
    gap: 0.7rem;
}

.link
{
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: 0.5s;
    font-size: 1.2rem;
    text-align: center;
    height: 100%;
    overflow: hidden;
}

.link > img
{
    width: auto;
    height: 65%;
    transition: 0.5s;
}

.link > h3
{
    transition: 0.5s;
}

.link:hover
{
    background-color: var(--accent);
}

.link:hover > img
{
    transform: scale(1.2);
}

.link:hover > h3
{
    transform: scale(1.2);
}

.link-1
{
    grid-column: span 2;
    grid-row: span 1;
    font-size: 1.7rem;
}

.link-2
{
    grid-column: span 1;
    grid-row: span 1;
}

.link-3
{
    grid-column: span 1;
    grid-row: span 1;
}

.link-4
{
    grid-column: span 1;
    grid-row: span 2;
}

.link-5
{
    grid-column: span 1;
    grid-row: span 1;
}

.link-6
{
    grid-column: span 1;
    grid-row: span 1;
}

.link-7
{
    grid-column: span 1;
    grid-row: span 1;
}

.link-8
{
    grid-column: span 3;
    grid-row: span 1;
    font-size: 2rem;
}

/*** KONKURSY STRONA ***/

.konkursy-cont
{
    width: 50%;
}

.konkursy-cont > a
{
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--primary);
    font-size: 1.2rem;
    transition: 0.5s;
    border-radius: 2rem;
}

.konkursy-cont > a:hover
{
    background-color: var(--primary);
}

.konkursy-cont > a:nth-child(2n)
{
    border: 1px solid var(--secondary);
}

.konkursy-cont > a:nth-child(2n):hover
{
    background-color: var(--secondary);
}


.konkursy-cont > a:not(:first-child)
{
    margin-top: 2rem;
}



/*** RESPONSIVE ***/

@media only screen and (max-width: 1366px)
{
    .kontakt-image > img
    {
        width: 65%;
        margin-right: 5rem;
        transform: rotate(-15deg);
    }

    nav > ol
    {
        gap: 0.5rem;
    }
}

@media only screen and (max-width: 1200px)
{
    footer
    {
        padding: 4rem 0 3rem 0;
    }

    .web-author
    {
        margin-top: 3rem;
    }
}

@media only screen and (max-width: 1190px)
{
    .open
    {
        display: block;
    }
    
    .close
    {
        display: block;
        top: 2.25rem;
        right: 1rem;
    }

    nav > ol
    {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 2.5rem;
        z-index: 900;
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: black;
        transition: 0.7s ease-in-out;
        overflow: hidden;
    }

    nav > ol > li
    {
        font-size: 1.7rem;
    }

    nav > ol > li > a
    {
        padding: 0.75rem 2rem;
        transition: 0.5s;
    }

    .top-text > h1
    {
        font-size: 3rem;
    }

    .top-words > h2
    {
        font-size: 1.4rem;
    }

    .top-text > p
    {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    .top-buttons
    {
        gap: 2rem;
        font-size: 1rem;
    }

    .top-buttons > a
    {
        padding: 0.8rem 3rem;
    }

    #about
    {
        margin-top: 1rem;
    }

    #about h1
    {
        font-size: 1.4rem;
    }

    #about h2
    {
        font-size: 3rem;
    }

    /* .grid-item > h3
    {
        font-size: 1.5rem;
    }

    .grid-item > p
    {
        font-size: 1rem;
        word-spacing: 0.2rem;
        line-height: 1.1rem;
    }

    .grid-item > img
    {
        width: 20%;
    }

    .img-smaller
    {
        width: 15% !important;
    }

    .img-bigger
    {
        width: 25% !important;
    } */

    .o-nas-text > h1
    {
        font-size: 3rem;
    }

    .onas-text-text
    {
        font-size: 1.1rem;
        color: var(--secondary);
        margin-top: 2rem;
        word-spacing: 0.1rem;
        line-height: 1.7rem;
    }

    .o-nas-text > a
    {
        padding: 0.8rem 2.7rem;
        font-size: 1.1rem;
    }

    .kontakt-text > h1
    {
        font-size: 3rem;
    }

    .kontakt-text > p
    {
        font-size: 1.1rem;
    }

    .kontakt-icon
    {
        height: 3.5rem;
    }

    .kontakt-icon-text > span
    {
        font-size: 0.9rem;
    }

    .kontakt-icon-text > a
    {
        font-size: 1.1rem;
    }

    #onas-section > h1
    {
        font-size: 5rem;
    }

    #linki > h1
    {
        font-size: 5rem;
    }
}

@media only screen and (max-width: 1024px)
{
    .top-text
    {
        width: 65%;
    }

    .top-image
    {
        width: 35%;
    }

    .top-image > img
    {
        display: none;
    }

    .about-grid
    {
        grid-template-columns: repeat(2, calc(50% - 1rem));
    }

    .o-nas-text
    {
        width: 65%;
    }

    .o-nas-image
    {
        width: 35%;
    }

    .o-nas-image > img
    {
        display: none;
    }

    .cytat-text-img
    {
        height: 14rem;
    }

    .first-quote
    {
        display: none;
    }

    .last-quote
    {
        display: none;
    }

    .kontakt-text
    {
        flex: 65%;
    }

    .kontakt-image
    {
        flex: 35%;
    }

    .kontakt-image > img
    {
        display: none;
    }

    footer
    {
        padding: 2rem 0;
    }

    .footer-section-nav
    {
        display: flex;
        flex-direction: column-reverse;
        gap: 3rem;
    }

    #onas-section > h1
    {
        font-size: 4.5rem;
    }

    #linki > h1
    {
        font-size: 4.5rem;
    }

    .team-kafelki
    {
        grid-template-columns: repeat(3, 1fr);
    }

    .onas-text-one
    {
        margin-top: 5rem;
    }

    .onas-text-one-cont
    {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: stretch;
        margin-top: 2rem;
    }

    .flex-column-reverse
    {
        flex-direction: column-reverse !important;
    }

    .onas-text-one-cont-text
    {
        padding-left: 0rem;
    }

    .link
    {
        font-size: 1rem;
    }

    .link-1
    {
        grid-column: span 2;
        grid-row: span 1;
        font-size: 1.5rem;
    }

    .link-2
    {
        grid-column: span 1;
        grid-row: span 1;
    }

    .link-3
    {
        grid-column: span 1;
        grid-row: span 1;
    }

    .link-4
    {
        grid-column: span 1;
        grid-row: span 2;
    }

    .link-5
    {
        grid-column: span 1;
        grid-row: span 1;
    }

    .link-6
    {
        grid-column: span 1;
        grid-row: span 1;
    }

    .link-7
    {
        grid-column: span 1;
        grid-row: span 1;
    }

    .link-8
    {
        grid-column: span 3;
        grid-row: span 1;
        font-size: 1.7rem;
    }
}

@media only screen and (max-width: 768px)
{
    .top-text
    {
        width: 90%;
    }

    .top-words > h2
    {
        font-size: 1.2rem;
    }

    .top-buttons
    {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }

    .top-image
    {
        width: 10%;
    }

    .about-grid
    {
        grid-template-columns: repeat(1, 100%);
    }

    #o-nas
    {
        margin-top: 6rem;
    }

    .o-nas-text
    {
        width: 90%;
    }

    .o-nas-image
    {
        width: 10%;
    }

    .cytat-text-img
    {
        display: flex;
        flex-direction: column;
        padding: 3rem 0;
    }

    .kontakt-text
    {
        flex: 90%;
    }

    .kontakt-image
    {
        flex: 10%;
    }

    ul
    {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    ul > li
    {
    font-size: 1.2rem;
    }

    #onas-section > h1
    {
        font-size: 4rem;
    }

    #linki > h1
    {
        font-size: 4rem;
    }

    .team-kafelki
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .onas-text-one > h2
    {
        font-size: 2.7rem;
    }

    .onas-text-img > img
    {
        display: none;
    }

    .linki-grid
    {
        display: grid;
        grid-template-columns: repeat(3, calc(33% - 0.7rem));
        grid-template-rows: repeat(4, 25%);
        gap: 0.7rem;
    }

    .link
    {
        font-size: 0.9rem;
    }

    .link-1
    {
        grid-area: 1 / 1 / 2 / 3;
        font-size: 1.3rem;
    }

    .link-2
    {
        grid-area: 1 / 3 / 2 / 4;
    }

    .link-3
    {
        grid-area: 2 / 3 / 3 / 4;
    }

    .link-4
    {
        grid-area: 2 / 1 / 3 / 3;
    }

    .link-5
    {
        grid-area: 3 / 1 / 4 / 3;
    }

    .link-6
    {
        grid-area: 3 / 3 / 4 / 4;
    }

    .link-7
    {
        grid-area: 4 / 3 / 5 / 4;
    }

    .link-8
    {
        grid-area: 4 / 1 / 5 / 3;
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 480px)
{
    .logo > img
    {
        display: none;
    }

    .top-text
    {
        width: 90%;
    }

    .top-image
    {
        width: 10%;
    }

    .top-text > h1
    {
        font-size: 2.5rem;
    }

    .top-words
    {
        display: none;
    }

    .top-text > p
    {
        font-size: 0.9rem;
        line-height: 1.2rem;
    }

    #about h1
    {
        font-size: 1.1rem;
    }

    #about h2
    {
        font-size: 2.5rem;
    }

    .o-nas-text > h1
    {
        font-size: 2.5rem;
    }

    .onas-text-text
    {
        font-size: 0.9rem;
        line-height: 1.3rem;
    }

    .kontakt-text > h1
    {
        font-size: 2.5rem;
    }

    .kontakt-text > p
    {
        font-size: 1rem;
    }

    #onas-section > h1
    {
        font-size: 2.8rem;
    }

    #linki > h1
    {
        font-size: 2.8rem;
    }

    .team-kafelki
    {
        grid-template-columns: repeat(1, 1fr);
    }

    .onas-text-one > h2
    {
        font-size: 2.5rem;
    }

    .linki-grid
    {
        aspect-ratio: 3/5;
        display: grid;
        grid-template-columns: repeat(2, calc(50% - 0.35rem));
        grid-template-rows: repeat(6, 16%);
        gap: 0.7rem;
    }

    .link
    {
        font-size: 1rem;
    }

    .link-1
    {
        grid-area: 3 / 1 / 4 / 3;
        font-size: 1.1rem;
    }

    .link-2
    {
        grid-area: 1 / 1 / 2 / 2;
    }

    .link-3
    {
        grid-area: 1 / 2 / 2 / 3;
    }

    .link-4
    {
        grid-area: 4 / 1 / 5 / 3; 
    }

    .link-5
    {
        grid-area: 5 / 1 / 6 / 3;
    }

    .link-6
    {
        grid-area: 2 / 1 / 3 / 2;
    }

    .link-7
    {
        grid-area: 2 / 2 / 3 / 3;
    }

    .link-8
    {
        grid-area: 6 / 1 / 7 / 3;
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 376px)
{
    #top
    {
        margin-bottom: 3rem;
    }

    .top-text > h1
    {
        font-size: 2.3rem;
    }

    #about h2
    {
        font-size: 2.3rem;
    }

    .o-nas-text > h1
    {
        font-size: 2.3rem;
    }

    .kontakt-text > h1
    {
        font-size: 2.3rem;
    }

    .kontakt-text
    {
        flex: 100%;
    }

    .kontakt-image
    {
        flex: 0%;
    }

    #onas-section > h1
    {
        font-size: 2.5rem;
    }

    #linki > h1
    {
        font-size: 2.5rem;
    }

    .onas-text-one > h2
    {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 360px)
{
    #top
    {
        height: 100%;
        margin-top: 7rem;
    }

    .top-text > h1
    {
        font-size: 2rem;
    }

    #about h2
    {
        font-size: 2rem;
    }

    .o-nas-text > h1
    {
        font-size: 2rem;
    }

    #kontakt
    {
        margin: 5rem 0;
    }

    .kontakt-text > h1
    {
        font-size: 2rem;
    }

    .kontakt-icons
    {
        margin-top: 2rem;
        gap: 1rem;
    }

    .kontakt-icon-img
    {
        flex: 0%;
    }

    .kontakt-icon-img > img
    {
        display: none;
    }

    .kontakt-icon-text
    {
        flex: 100%;
    }

    #onas-section > h1
    {
        font-size: 2.2rem;
    }

    #linki > h1
    {
        font-size: 2.2rem;
    }

    .onas-text-one > h2
    {
        font-size: 2rem;
    }
}