@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@100;300;400;500;700;800;900&family=Nunito:wght@200;300;400;600;700&display=swap');

:root {
    --black: #272d38;
    --red: #ED176F;
    --coral: #F7817F;
    --pastel: rgb(98, 185, 185);
    --darkpastel: rgb(16, 83, 83);
    --gradient: linear-gradient(90deg, var(--red), var(--coral));
}

* {
    font-family: 'Alegreya Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    transition: all .2s linear;
    scroll-behavior: smooth;
}

*::selection {
    background: var(--red);
    color: #fff;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 4rem;
}

section {
    padding: 3rem 9%;
}

.btn {
    display: inline-block;
    padding: 0.7rem 3rem;
    border-radius: 1rem;
    background: var(--gradient);
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bolder;
}

.btn:hover {
    transform: scale(1.1);
}

header {
    width: 100%;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.header-active {
    background: var(--black);
    border-bottom: .1rem solid #fff3;
}

.logo img {
    width: 12rem;
    margin-top: .5rem;
    cursor: pointer;
}

header .navbar a {
    font-size: 2rem;
    font-weight: bold;
    margin-left: 2.5rem;
    color: #fff;
}

header .navbar a.active,
header .navbar a:hover {
    color: var(--red);
}

header .navbar .btn:hover {
    color: #fff;
}

#menu-bar {
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

.home {
    background: url(Images/pozadie.jpg), linear-gradient(var(--black), var(--pastel)) no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    text-align: center;
}

.home .content {
    padding-top: 15rem;
}

.home .content h3 {
    font-size: 4rem;
    color: #fff;
    text-align: center;
}

.home .content .btn {
    display: none;
}

.home .swiper {
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 5rem;
    margin-top: 5rem;
}

.home .swiper-slide {
    width: 50rem;
    height: 60rem;
}

.home .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    border: 1px solid var(--black);
}

.heading {
    margin-bottom: 5rem;
    text-align: center;
    font-size: 5rem;
    text-transform: uppercase;
    padding: 1rem;
    color: var(--red);
}

.info .row,
.cooperation .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.info .row .image { flex: 1 1 40rem; }
.info .row .image img { width: 80%; }
.info .row .content { flex: 1 1 40rem; }
.info .row .content p {
    margin-left: 1rem;
    color: #666;
    font-size: 2rem;
    padding: 1rem 0;
}

.features .box-container {
    max-width: 1258px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.features .box-container .box {
    margin: 1rem;
    border-radius: .5rem;
    text-align: center;
    background: rgba(237, 23, 111, .05);
    padding: 1rem;
    flex: 1 1 30rem;
    cursor: pointer;
}

.features .box-container .box i {
    color: var(--red);
    font-size: 5rem;
    padding: 1rem;
}

.features .box-container .box h3 {
    color: var(--black);
    font-size: 2.4rem;
    padding: 1rem;
}

.features .box-container .box p {
    color: #666;
    font-size: 1.7rem;
    padding: 1rem;
}

.features .box-container .box:hover {
    background: var(--gradient);
}

.features .box-container .box:hover > * {
    color: #fff;
}

.cooperation .row .content {
    flex: 1 1 50rem;
}

.cooperation .row .content p {
    margin-top: 1rem;
    margin-left: .5rem;
    color: #666;
    font-size: 2rem;
    padding: 1rem 0;
    text-align: justify;
}

.review {
    background: url(/Images/predajna.jpg), linear-gradient(var(--black), var(--pastel)) no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.review .box-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 5rem;
}

.review .box-container .box {
    background: #fff;
    width: 30rem;
    margin: 5rem 1rem;
    padding: 1.5rem;
    position: relative;
}

.review .box-container .box img {
    position: absolute;
    bottom: -7.5rem;
    left: -1rem;
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.review .box-container .box p {
    font-size: 1.8rem;
    color: var(--black);
}

.review .box-container .box h3 {
    text-align: end;
    color: var(--red);
}

.review .box-container .box span {
    text-align: end;
    color: var(--black);
    display: block;
    font-size: 1.5rem;
}

.review .box-container .box::before {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: .4rem;
    height: 2rem;
    width: 2rem;
    background: #fff;
    transform: rotate(45deg);
}

.contact {
    background: linear-gradient(#fff 50%, var(--black) 50.1%);
}

.contact h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
    text-align: center;
}

.contact form {
    width:50%;
    margin:0 auto;
    padding: 2rem;
    background: #eee;
    box-shadow: 0 .5rem 3rem rgba(0, 0, 0, .1);
}

.contact form .inputBox {
    position: relative;
}

.contact form .inputBox input,
.contact form .inputBox textarea {
    width: 100%;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-bottom: .2rem solid rgba(0, 0, 0, .3);
    font-size: 2rem;
    text-transform: none;
    background: none;
}

.contact form .inputBox textarea {
    resize: none;
    height: 15rem;
}

.contact form .inputBox input:focus,
.contact form .inputBox textarea:focus {
    border-color: var(--red);
}

.contact form .inputBox label {
    font-size: 1.7rem;
    font-weight: bold;
    position: absolute;
    top: 2.3rem;
    left: 0;
    pointer-events: none;
}

.contact .inputBox input:focus ~ label,
.contact .inputBox textarea:focus ~ label,
.contact .inputBox input:valid ~ label,
.contact .inputBox textarea:valid ~ label {
    top: -1.5rem;
    font-size: 2rem;
    color: var(--red);
}

.footer {
    background: var(--black);
}

.footer .footer-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-wrap: wrap;
}

.footer .footer-container .box {
    margin: 1rem;
    border-radius: .5rem;
    text-align: center;
    padding: 1rem;
    flex: 1 1 30rem;
    cursor: pointer;
}

.footer a {
    font-size: 2rem;
    color: #ccc;
    display: block;
    text-align: center;
}

.footer a:hover {
    color: var(--red)
}

.footer h3 {
    font-size: 3rem;
    text-align: center;
    color: var(--red);
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.footer h4 {
    text-align: center;
    color: #eee;
    font-size: 2rem;
    margin-top: .5rem;
}

.footer p {
    text-align: center;
    font-size: 2rem;
    color: #ccc;
    padding: .5rem 0;
    margin:0 auto;
}

.footer .credit {
    color: #ccc;
    width: 100%;
    margin: 0;
    padding: 3rem 0;
    text-align: center;            /* TOTO JE NOVÝ RIADOK, KTORÝ VŠETKO VYCENTRUJE */
}

/* --- MEDIA QUERIES --- */

@media (max-width:1024px) {
    html { font-size: 55%; }
    .heading { font-size: 3.5rem; }
}

@media (max-width: 1188px) {
    .footer .footer-container { display: block; }
}

@media (max-width:960px) {
    .btn { display: block; }
    .home .content .btn {
        display: inline-block;
        margin-top: 2rem;
    }
}

@media (max-width: 780px) {
    html { font-size: 45%; }
}

@media (max-width:650px) {
    header {
        border-bottom: .1rem solid #fff3;
        background: var(--black);
    }
    
    #menu-bar {
        display: block;
        font-size: 4rem;
    }

    header .navbar {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--black);
        border-top: .1rem solid #fff3;
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    header .navbar.nav-toggle {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    header .navbar a {
        display: block;
        font-size: 1.8rem;
        margin: 1.5rem 0;
        padding: 1.5rem 0;
        background: var(--gradient);
        text-align: center;
        border-radius: .5rem;
    }

    header .navbar a:hover,
    header .navbar a.active {
        color: var(--black);
        font-weight: bold;
    }

    header .navbar .btn {
        display: none;
    }
    
    .fa-times {
        transform: rotate(180deg);
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact form {
        width: 80%;
    }
}

@media (max-width:480px) {
    .home .content h3 { font-size: 2.8rem; }
    .home .swiper-slide {
        width: 70%;
        height: 80%;
    }
}