@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&display=swap&subset=cyrillic-ext');
@keyframes hero-animation {
    from {
        opacity: 0;
        transform: translate(-100px, -100px) scale(2) rotate(30deg)
    }
    to {
        opacity: 1;
        transform: translate(0px, 0px) scale(1) rotate(0deg)
    }
}

@keyframes hero-post-animation-bg {
    from {
        z-index: 80;
    }
    to {
        z-index: 50;
    }
}

@keyframes hero-post-animation-elem {
    from {
        z-index: 180;
        opacity: 1;
    }
    to {
        z-index: 50;
        opacity: 0;
    }
}

@keyframes card-animation {
    from {
        transform: translate(0px, 300px);
        opacity: 0;
    }
    to {
        transform: translate(0px, 0px);
        opacity: 1;
    }
}

.fh {
    transform: scale(-1, 1)
}

.fv {
    transform: scale(1, -1)
}

.dummy {
    visibility: hidden;
}

#bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 500;
}

#bg.selected {
    display: block;
}

#modal-helper {
    display: none;
    text-align: center;
}
#modal-helper i  {
    display: none;
}
#modal-helper.selected {
    display: block;
    position: fixed;
    /* bottom: 0; */
    left: 0;
    right: 0;
    width: 60px;
    margin: 0 auto;
    height: 6px;
    top: 50px;
    border-radius: 3px;
    background: rgba(1, 1, 1, 0.2);
    z-index: 2050;
    animation: card-animation 250ms ease-out;
}

body, html {
    margin: 0;
    padding: 0;
    top: 0;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

img {
    width: 100%;
}

q::before, q::after {
    content: none
}

q {
    font-style: italic;
    font-weight: 600;
    color: rgba(100, 100, 100, 1)
}

q>span {
    color: rgba(200, 200, 200, 1);
    font-weight: normal
}

.fill-red {
    fill: #C8102E;
    color: #C8102E;
}

.fill-blue {
    fill: #2DCCD3;
    color: #2DCCD3;
}

.fill-violet {
    fill: #C6579A;
    color: #C6579A;
}

.fill-pink {
    fill: #F4A6D7;
    color: #F4A6D7;
}

.fill-green {
    fill: #C4D600;
    color: #C4D600;
}

.fill-orange {
    fill: #FFB81C;
    color: #FFB81C;
}

header {
    top: 0;
    position: relative;
}

#navigation {
    box-shadow: 0px 70px 50px -50px #000000 inset;
    /* backdrop-filter: blur(5px); */
    position: relative;
    z-index: 100;
}

#navigation a {
    color: white;
    text-decoration: none;
}

#navigation a:active, #navigation a:hover, #navigation a:visited, #section-menu a:active, #section-menu a:hover, #section-menu a:visited {
    color: white;
}

#navigation>ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    padding-bottom: 0.6em;
    font-weight: 300;
}

#navigation>ul>li {
    /*padding-bottom: 12px;*/
    text-align: center;
}

#navigation>a {
    display: none;
    font-family: Georgia, Times, 'Times New Roman', serif;
    font-weight: 700;
    text-align: center;
    padding: 0.6em;
    font-size: 1em;
}

#nav_social {
    font-size: 1.5em;
    color: white;
}

#hero-shape {
    position: absolute;
    bottom: -5px;
    z-index: 200;
    left: 0;
}

#hero {
    position: relative;
    z-index: 50;
    margin-top: -5em;
    overflow: hidden;
}

#hero-items img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#hero-items img.hero_bg {
    z-index: 50;
    animation: hero-post-animation-bg 2s ease-in-out;
}

#hero-items img.hero_elem {
    z-index: 50;
    animation: hero-post-animation-elem 2s ease-in-out;
}

#hero-items h1 {
    font-family: Georgia;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 18%;
    color: white;
    font-size: 3em;
    z-index: 1500;
}

#hero-items img.hero_bg.active {
    z-index: 100;
}

#hero-items img.hero_elem.active {
    z-index: 200;
}

#hero-items img.active {
    animation: hero-animation 2s ease-in-out;
}

#section-description {
    text-align: center;
    padding: 1em;
}

#bg_farina {
    width: 100%;
    display: block;
    margin-bottom: -5px;
}

#section-mission {
    display: block;
    flex-direction: row;
    text-align: center;
    color: white;
    background: black;
    padding: 2em;
}

#section-mission>article {
    display: block;
}

#section-mission>article>img {
    display: inline-block;
    width: 50%
}

#section-mission h3 {
    font-size: 3em;
}

#section-history {
    padding: 2em;
    padding-bottom: 10em;
    color: white;
    position: relative;
}

#section-history-bg {
    top: 0;
    left: 0;
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
}

#section-history-bg img, #section-history-bg div {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

#section-history-bg img.blur {
    z-index: 2;
}

#section-history-bg div {
    z-index: 3;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 15%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 1) 100%);
}

#section-menu {
    text-align: center;
}

#section-menu span {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
}

#section-menu img {
    width: 100%;
    margin-left: 3em;
    z-index: 200;
    position: relative;
}

#section-menu a {
    display: block;
    position: relative;
    margin: 3em;
    text-decoration: none;
    color: rgb(189, 140, 140);
    background-color: white;
}

#section-menu a:visited {
    color: rgb(189, 140, 140);
}

#section-menu div {
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: grey 0 0 20px;
    border-radius: 20px;
}

#section-menu h3 {
    font-size: 2em;
    padding-top: 1em;
    font-weight: 700;
}

/*GELATO*/

#section-gelato>div {
    display: flex;
    justify-content: space-around;
}

#section-gelato>div>div {
    display: none;
}

#section-gelato>div>div:nth-child(-n+4) {
    display: block;
}

#section-gelato>h2 {
    width: 100%;
    position: relative;
    text-align: center;
    font-weight: 700;
    font-size: 3em;
    margin-top: -500px;
    padding-bottom: 400px;
}

#section-gelato-items>div, #section-pastry-items>div {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: center;
    color: grey;
}

#section-gelato-items h3, #section-pastry-items h3 {
    text-align: center;
    width: 100%
}

#section-gelato-items article, #section-pastry-items article {
    width: 50%;
    transition: transfrom 1000ms cubic-bezier(.24, .73, .82, 1.28);
}

#section-gelato-items h4, #section-pastry-items h4 {
    text-align: center;
    color: grey;
    font-weight: 500;
}

#section-gelato-items p, #section-pastry-items p {
    text-align: center;
    padding: 1em;
}

#section-gelato-items h5, #section-pastry-items h5 {
    margin-top: -2em;
}

#section-gelato-items article p, #section-pastry-items article p {
    display: none;
}

#section-gelato-items article.selected, #section-pastry-items article.selected {
    position: fixed;
    width: 100%;
    overflow: auto;
    left: 0;
    right: 0;
    top: 40px;
    border-radius: 20px 20px 0 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding-top: 40px;
    animation: card-animation 250ms ease-out;
}

#section-gelato-items article.selected p, #section-pastry-items article.selected p {
    display: block;
    margin-top: -2em;
}

#section-gelato-items article.selected h5, #section-pastry-items article.selected h5 {
    font-size: 1.5em;
    margin-top: -4em;
}

/*PASTRY*/

#section-pastry>h2 {
    width: 100%;
    position: relative;
    text-align: center;
    font-weight: 700;
    font-size: 3em;
    margin-top: -320px;
    padding-bottom: 200px;
}

#section-pastry>div {
    position: relative;
    height: 560px;
}

#section-pastry img {
    position: absolute;
    width: 30%;
}

#section-pastry-items {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: center;
    color: grey;
}

#section-pastry-items article {
    width: 50%;
}

#section-gelato-ingredients p {
    padding: 1em;
    text-align: center;
}

#section-pastry-ingredients p {
    padding: 1em;
    text-align: center;
}

#section-gelato-ingredients article {
    display: flex;
    flex-wrap: wrap;
}

#section-gelato-ingredients article>img {
    width: 100%;
    object-fit: contain;
}

#section-gelato-ingredients article>div {
    width: 100%;
}

#section-gelato-ingredients article h3 {
    text-align: center;
}

#section-places-farinari {
    width: 100%;
    height: 300px;
}

#section-places-menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding-bottom: 1em;
}

#section-places-menu img, #section-places-menu svg {
    width: 60px;
    height: 60px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#section-places-menu a {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

#section-places-menu span {
    display: block;
    text-decoration: none;
    color: grey;
}

#section-places h2 {
    text-align: center;
}

footer {
    background: #be1d28;
    color: white;
    width: 100%;
    padding-bottom: 1em;
    padding-top: 0.5em;
}

#footer-farinari {
    text-align: center;
    vertical-align: middle;
}

#footer-farinari>svg {
    color: white;
    fill: white;
    display: inline;
    width: 5em;
    vertical-align: middle;
}

#footer-farinari span {
    font-family: Georgia;
    font-weight: 700;
    font-size: 1.5em;
    vertical-align: middle;
}

footer a {
    text-decoration: none;
    color: white;
}

#footer-phone {
    width: 100%;
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.6em;
    font-weight: 700;
}

footer ul {
    list-style: none;
    text-align: center;
    padding: 0;
    line-height: 2em;
}

footer li {
    display: inline;
    margin: 0.5em;
}

footer>span {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    display: block;
    width: 100%;
}

/*Для планшетов*/

@media (min-width: 768px) {
    #modal-helper.selected {
        width: 40px;
        height: 40px;
        margin-left: 250px;
        left: 50%;
        right: auto;
        border-radius: 20px;
    }
    #modal-helper i {
        display: block;
        font-size: 20px;
        color: white;
        margin: 10px;
    }
    #section-gelato-items article.selected, #section-pastry-items article.selected {
        left: auto;
        right: auto;
        bottom: auto;
        width: 600px;
        border-radius: 30px;
        padding-top: 0;
    }
    #section-gelato-items article.selected img, #section-pastry-items article.selected img {
        width: 300px;
    }
    #section-gelato-items > p, #section-pastry-items > p {
        width: 600px;
        margin: 0 auto;
    }
    #hero-items h1 {
        font-size: 7.5em;
        top: 20%;
    }
    #navigation {
        display: flex;
        justify-content: space-evenly;
    }
    #navigation>a {
        display: inline;
        color: white;
        padding: 1em;
        font-size: 1.2em;
    }
    #navigation>ul>li {
        padding: 0 0.3em;
    }
    #navigation>ul {
        margin: 1.1em;
    }
    #hero {
        margin-top: -7em;
    }
    #nav_social {
        margin-top: 0.5em !important;
    }
    #section-mission {
        display: flex;
    }
    #section-mission>article>img {
        width: 150px;
    }
    #section-mission h3 {
        font-size: 2em;
    }
    #section-mission>article {
        width: 100%;
    }
    #section-menu {
        display: flex;
        justify-content: space-around;
        margin-top: 5em;
        margin-bottom: 10em;
    }
    #section-menu a {
        width: 200px;
        margin: 2em;
    }
    #section-menu img {
        margin-left: 2em;
    }
    #section-menu h3 {
        margin: 0;
    }
    #section-gelato>div>div:nth-child(-n+8) {
        display: block;
    }
    #section-gelato-items article {
        width: 25%;
    }
    #section-gelato-ingredients, #section-pastry-ingredients, #section-history > article, #section-description {
        width: 600px;
        margin: 0 auto;
    }
    #section-gelato-ingredients article>img {
        width: 50%;
    }
    #section-gelato-ingredients article>div {
        width: 50%;
    }
    #section-gelato-ingredients article h3 {
        text-align: left;
    }
    #section-gelato-ingredients p {
        text-align: left;
    }
    #section-pastry {
        margin-top: 5em;
    }
    #section-pastry img {
        width: 20%;
    }
    #section-pastry-items article {
        width: 25%;
    }
    #section-places-menu {
        z-index: 200;
        position: relative;
        box-shadow: 0 40px 30px rgba(0, 0, 0, 0.5);
    }
    #section-places-farinari {
        height: 500px;
    }
}
/*Для больших айпадов*/
@media (min-width: 1000px) {
    #hero-items h1 {
        font-size: 12em;
        top: 19%;
    }
    #section-pastry-items article, #section-gelato-items article {
        width: 20%;
    }
    #navigation>ul>li {
        padding: 0 1em;
    }
}
/*Для больших экранов*/

@media (min-width: 1200px) {
    #hero-items h1 {
        font-size: 12em;
        top: 19%;
    }
    #section-pastry-items article, #section-gelato-items article {
        width: 20%;
    }
    #section-pastry-items, #section-gelato-items {
        width: 800px;
        margin: 0 auto;
    }
    #section-gelato>h2 {
        margin-top: -700px;
        padding-bottom: 600px;
    }
}
#cat {
    text-align: center;
}
#cat a {
    display: block;
    margin: 0 auto;
    text-decoration: none;
    color: white;
    background: grey;
    width: 200px;
    padding: 15px;
    border-radius: 40px;
}

@media (max-width: 767px) {
    #navigation {
        padding: 15px;
        text-align: center;
    }
    #navigation>ul {
        display: inline;
    }
    #navigation>ul>li {
        text-align: center;
        display: inline;
    }
    #navigation>ul>li::before {
        content: ' | ';
        color: white;
    }
}
@media (max-width: 364px) {

    #hero {
        margin-top: -8em;
    }
    #hero-items h1 {
        top: 40%;
    }
    #nav_social {
        font-size: 1.4em;
        color: white;
    }

}

/*добираемся до инет магазина в меню*/
a[href="/store"] {
    font-weight: 700;
    color: rgb(40,20,10) !important;
    padding: 5px 10px;
    background-color: white;
    border-radius: 10px;
    white-space: nowrap;
}

