html {
    font-size: 15px;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    color: #5D0909;
    line-height: 1;
    margin: 0;
    padding: 0;
}

*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
    outline: none;
}

input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}


/* header
=============*/

        .header {
            background: #fff;
        }

        .header-inner {
            display: flex;
            justify-content: flex-start;
            align-items: baseline;
            padding: 1rem 1rem 0;
        }

.header-logo {
    margin-right: 15px;
}

.header-logo-link {
    font-size: 1.4rem;
    color: #650c0c;
    font-weight: 700;
    text-decoration: none;
    padding-left: 0.2rem;
}

.header-logo-link:hover {
    color: #811b1b;
    opacity: 1;
    transition: .2s ease-in-out;
}


.header__info-link:hover {
    color: #9d9d9d;
}

.nav {
    display: flex;
}

.nav__link {
    display: block;
    margin-right: 15px;
}

.header__info {
    position: relative;
    font-size: 1.2rem;
    color: #797979;
    font-weight: 400;
    text-decoration: none;
}

.header__info:hover {
    color: #000000;
}

.header__info:hover .info__container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.info {
    cursor: pointer;
}

.info__container {
    padding-top: 20px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    visibility: hidden;
    min-width: 300px;
    transition: all .2s ease;
}

.info__block {
    background-color: rgba(255, 255, 255, .5);
    color: #000;
    font-size: 20px;
    padding: 15px;
}


/* contacts
=============*/


a {
    text-decoration: none;
    color: #797979;
}

.social a {
  color: #5D0909;
  visibility: visible;
  text-decoration: none;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #5D0909;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social div {
    margin: 6px 6px;
    width: 45px;
    height: 45px;
    background: #eee;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    transition: all 200ms ease-in-out;
}


.mail{
    padding-top: 5px;
    position: absolute;
    top: 100%;
    left: 55%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    min-width: 100px;
    transition: all .2s ease;
    font-size: 1rem;
}

a:hover .mail{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.phone{
    padding-top: 5px;
    position: absolute;
    top: 100%;
    left: 55%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    min-width: 100px;
    transition: all .2s ease;
    font-size: 1rem;
}

a:hover .phone{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


div .fa-facebook-f:hover {
    background: #ffffff;
    color: #5D0909;
    transform: scale(1.2);
}

div .fa-whatsapp:hover {
    background: #ffffff;
    color: #5D0909;
    transform: scale(1.2);
}
div .fa-youtube:hover {
    background: #ffffff;
    color: #5D0909;
    transform: scale(1.2);
}
div .fa-instagram:hover {
    background: #ffffff;
    color: #5D0909;
    transform: scale(1.2);
}
div .fa-behance:hover {
    background: #ffffff;
    color: #5D0909;
    transform: scale(1.2);
}

div .fa-envelope:hover {
    background: #ffffff;
    color: #5D0909;
    transform: scale(1.2);
}




@media screen and (max-width: 1024px) {

            .header-logo-link {
                font-size: 1.2rem;
            }
            .header__info-link {
                font-size: 1rem;
                padding-left: 0.7rem;
            }
        }

@media screen and (orientation: portrait) {
    .social {
        display: grid;
        grid-template-columns: repeat(3 ,1fr);
    }
    .card p1{
        left: 25%;
    }

    .card p2{
        left: 80%;
    }
}









