/* Additions to the styles of the old site */
.offcanvas-menu .nav.menu > li.current-menu-item > a { color: #fff; }
.mtp-page .page-content > .elementor { width: 100%; }

/* Contacts page — inline styles of the SP Page Builder page of the old site */
body .mtp-contacts .e-con > .elementor-widget.elementor-widget-text-editor,
body .mtp-contacts .e-con > .elementor-widget.elementor-widget-shortcode { margin: 0 0 30px 0; }
.mtp-contacts .sppb-ajaxt-contact-form div.sppb-form-group { margin: 0 0 20px 0; }
@media (min-width: 768px) and (max-width: 991px) {
    .mtp-contacts .sppb-ajaxt-contact-form div.sppb-form-group { margin: 0 0 15px 0; }
}
@media (max-width: 767px) {
    .mtp-contacts .sppb-ajaxt-contact-form div.sppb-form-group { margin: 0 0 15px 0; }
}
.mtp-contacts .sppb-ajaxt-contact-form .sppb-form-group input,
.mtp-contacts .sppb-ajaxt-contact-form .sppb-form-group textarea { transition: .35s; }
.mtp-contact .wpcm-honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header of the inner pages: logo + menu ---------- */
#sp-header .mtp-logo { display: table; height: 75px; }
#sp-header .mtp-logo__img { display: table-cell; vertical-align: middle; }
#sp-header .mtp-logo__img { position: relative; }
#sp-header .mtp-logo__mark { display: block; height: 40px; width: auto; }
#sp-header .mtp-logo__circle {
    position: absolute; left: 140px; top: 50%; margin-top: -10px; width: 31px; height: auto;
    animation: mtp-spin 10s linear infinite;
}
@keyframes mtp-spin { to { transform: rotate(360deg); } }
#sp-header .sp-megamenu-wrapper { position: relative; }
#sp-header .sp-megamenu-parent > li { margin-right: 18px; }
#sp-header .sp-megamenu-parent > li:last-child { margin-right: 0; }
#sp-header .sp-megamenu-parent > li > a { font-size: 15px; }
#sp-header .sp-megamenu-parent > li.current-menu-item > a:before { width: 100%; }
/* menu item with the CSS class "mtp-menu-btn" looks like the «УЗНАТЬ СТОИМОСТЬ» button of the home page */
#sp-header .sp-megamenu-parent > li.mtp-menu-btn > a {
    border: 1px solid #fff; border-radius: 30px; padding: 0 20px; line-height: 36px;
    font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
#sp-header .sp-megamenu-parent > li.mtp-menu-btn > a:before { display: none; }
#sp-header .sp-megamenu-parent > li.mtp-menu-btn > a:hover { background: #fff; color: #333; }
@media (max-width: 991px) {
    #offcanvas-toggler { float: right; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    #sp-header .sp-megamenu-parent > li { margin-right: 10px; }
    #sp-header .sp-megamenu-parent > li > a { font-size: 14px; }
}

/* ---------- Footer of the inner pages (as at the bottom of the home page) ---------- */
.mtp-social {
    position: relative; height: 50vh; min-height: 320px;
    background: #000 none center center / cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.mtp-social__filter { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .4); }
.mtp-social__inner { position: relative; z-index: 1; width: 100%; max-width: 760px; padding: 0 20px; }
.mtp-social__title {
    font-family: 'OrchideaPro', Arial, sans-serif; font-weight: 300; font-size: 32px; line-height: 1.23;
    color: #fff; margin-bottom: 50px;
}
.mtp-social__links { font-size: 0; }
.mtp-social__links a { display: inline-block; margin-right: 4px; vertical-align: top; transition: opacity .2s; }
.mtp-social__links a:last-child { margin-right: 0; }
.mtp-social__links a:hover { opacity: .75; }
.mtp-social__links svg { display: block; width: 42px; height: 42px; }
.mtp-footer-bar { background: #000; padding: 20px; color: #fff; }
.mtp-copyright { font: 13px/1.5 Arial, sans-serif; color: rgba(255, 255, 255, .6); text-align: center; margin: 0 0 12px; }

/* ---------- Sidebar widgets (news, articles) ---------- */
#sp-right .sp-module.popular-post .latestnews > div { padding: 12px 25px; }
#sp-right .sp-module.popular-post .latestnews > div + div { border-top: 1px solid #ececec; }
#sp-right .sp-module.popular-post .article-list-img img { width: 50px; height: 50px; object-fit: cover; display: block; border-radius: 3px; }
#sp-right .sp-module.popular-post .latestnews a:hover { color: #866f65; }
#sp-right .sp-module.widget_media_image { padding: 0; background: none; }
#sp-right .sp-module.widget_media_image img { display: block; width: 100%; height: auto; border-radius: 3px; }
#sp-right .sp-module.widget_media_image .wp-caption-text { padding: 8px 0 0; font-size: 13px; }
#sp-right .sp-module + .sp-module { margin-top: 30px; }
#sp-header .sp-megamenu-parent > li > a,
#sp-right .sp-module h3.sp-module-title { text-transform: none; }

/* ---------- Brand colour (#866f65, as the buttons of the home page) on the news list ---------- */
.view-category .item p.readmore a.btn,
.item p.readmore a.btn {
    background-color: #866f65; border-color: #6f5c53; color: #fff;
    border-radius: 5px; padding: 0 22px; font-weight: 400;
}
.view-category .item p.readmore a.btn:hover,
.view-category .item p.readmore a.btn:focus,
.item p.readmore a.btn:hover,
.item p.readmore a.btn:focus { background-color: #6f5c53; border-color: #5c4b43; color: #fff; }
.pagination-wraper .pagination > .active > a,
.pagination-wraper .pagination > .active > a:hover,
.pagination-wraper .pagination > .active > a:focus { background-color: #866f65; border-color: #866f65; color: #fff; }
.pagination-wraper ul.pagination li > a:hover { background-color: #efe7df; color: #000; }
.pagination-wraper ul.pagination li.active > a:hover { background-color: #6f5c53; color: #fff; }
.pagination-wraper ul.pagination li.disabled > a,
.pagination-wraper ul.pagination li.disabled > a:hover { background: none; color: #ccc; }

/* News list: title and intro closer together */
.view-category .entry-info-wrapper .entry-header h2 { margin-bottom: 12px; }

/* Contacts: «Отправить» in the brand colour instead of the green of the old template */
.mtp-contact .sppb-btn-success,
.mtp-contact .sppb-btn-success:focus { background-color: #866f65; border-color: #6f5c53; color: #fff; }
.mtp-contact .sppb-btn-success:hover,
.mtp-contact .sppb-btn-success:active { background-color: #6f5c53; border-color: #5c4b43; color: #fff; }

/* Phone in the header of the inner pages */
#sp-header .mtp-header-phone {
    float: right; margin-left: 22px; line-height: 75px; height: 75px;
    color: #fff; font-size: 15px; white-space: nowrap; text-decoration: none;
}
#sp-header .mtp-header-phone:hover { color: #e3d7c7; }
#sp-header .mtp-header-phone .fa { margin-right: 7px; font-size: 16px; color: #e3d7c7; }
#sp-header .sp-megamenu-parent > li { margin-right: 14px; }
@media (min-width: 992px) and (max-width: 1199px) {
    #sp-header .mtp-header-phone { margin-left: 12px; }
    #sp-header .mtp-header-phone span { display: none; }
    #sp-header .mtp-header-phone .fa { margin-right: 0; font-size: 20px; }
}
@media (max-width: 991px) {
    #sp-header .mtp-header-phone { margin-left: 0; margin-right: 14px; }
    #sp-header .mtp-header-phone span { display: none; }
    #sp-header .mtp-header-phone .fa { margin-right: 0; font-size: 20px; }
}
/* room for the phone on one line with the menu (desktop) */
@media (min-width: 1200px) {
    #sp-header .sp-megamenu-parent > li { margin-right: 12px; }
    #sp-header .sp-megamenu-parent > li > a { font-size: 14px; }
    #sp-header .mtp-header-phone { margin-left: 16px; }
}
@media (min-width: 1200px) {
    #sp-header .sp-megamenu-parent > li { margin-right: 9px; }
    #sp-header .sp-megamenu-parent > li.mtp-menu-btn > a { padding: 0 14px; }
    #sp-header .mtp-header-phone { margin-left: 14px; font-size: 14px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    #sp-header .sp-megamenu-parent > li { margin-right: 6px; }
    #sp-header .sp-megamenu-parent > li > a { font-size: 13px; padding: 0 3px; }
    #sp-header .sp-megamenu-parent > li.mtp-menu-btn > a { padding: 0 10px; font-size: 12px; letter-spacing: 0; }
}
