/*
Theme Name: Мультиссылка. База «Нерестина»
Theme URI:
Description: https://nerestina.ru site theme.
Version: 1.0
*/

:root {
    --text: #333;
    --light-gray: #d7d5d3;
    --gray: #868686;
    --dark-gray: #6e6e6e;
    --color-text: #e7cb73;
    --color-text-light: #50703e;
    --contrast: #34433f;
    --light-contrast: #e8e4bc;
    --white: #fff;
    --black: #040404;
    --background: #f7f7f6;
    --box-shadow: 1rem 1rem 1.5rem #64baca09;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

li {
    margin: 0.5rem 0;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 19px;
    height: 100%;
    font-family: 'EB Garamond',Sans-Serif;
    color: var(--text);
}

a {
    color: var(--color-text);
}

a:hover {
    text-decoration: none;
}

body {
    border-top: 5px solid var(--color-text);
}

.body-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    max-width: 500px;
    min-width: 320px;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-shadow: 0 0.5rem 1.2rem #41662080;
    box-shadow: 0 0.5rem 1.2rem #41662080;
}

.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container.wide-type {
    max-width: 100%;
}

.head {
    background: rgba(0,0,0,0.8);
}

.header {
    padding: 1rem 0 1rem;
    text-align: center;
}

.logo {
    width: 11rem;
    margin-left: auto;
    margin-right: auto;
}

.social {
    background: url(img/bg-social.jpg) no-repeat center;
    background-size: cover;
    position: relative;
    padding: 1rem 0;
}

.inner-content h1 {
    color: white;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 5px #000;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
}

.social-links .tel {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.social-links .tel a {
    text-decoration: none;
}

.social-icons {
    justify-content: center!important;
}

.social-icon {
    margin: 0 0.2rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--color-text);
    color: var(--text);
    border-radius: 50%;
    border: 1px solid var(--color-text);
    transition: background-color .3s, color .3s;
}

.social-icon .icon-wa {
    font-size: 94%;
}

.social-icon .icon-tg {
    font-size: 93%;
    transform: translate(-1px, 1px);
}

.social-icon .icon-vk {
    font-size: 118%;
}

.social-icon .icon-ok {
    font-size: 100%;
}

.social-icon .icon-email {
    font-size: 87%;
}

.social-icon .icon-web {
    font-size: 121%;
    transform: translate(1px, 0);
}

.social-icon:hover {
    background: var(--text);
    color: var(--color-text);
}

.tiles .container {
    max-width: none;
}

.flex-container-tiles {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 19rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-bottom: 0.2rem;
}

.flex-container-tiles .item {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 45%;
    flex: 1 0 45%;
    margin: 0.8%;
    position: relative;
    color: black;
}

.flex-container-tiles .item:before {
    content: "";
    width: 100%;
    display: block;
    padding-top: 100%;
}

.flex-container-tiles .item > .row {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--color-text);
/*    padding: 0.875rem;*/
}

.flex-container-tiles .item > .row > .icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-bottom: 1rem;
    font-size: 2.9rem;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    padding: 0.875rem 0.875rem 0;
    color: var(--black);
}

.flex-container-tiles .item > .row > div {
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
}

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.row.vertical {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.shadow-block {
    background: #fff;
    -webkit-box-shadow: 0.3rem 0.3rem 0.6rem #41662060;
    box-shadow: 0.3rem 0.3rem 0.6rem #41662060;
}

.title-small {
    font-size: 0.8125rem;
    text-align: center;
    line-height: 1;
    flex: 1 0 2em!important;
    padding: 0 0.25rem 0.25rem;
}

.title {
    font-size: 1.1rem;
}

.main {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    scroll-behavior: smooth;
    z-index: 0;
}

section.content {
    flex: 1;
    background: linear-gradient(45deg, #e1e3ce 0%,#799c96 70%,#87a599 100%);
    background-size: auto 100%;
}

.main .inner-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    height: 100%;
}

.main .inner-content .title {
    margin: 1rem 0;
}

.main .inner-content h2 {
    color: var(--color-text);
    font-size: 1.9rem;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

.main .inner-content .tiles {
/*    background: url(img/romb-3.png) repeat-x;
    background-size: auto 100%;*/
/*    margin: 0 0 1.5rem;*/
/*    padding: 1.5rem 0;*/
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

footer {
    background: rgba(0,0,0,0.8);
    padding: 0.75rem 0;
}

.footer-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    color: var(--color-text);
}

.footer-content a {
    color: var(--color-text);
}

.footer-content .left-element {
    -webkit-box-flex: 1;
    -ms-flex: auto;
    flex: auto;
    font-size: 0.75rem;
}

.footer-content .left-element a:hover {
    text-decoration: none;
}

.footer-content .right-element {
    margin-left: 1rem;
    max-width: 3rem;
}

.icon-map {
    width: 100%;
    height: auto;
}

.back {
    padding: 1.25rem 0;
}

.back-link a {
    color: var(--contrast);
    cursor: pointer;
}

.back-link span {
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    transform: scaleX(-1);
    display: inline-block;
}

.page .title {
    text-align: center;
}

.page .title h1 {
    margin-top: 0;
}

.content h3 {
    font-size: 1.15rem;
    color: var(--black);
}

.content ul {
    padding-left: 1em;
}

.custom-list:not(:last-of-type) {
    margin-bottom: 1rem;
}

.custom-list .icon {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 2.5rem;
    flex: 0 0 2.5rem;
    margin-right: 1.5rem;
}

.custom-list .desc {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

a.nav {
    color: var(--text);
}

.scroll-table {
    overflow: auto;
}

.base-table {
    border-collapse: collapse;
    border: 1px solid var(--color-text);
    margin-bottom: 1em;
}

.base-table td {
    padding: 10px;
}

.post-image {
    margin: 1.5rem 0;
}

.room-booking-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--color-text);
    border: 1px solid var(--color-text);
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all .3s;
}

.room-booking-button:hover {
    background: var(--text);
    color: var(--color-text);
}

@media screen and (max-width: 420px) {
    .flex-container-tiles .item > .row > .icon {
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 389px) {
    .container {
        padding: 0 0.8rem;
    }

    .logo {
        width: 9rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    .inner-content h1 {
        font-size: 1.8rem;
    }

    .inner-content h2 {
        font-size: 1.6rem;
    }

    .flex-container-tiles .item > .row {
        padding: 0.6rem;
    }

    .flex-container-tiles .item > .row > .icon {
        font-size: 2.25rem;
    }

    .social-links .tel {
        font-size: 1.5rem;
    }

    footer {
        padding: 0.5rem 0;
    }

    .footer-content .left-element {
        font-size: 0.75rem;
    }
}

@media screen and (min-width: 481px) {
    .border {
        border: 4px outset;
        width: 100%;
        max-width: 398px;
        margin: 0 auto;
        -webkit-box-shadow: 1.4rem 1.4rem 0.2rem #8cbabda6;
        box-shadow: 1.4rem 1.4rem 0.2rem #8cbabda6;
        margin-bottom: 1.4rem;
    }
}

@media screen and (max-width: 375px) and (max-height: 740px) {

    .inner-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .tiles .container {
        max-width: 320px;
    }

    .social-icon {
        width: 2rem;
        height: 2rem;
        font-size: 85%;
    }

    .main .inner-content h2 {
        font-size: 1.4rem;
    }

    .main .inner-content .title {
        margin: 0.5rem 0;
    }

}

@media screen and (max-height: 740px) {

    .header {
        padding: 0.75rem 0;
    }

    .main .inner-content .title {
        margin: 0.75rem 0;
    }

    .main .inner-content .tiles {
        padding: 0 0 0.75rem;
    }

    .tiles .container {
        max-width: 300px;
    }

    .inner-content h1 {
        font-size: 1.7rem;
        line-height: 1;
    }

    .main .inner-content .title {
        margin: 0.75rem 0;
    }

}

/*404*/

.title-404 {
    font-size: 8rem;
    margin: 3rem 0;
    text-align: center;
    color: #9c1608;
}

.desc-404 {
    text-align: center;
    font-size: 1.25rem;
}