.content-grid {
    --padding-inline: 1.5rem;
    --content-max-width: 1000px;
    --breakout-max-width: 1500px;

    --breakout-size: calc((var(--breakout-max-width) - var(--content-max-width)) / 2);
    --content-width: calc(100% - (var(--padding-inline) * 2));

    display: grid;
    grid-template-columns:
        [full-width-start] minmax(var(--padding-inline), 1fr) [breakout-start] minmax(0, var(--breakout-size)) [content-start] min(var(--content-width), var(--content-max-width)) [content-end] minmax(0, var(--breakout-size)) [breakout-end] minmax(var(--padding-inline), 1fr) [full-width-end];
}

.content-grid> :not(.breakout, .full-width),
.full-width> :not(.breakout, .full-width) {
    grid-column: content;
}

.content-grid>.breakout {
    grid-column: breakout;
}

.content-grid>.full-width {
    grid-column: full-width;
    display: grid;
    grid-template-columns: inherit;
}

img.full-width {
    width: 100%;
    max-height: 45vh;
    object-fit: cover;
}

@font-face {
    font-family: 'ClashGrotesk-Variable';
    src: url('/fonts/ClashGrotesk-Variable.woff2') format('woff2'),
        url('/fonts/ClashGrotesk-Variable.ttf') format('ttf');
    font-weight: 200 700;
    font-display: swap;
    font-style: normal;
}


:root {
    --bg-clr: #3B2572;
    --bg-clr-sec: #F5F4F8;
    /*--font-clr: #262626;*/
    --font-clr: #3b2572fa;
    /*--clr-sec: rgb(241, 186, 186);*/
    --clr-sec: #ffcdb3;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    /*border: 1px solid yellow;*/
    /*outline: 1px solid black;*/
}

html,
body {
    font-family: 'ClashGrotesk-Variable', sans-serif;
    align-items: center;
}

a,
a:visited,
a:hover {
    color: white;
    /* Barva textu pro všechny stavy odkazu */
    text-decoration: none;
    /* Žádné podtržení textu */
    font-weight: 400;
    font-size: 1rem;
}

.header-container {
    width: 100%;
    margin: 2em auto;
    padding: 0;
    align-items: center;
}

.body-container {
    margin: 0 auto;
    align-items: center;
    position: relative;
}

.content {
    padding-top: 1.7em;
    width: 100%;
}

span {
    color: var(--clr-sec);

}

.h1-box {
    color: white;
    width: 85%;
    margin: auto;
    margin-top: calc(1vh - 153px);
    padding-bottom: calc((1vh - 14px) / 2);
    display: block;
}

.h1-hp {
    font-weight: 500;
    text-align: center;
    font-size: 3rem;
}

section {
    padding-top: 7vw;
    padding-bottom: 3vw;
}

.pad-sec {
    padding-top: 9vw;
}

footer {
    padding: .2rem 0 2rem;
    align-items: center;
}


.white {
    background-color: white !important;
}

.bg-clr {
    background-color: var(--bg-clr);
}

.bg-clr-sec {
    background-color: var(--bg-clr-sec) !important;
}

.about-us {
    display: grid;
    grid-template-columns: 2fr 4fr;
    grid-auto-flow: row;
    gap: 1rem;
    padding-top: 1vw;
    padding-bottom: 4vw;
}

/*
img {
    width: 100%;
    height: auto;
}
*/

.about-us-text {
    /*color: black;*/
    display: block;
    padding-bottom: 20px;
    font-size: 1.2rem;
    padding-right: 5vw;
    color: var(--font-clr);
    background-color: var(--bg-clr-sec);
}


.about-us-left {
    align-content: center;
    justify-content: center;
    margin: auto;
}


.references {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1em;
    padding: 4em 0;
}

.reference {
    background-color: var(--bg-clr-sec);
    /*border: 2px solid black;*/
    border-radius: 25px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.reference p {
    color: var(--bg-clr);
}

.reference .text {
    padding-block: 20px;
    display: block;
    min-height: 260px;
    font-size: 1rem;
}

.reference .name {
    font-weight: 500;
    text-transform: uppercase;
    font-size: .9rem;
    padding-bottom: 3px;
}

.reference .organization {
    text-transform: uppercase;
    font-size: .9rem;
}

.stars {
    background-image: url("/img/stars.png");
    width: 120px;
    height: 20px;
    background-size: cover;
    background-position: center;
}


.services {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1em;
    padding: 4em 0;
}

.service,
.services-info {
    height: 11rem;
    border-radius: 20px;
    padding: 1.4em 1.6em;
    border: 2px solid var(--bg-clr);
}

.service {
    background-color: var(--bg-clr);
}

.services-info {
    background-color: var(--bg-clr-sec);
}

.services-info:hover {
    background-color: white;
}


.cenik-box {
    display: flex;
}

.cenik-box>* {
    flex: 0 1 50%;
}


.cenik-left {
    display: flex;
    flex-direction: column;
    align-content: center;
}

.cenik-left h2 {
    margin-top: 20%;
    margin-bottom: 10px;
    color: var(--font-clr);
}

.contacts {
    /*display: flex;
    flex-direction: row;
    gap: 10em;*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1em;
}

.contact {
    color: white;
}

p {
    color: white;
    font-size: 1rem;
    font-weight: 400;
    padding-bottom: 15px;
}

.ch-22 {
    width: 22ch;
}

.contact .name {
    font-size: 1.4rem;
    font-weight: 500;
    padding-bottom: 5px;
}

.work {
    font-size: 1rem;
    font-weight: 400;
    padding-bottom: 20px;
}

.contact .tel,
.email {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    color: white;
    display: inline-block;
    padding-bottom: .7rem;
}

.company {
    padding: 4rem 0px;
}

.company p {
    display: block;
    padding: 0.25rem;
}

.company .name {
    font-weight: 500;
    font-size: 1.4rem;
    padding-bottom: 1.5rem;
}

hr {
    color: white;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    color: white;
}

.footer-info a {
    color: white;
}

.pb-20 {
    padding-bottom: 20px;
}

.pt-5 {
    padding-top: 5px;
}

.pt-25 {
    padding-top: 25px;
}



.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 0;
    color: white;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-right: 25px;
}

.nav li {
    margin-left: 1.5em;
    position: relative;
}

.nav a {
    text-decoration: none;
    color: var(--white-text-color);
    font-size: 1.3rem;
    position: relative;
    font-weight: 400;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: transparent;
    transition: width 0.3s, background-color 0.3s;
}

.nav a:hover::after {
    width: 100%;
    /*background-color: lightgreen;*/
    background-color: white;
}

.hero-bg-image {
    margin: 0;
    padding: 0;
    background: url('/img/hero-image.webp') no-repeat center center;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 100svh;
    width: 100%;
    background-color: var(--bg-clr);
}

.button-cenik {
    font: inherit;
    font-size: 1.2rem;
    font-weight: 400;
    background-color: var(--clr-sec);
    border-radius: 15px;
    border: 0;
    padding: 0.5em 1.5em;
    color: var(--font-clr);
    text-decoration: none;
    width: 200px;
    cursor: pointer;
    margin: 1rem auto 4rem auto;

    transition: all 0.3s linear 0ms;
    display: inline-block;
    align-items: center;
    overflow: hidden;
}

.button-cenik .arrow {
    display: block;
    width: 50px;
    height: 0;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-10px);
    /* Posune šipku mimo tlačítko */
    transition: opacity 0.3s ease, transform 0.3s ease;
    justify-content: center;
}

.button-cenik:hover {
    padding-bottom: 18px;
}

.button-cenik:hover .arrow {
    opacity: 1;
    /* Zobrazí šipku při hoveru */
    transform: translateY(0);
    /* Posune šipku zpět na své místo */
    padding-top: 5px;
    height: auto;
    width: auto;
}


/*div, h2, h3 { border-color: red; border-width: 1px; border-style: solid;}*/

h2 {
    color: var(--font-clr);
    font-weight: 500;
    font-size: 3rem;
    line-height: 1;
    display: inline-block;
    margin: auto;
}

.h2-contact {
    font-weight: 500;
    color: white;
    font-size: 3rem;
    display: inline-block;
    padding-bottom: 2em;
    justify-content: left;
    width: 100%;
}

h3 {
    color: white;
    /* font-family: "Hanken Grotesk", Sans-serif; */
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.2;
}

.h3-last {
    color: var(--font-clr);
    /* font-family: "Hanken Grotesk", Sans-serif; */
    /*font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.2;*/
}


.burger {
    display: none;
    width: 1em;
    /* 40px Přidáno pevná šířka */
    height: 0.6em;
    /* 30px Přidáno pevná výška */
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    margin-right: 1em;
    /* 25px */
    margin-left: auto;
    font-size: 3rem;
}

.burger div {
    width: 2em;
    /* 40px šírka burger ikony */
    height: 0.17em;
    /* 4px tlouštka pásku v ikoně*/
    background-color: white;
    transition: transform 0.4s, opacity 0.4s;
    font-size: 1.4rem;
}

.burger-logo img {
    display: none;
    height: 50px;
    /* Upravte podle potřeby */
    width: auto;
    margin: 0 20px;
    position: absolute;
    left: 0;
    top: 30px;
}

.burger.open div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.open div:nth-child(2) {
    opacity: 0;
}

.burger.open div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav .close-btn {
    display: none;
}

button[type=submit],
input[type=reset] {
    background-color: var(--outline-color-g);
    border: 1px solid var(--link-color);
    color: white;
    padding: 8px 10px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
}

input[type=text] {
    min-width: 200px;
    border: 1px solid var(--link-color);
    padding: 8px 20px;
    border-radius: 4px;
}

input[type=text]:focus {
    border: 1px solid var(--link-color);
}

.center {
    align-items: center;
    align-content: center;
    justify-content: center;
    margin: 0 auto;
}


/*---------------------------------------------------------------------------------------------------------------------------*/
@media (max-width: 996px) {
    .reference .text {
        min-height: 200px;
    }
}

@media (max-width: 798px) {

    /*768px*/
    .header-container {
        /*width: 100%;*/
        /*width: 100%;
        max-width: 1140px;*/
        /*margin: 0px 0px; auto*/
        margin: 20px auto;
        /* flex-direction: column; */
    }

    .body-container {
        /*width: calc(100vw - 17px);*/
        /*width: 100%;*/
        padding: 0;
        /*tady 0 20*/
    }

    .hero-bg-image {
        margin: 0;
        padding: 0;
        background: url('/img/hero-image-mobile.webp') no-repeat center center;
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        height: 100svh;
        width: 100%;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-clr);
        position: absolute;
        top: 0;
        /*začatek menu shora*/
        left: 0;
        /*začatek menu zleva*/
        padding: 2em 0;
        /* 20px */
        z-index: 10;
    }

    .nav.active {
        display: flex;
    }

    .header {
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        margin-left: 0px;
        margin-top: 10px;
    }

    .nav li {
        margin: 0.5em 0;
    }

    .nav a {
        padding: 0.3em 50vw 0.3em 2em;
        width: 100%;
        text-align: center;
        color: white;
        font-weight: 400;
        font-size: 1.5rem;
    }

    .nav .close-btn {
        display: block;
        font-size: 50px;
        color: white;
        cursor: pointer;
        align-self: flex-end;
        padding: 0 1em;
    }

    .nav a:hover::after,
    a::after {
        display: none;
    }

    .burger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        margin-right: 5px;
        margin-left: auto;

    }

    .burger-logo img {
        display: inline;
        height: 50px;
        /* Upravte podle potřeby */
        width: auto;
        margin: -30px 30px;
        position: absolute;
        left: 0;
    }

    .h1-box {
        width: 80%;
    }

    .h1-hp {
        color: white;
        /* font-family: "Hanken Grotesk", Sans-serif; */
        font-weight: 500;
        margin-top: 40px;
        margin-bottom: 20px;
        text-align: center;
        font-size: 2.3rem;
    }

    h2,
    .h2-contact {
        font-size: 2.4rem;
    }

    section {
        padding-top: 14vw;
        padding-bottom: 5vw;
    }

    .about-us {
        display: flex;
        flex-direction: column;
        gap: 1.6rem;
        padding-top: 3vw;
        padding-bottom: 8vw;
    }

    .contacts {
        gap: 3rem;
    }

    .reference .text {
        min-height: 160px;
        padding-bottom: 2rem;
    }
}

.scroll-icon {
    transition: all .3s ease-in-out;
    animation: bounce 2s linear infinite;
    background: transparent;
    align-self: center;
    bottom: 50px;
    cursor: pointer;
    display: block;
    height: 28px;
    left: 50%;
    margin-left: -40px;
    position: absolute;
    width: 45px;
    border: 0;
    padding: 1em;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-0px);
    }
}

.icon {
    padding-bottom: 6px;
    margin-left: -3px;
    /*color: var(--bg-clr-sec);*/
    /*fill: var(--bg-clr-sec);*/
}

[data-scroll="fade-in"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-scroll="slide-in"] {
    opacity: 1;
    transform: translateY(200px);
    transition: opacity 1s ease, transform 1s ease;
}

.active[data-scroll] {
    opacity: 1;
    transform: translateX(0) translateY(0);
}