/*!
Theme Name: romanyshyn
Author: RBZ
Description: Сайт адвоката Романишин Д.М.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: romanyshyn

*/

@import url('https://fonts.googleapis.com/css?family=Playfair+Display:500|Roboto+Slab:300,400,600&display=swap&subset=cyrillic');

body {
    margin: 0;
}

hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
}

pre {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

b,
strong {
    font-weight: bold;
}

small {
    font-size: 80%;
}

textarea {
    overflow: auto;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
p {
    margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 15px;
    font-size: 0.9375rem;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

body {
    background: #fff;
}

* {
    box-sizing: border-box;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0 1.5em 1.5em;
}

img {
    height: auto;
    max-width: 100%;
}

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    outline: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {}

select {}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    display: flex;
    flex-direction: column;
}

.swiper-container {
    width: 100%;
    height: 340px;
}

#content .swiper-pagination-bullet-active {
    background: #ffc375;
}

.slider-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    padding: 0 10px;
    color: #fff;
    font-weight: 500;
    max-width: 440px;
    display: block;
}

.slide-desc {
    color: #fff;
    font-size: 14px;
    max-width: 440px;
    padding: 0 10px;
}
.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    height: 100%;
}
/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
    clear: both;
    display: block;
    float: left;
    width: 100%;
}

.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}


.main-navigation a {
    display: block;
    text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
    display: block;
}

.menu-toggle {
    position: absolute;
    top: 65px;
    left: 0;
    height: 35px;
    width: 35px;
    overflow: hidden;
    background-image: url(img/menu-b.png);
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: left center;
    border: 0;
    padding: 0;
    margin: 0;
}

.main-navigation.toggled ul {
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;

}

.toggled .menu-toggle {
    background-image: url(img/menu-c.png);
}

@media screen and (min-width: 960px) {

    .menu-toggle,
    .rightmenu {
        display: none;
    }

    .main-navigation ul {
        display: flex;
    }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
    overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    float: left;
    width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    float: right;
    text-align: right;
    width: 50%;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/

#secondary {
    display: flex;
    justify-content: center;
    background: #f8f8f8;
}

.widget {
    margin: 5em 0 2em;
}

.widget select {
    max-width: 100%;
}

.widget-row {
    padding: 0 15px;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
    display: block;
}

.single-post .entry-title {
    font-size: 40px;
}

.single-post .entry-footer {
    display: flex;
    justify-content: space-between;
}
.single-post .entry-content {}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

.site-main a {
    word-wrap: break-word;
    color: #CCA776;
}

.screen-reader-text {
    color: rgba(0, 0, 0, .5);
}

.cat-links,
.comments-link,
.edit-link {
    margin-right: 12px;
}

.wp-block-button__link {
    text-align: center;
    text-decoration: none;
    color: #cca776;
    background: #f8f8f8;
    border: 1px solid #cca776;
    text-transform: uppercase;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: 18px;
}

/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 21px;
    margin-bottom: 25px;
}

.blog .page-header {
    grid-column: 1/-1;
}

.blog h1 {
    margin-bottom: 0;
}

.blog h2 a {
    display: block;
    font-family: 'Roboto Slab', serif;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 400;
    color: #333;
}

.byline, .author a {
    color: #888;
}

.posted-on {
    margin-right: 8px;
}

.blog .entry-footer {
    margin-bottom: 25px;
}

@media screen and (max-width: 960px) {

    .blog .entry-header,
    .blog .entry-footer,
    .blog h1 {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    /* Theme Footer (when set to scrolling) */
    display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: flex;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* site */

body {
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    line-height: 1.6;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
}

h2,
h3 {
    font-size: 34px;
}

a {
    text-decoration: none;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Icon style */

.icon-primary {
    color: #cca776;
}

/* all */

.row {
    max-width: 1020px;
    margin-right: auto;
    margin-left: auto;
}


.home-page h1,
.home-page h2,
.home-page p,
.home-page ul,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content p,
.entry-content ul {
    margin-right: 10px;
    margin-left: 10px;
}

/* Header */

.site-header a {
    color: #000;
}

.site-header a:hover {
    color: #cca776;
    transition: .33s all ease;
}

.top-panel {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-size: 15px;
}

.rightmenu {
    position: absolute;
    top: 65px;
    right: 0;
    height: 35px;
    width: 35px;
    background-image: url(img/rightmenu-b.png);
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: left center;
}

.top-panel-wrap,
.nav-panel-wrap {
    padding: 0 15px;
}

.top-panel-wrap {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.panel {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 4px;
}

.site-header .phones {
    display: flex;
}

.site-header .add-info {
    display: flex;
}

.site-header .time,
.site-header .adress {
    display: flex;
    margin-left: 25px;
}

.site-header .time {
    flex: 0 0 auto;
}

.site-header .time span {
    margin: 0 5px;
}

.site-header .phones::before {
    content: '';
    width: 22px;
    height: 22px;
    background: url(img/phone.png) no-repeat center;
    background-size: 22px;
    flex: 0 0 auto;
}

.site-header .time::before {
    content: '';
    width: 22px;
    height: 22px;
    background: url(img/time.png) no-repeat center;
    background-size: 22px;
    flex: 0 0 auto;
    margin-right: 5px;
}

.site-header .adress::before {
    content: '';
    width: 22px;
    height: 22px;
    background: url(img/geo.png) no-repeat center;
    background-size: 22px;
    flex: 0 0 auto;
    margin-right: 5px;
}

.site-header .phones a {
    display: block;
    margin-left: 5px;
    flex: 0 0 auto;
}

.site-header .adress {}

.panel-wrap {
    display: flex;
    justify-content: center;
    margin: 0 35px;
}

.wrap-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel .logo {
    flex: 0 0 auto;
}

.panel .info {
    margin-left: 15px;
}


.panel .site-title {
    font-size: 18px;
    padding: 0;
    margin: 0;
}

.panel .site-description {
    font-size: 14px;
    padding: 0;
    margin: 0;
}

.main-navigation,
.nav-panel {
    border-top: 1px solid #ececee;
    border-bottom: 1px solid #ececee;
}

.nav-menu {
    align-items: center;
    justify-content: center;
}

.nav-menu li a {
    display: block;
    text-transform: uppercase;
    padding: 20px 20px;
}

.site-header .current-menu-item a {
    color: #cca776;
}

/* Content */

.wrap-title {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 40px;
    background: url(img/bg02.jpg) no-repeat center;
    background-size: cover;
}

h1.home-title {
    text-align: center;
    color: #fff;
    font-weight: 400;
    font-size: 46px;
}

h1.home-title span {
    font-size: 36px;
}

/* Contact form all page */

#secondary .wpforms-widget .wpforms-field-container {
    max-width: 600px;
}

#secondary .wpforms-widget .wpforms-field {
    display: flex;
    position: relative;
    align-items: center;
}

#secondary .wpforms-widget .wpforms-field-label {
    max-width: 100%;
    flex: 1 0 30%;
}

#secondary .wpforms-widget .wpforms-field-medium {
    max-width: 100%;
}

.wpforms-widget {}

.wpforms-container-full .wpforms-form .wpforms-submit-container {
    text-align: center;
}

.wpforms-container-full .wpforms-form label.wpforms-error {
    position: absolute;
    right: 10px;
}

#secondary .wpforms-container-full .wpforms-form button[type=submit] {
    color: #cca776;
    background: #fff;
    border: 1px solid #cca776;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 18px;
    font-family: 'Roboto Slab', serif;
}

/* Contact form page */

/* Footer */

.footer {
    background-color: #181d26;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
}

.footer-box {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 3fr 2fr 2fr;
}

.footer-box .column {
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-box .list {
    margin-top: 22px;
}

.footer-box .list span {
    font-weight: 400;
}

.footer-box .list p,
.footer-box .list li {
    margin-bottom: 11px;
}

.footer h4 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1.88889;
    font-weight: 400;
}

.footer a {
    color: #cca776;
}

.footer a:hover {
    color: #fff;
    transition: .33s all ease;
}

.footer .rights {
    background-color: #141920;
    padding: 30px 0;
    text-align: center;
    font-weight: 400;
}

.social-box {
    display: flex;
    flex-flow: row wrap;
}

.social-box li a {
    display: block;
    width: 50px;
    height: 50px;
    margin-right: 20px;
    transition: .33s all ease;
}

.icon-facebook {
    background: url(img/icon-facebook.png) top no-repeat;
}

.icon-facebook:hover {
    background: url(img/icon-facebookw.png) top no-repeat;
    transition: .33s all ease;
}

.icon-twit {
    background: url(img/icon-twitter.png) top no-repeat;
}

.icon-twit:hover {
    background: url(img/icon-twitterw.png) top no-repeat;
    transition: .33s all ease;
}

.icon-insta {
    background: url(img/icon-instagram.png) top no-repeat;
}

.icon-insta:hover {
    background: url(img/icon-instagramw.png) top no-repeat;
}

.icon-erau {
    background: url(img/icon-erau.png) top no-repeat;
}

.icon-erau:hover {
    background: url(img/icon-erauw.png) top no-repeat;
    transition: .33s all ease;
}

.icon-viber {
    background: url(img/icon-viber.png) top no-repeat;
}

.icon-viber:hover {
    background: url(img/icon-viberw.png) top no-repeat;
    transition: .33s all ease;
}


@media screen and (max-width: 960px) {

    .site-header .add-info,
    .panel .site-description,
    .ebaut {
        display: none;
    }

    h2,
    h3 {
        font-size: 28px;
    }

    .footer-box {
        grid-template-columns: 1fr;
    }

    .swiper-container {
        height: 250px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-desc {
        font-size: 12px;
    }

    .top-panel {
        background-color: #141920;
    }

    .site-header .phones a {
        color: #fff;
    }

    .top-panel-wrap {
        width: auto;
    }

    .wrap-title {
        padding-top: 20px;
        padding-bottom: 0px;
    }

    #secondary .wpforms-widget .wpforms-field {
        flex-direction: column;
        align-items: flex-start;
    }

    .wp-block-image .alignright,
    .wp-block-image .alignleft {
        margin-left: 0;
        margin-right: 0;
    }
}