/*
Theme Name: SP Theme
Theme URI: https://cms3.ru/wordpress-pustaya-tema/
Author: Alex Kuimov
Author URI: https://cms3.ru
Description: The blank wordpress theme
Version: 1.0.0
Text Domain: sp-theme
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* общие */

*, 
*:focus, 
*:active {
    outline: 0;
}

button:focus {
    outline: 0;
}
.btn:focus, 
.btn.focus {
    box-shadow: none;
}
a {
    color: inherit;
}
a:hover {
    text-decoration: none;
    color: inherit;
}
img {
    width: 100%;
    height: 100%;
}


/* header */

.header {
    position: relative;
}
.header_bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}
.social-networks {
    display: flex;
    align-items: center;
}
.social-networks a {
    display: block;
    width: 25px;
    height: 25px;
    margin-right: 30px;
}
.poor-vision {
    position: relative;
    padding-left: 35px;
}
.poor-vision img {
    max-width: 25px;
    position: absolute;
    left: 0;
    top: 2px;
}
.poor-vision a.bvi-link-shortcode {
    display: block;
    color: #fff;
    border-bottom: 1px solid #fff;
    background: none!important;
    padding: 0!important;
}
.poor-vision a.bvi-link-shortcode svg {
    display: none!important;
}
.top-navigation-wrapper {
    margin: 10px 0 40px;
}
.top-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0px 4px 25px rgb(0 0 0 / 25%);
    border-radius: 10px;
    padding: 15px 30px;
}
.nav .menu-item {
    margin-right: 20px;
    position: relative;
}
.nav .menu-item a {
    color: #000;
    padding: 3px;
    display: block;
}
.nav > .menu-item:hover > a,
.nav > .current-menu-item > a {
    border-bottom: 2px solid #0162CF;
}

.nav > li > .sub-menu {
    display: none;
    position: absolute;
    list-style: none;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 30px 25px rgb(0 0 0 / 25%);
    min-width: 300px;
    z-index: 99;
}
.nav > li:hover > .sub-menu {
    display: block;
}
.nav > li .sub-menu > li {
    position: relative;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid;
}
.nav > li .sub-menu > li > a {
    padding: 0;
}
.nav > li .sub-menu > li:hover {
    border-bottom: 1px solid #0162CF;
}
.nav > li .sub-menu > li:hover > a {
    color: #0162CF;
}
.nav > li .sub-menu > .current_page_item > a {
    color: #0162CF;
    font-weight: 600;
}

.nav > li > .sub-menu > li > ul {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100%);
    padding: 20px;
    list-style: none;
    background: #fff;
    box-shadow: 0px 30px 25px rgb(0 0 0 / 25%);
    min-width: 300px;
}
.nav > li > .sub-menu > li:hover > ul {
    display: block;
}

.site-branding {
    display: flex;
    align-items: center;
    padding-bottom: 80px;
}
.site-logo {
    max-width: 160px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    padding-left: 25px;
    color: #fff;
}
.site-title {
    font-size: 36px;
    font-weight: 700;
}
.logo-text span {
    font-size: 22px;
    font-weight: 300;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}
.search-form input[type="submit"] {
    width: 35px;
    height: 100%;
    background: url(./imgs/search-icon.svg) no-repeat center;
    border: none;
    position: absolute;
    right: 0;
    cursor: pointer;
}
.search-form input[type="text"] {
    font-size: 15px;
    padding: 6px 20px;
    border-radius: 5px;
    border: 1px solid #0000003b;
}

.header_burger {
    position: absolute;
    right: 15px;
    top: 50px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0;
    font-size: 18px;
    z-index: 3;
}
.header_burger img {
    padding-left: 8px;
    width: 30px;
}
.header_burger.active img:not(.active),
.header_burger .active {
    display: none;
}
.header_burger.active .active {
    display: block;
}
@media (min-width: 992px) {
    .header_burger {
        display: none;
    }
}

@media (max-width: 992px) {
    .header-top {
        padding: 7px 0;
        justify-content: center;
    }
    .header-top__left {
        display: none;
    }
    .site-branding {
        flex-direction: column;
        padding: 25px 0;
    }
    .logo-text {
        padding-left: 0;
        margin-top: 20px;
        align-items: center;
    }
    .site-title {
        text-align: center;
        font-size: 26px;
    }
    .logo-text span {
        text-align: center;
        font-size: 18px;
    }
    .site-logo {
        max-width: 120px;
    } 
    .top-navigation-wrapper {
        margin: 50px 0 0;
        display: none;
    }
    .top-navigation-wrapper.show {
        display: block;
        position: absolute;
        left: 15px;
        width: calc(100% - 30px);
        z-index: 2;
    }
    .top-navigation-wrapper.show .top-navigation {
        padding: 15px;
        box-shadow: 0px 4px 30px 10px rgb(0 0 0 / 25%);
    }
    .nav {
        flex-direction: column;
        width: 100%;
    }
    .nav .menu-item {
        margin: 8px 0;
    }
    .nav .menu-item a {
        font-size: 20px;
        font-weight: 600;
    }
    .search {
        display: none;
    }
}




/* footer */

.footer {
    background: #2755D5;
}
.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}
.footer__site-branding {
    display: flex;
    align-items: center;
    width: 60%;
}
.footer__site-branding > img {
    max-width: 45px;
}
.footer__site-branding > div {
    display: flex;
    flex-direction: column;
    color: #fff;
    padding-left: 25px;
}
.footer__site-branding > div > span {
    font-size: 13px;
}
.footer__site-branding .site-title {
    font-size: 20px;
    margin: 0;
}
.developer {
    max-width: 70px;
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
    }
    .footer__site-branding {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
    }
    .footer__site-branding > div {
        align-items: center;
        padding-left: 0;
        margin-top: 15px;
    }
    .footer__site-branding .site-title {
        font-size: 18px;
        text-align: center;
    }
    .developer {
        max-width: 120px;
    }
}



/* page */

.page,
.post {
    background: #f2f2f2;
    padding: 20px 0 50px;
}
.page-title {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
}
.page-top {
    position: relative;
    padding-bottom: 50px;
    display: none;
}
.entry-content {
    padding: 20px 0;
}
.blue-text {
    color: #2755D5;
}
.ads {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: -75px;
}
.ad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    width: 32.5%;
    border-radius: 16px;
    box-shadow: 0px 5px 35px rgb(0 0 0 / 25%);
}
.ad__left {
    display: flex;
    flex-direction: column;
    padding-right: 15px;
    width: calc(100% - 90px);
}
.ad__left .blue-text {
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 5px;
}
.ad__left strong {
    font-size: 15px;
    line-height: 1.3;
    max-height: 40px;
    overflow: hidden;
}
.ad-date {
    position: relative;
    font-size: 10px;
    color: #221E1E;
    padding-left: 20px;
    padding-top: 5px;
}
.ad-date::before {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background: url(./imgs/ad-date.svg) no-repeat center;
    position: absolute;
    left: 0;
}
.ad-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}
.ad-image > img {
    object-fit: cover;
}


.breadcrumbs {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 7px;
    padding: 12px 30px;
}
.page-row {
    display: flex;
    justify-content: space-between;
}
.page-content {
    width: calc(100% - 370px);
    padding: 30px;
    background: #fff;
    border-radius: 7px;
}
.sidebar {
    width: 360px;
    padding: 30px;
    background: #fff;
    border-radius: 7px;
}
.sidebar .textwidget {
    text-align: center;
}
.sidebar .textwidget img {
    border-radius: 15px;
}
.sidebar .textwidget strong {
    font-size: 24px;
}
.breadcrumbs * {
    font-size: 15px;
    color: #000;
}
.page-bottom {
    margin-top: 30px;
}
.page-bottom {
    margin-top: 25px;
}
.page-bottom__docs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
}
.page-bottom__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 32.5%;
    min-height: 75px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 5px 35px rgb(0 0 0 / 25%);
}
.page-bottom__item.document a {
    font-size: 13px;
    text-decoration: none;
    min-height: auto;
    padding-left: 50px;
}

.post .entry-content,
.default-template {
    font-size: 20px;
}
.default-template img {
    border-radius: 10px;
}
.comments-area {
    display: none;
}

@media (max-width: 992px) {
    .page-row {
        flex-direction: column;
    }
    .page-content {
        width: 100%;
    }
    .sidebar {
        margin: 30px auto;
        width: 100%;
        max-width: 360px;
    }
    .page-top {
        padding-bottom: 10px;
    }
    .ads {
        position: relative;
        top: 0;
        flex-direction: column;
    }
    .ad {
        width: 100%;
        margin-bottom: 15px;
    }
}
@media (max-width: 768px) {
    .page-title {
        font-size: 20px;
    }
    .breadcrumbs {
        padding: 10px 20px;
    }
    .page-content,
    .sidebar {
        padding: 20px;
    }
    .page-bottom__docs {
        flex-direction: column;
    }
    .page-bottom__item {
        width: 100%;
    }
}




/* news list */

.news-item {
    margin-bottom: 40px;
    align-items: center;
}
.news-item:last-of-type {
    margin-bottom: 0;
}
.news-item__img {
    display: block;
    border-radius: 16px;
    overflow: hidden;
}
.news-item__content {
    display: flex;
    flex-direction: column;
}
.news-item__title {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: bold;
    color: #2C2F30;
}
.post-date {
    position: relative;
    font-size: 14px;
    color: #828282;
    padding-left: 25px;
}
.post-date::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: url(./imgs/ad-date.svg) no-repeat center;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .news-item__title {
        margin-bottom: 15px;
        margin-top: 15px;
    }
}

/* personal */

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}
.person__img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.person__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    line-height: 2;
}
.person__name {
    font-size: 22px;
    font-weight: bold;
    color: #2755D5;
    text-align: center;
    line-height: 1.4;
}
.person__post,
.person__phone {
    color: #737373;
    font-weight: bold;
}

@media (max-width: 992px) {
    .person__name {
        text-align: center;
        line-height: 1.2;
        margin-bottom: 5px;
    }
}

/* documents */

.documents {
    list-style: none;
    padding: 0;
    margin: 0;
}
.document {
    margin-bottom: 15px;
}
.document a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    color: #3366BB;
    text-decoration: underline;
    font-size: 18px;
    padding-left: 60px;
}
.document a::before {
    content: '';
    display: block;
    width: 35px;
    height: 45px;
    position: absolute;
    left: 0;
    background: url(./imgs/doc_icon.svg) no-repeat center;
    background-size: contain;
}
.document .document__button {
    display: none;
}

/* search */

.search-template .page-content {
    width: 100%;
}