/*
  Theme Name: ВМ Редизайн
  Version: 1.0
*/

@import "./css/normalize.css?v=2";
@import "./css/general.css?v=2";
@import "./css/header.css?v=2";
@import "./css/nav.css?v=2";
@import "./css/calendar.css?v=2";
@import "./css/calendar.ajax.css?v=2";
@import "./css/new.css?v=2";
@import "./css/analytics.css?v=2";
@import "./css/video.css?v=2";
@import "./css/history.css?v=2";
@import "./css/owl.css?v=2";
@import "./css/sermons.css?v=2";
@import "./css/footer.css?v=2";


html {
    font-family: sans-serif;
    line-height: 1.15;
    box-sizing: border-box;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    text-decoration-skip-ink: none;
}

@-ms-viewport {
    width: device-width;
}

article,
aside,
dialog,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

body {
    font-family: var(--f-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    color: #000;
    background-color: #fff;
}

[tabindex='-1']:focus {
    outline: none !important;
}

hr {
    overflow: visible;
    box-sizing: content-box;
    height: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

abbr[title],
abbr[data-original-title] {
    cursor: help;
    text-decoration: underline;
    text-decoration: underline dotted;
    border-bottom: 0;
}

address {
    font-style: normal;
    line-height: inherit;
    margin-bottom: 1rem;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
    margin-bottom: 0;
}

dt {
    font-weight: 700;
}

dd {
    margin-bottom: 0.5rem;
    margin-left: 0;
}

blockquote {
    margin: 0 0 1rem;
}

dfn {
    font-style: italic;
}

b,
strong {
    font-weight: bolder;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

a {
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-decoration: underline;
    color: #CEA056;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

a:hover {
    text-decoration: none;
    color: #CEA056;
}

a:not([href]):not([tabindex]) {
    text-decoration: none;
    color: inherit;
}

a:not([href]):not([tabindex]):focus,
a:not([href]):not([tabindex]):hover {
    text-decoration: none;
    color: inherit;
}

a:not([href]):not([tabindex]):focus {
    outline: 0;
}

a:focus {
    outline: none;
}

pre,
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

pre {
    overflow: auto;
    margin-top: 0;
    margin-bottom: 1rem;
}

figure {
    margin: 0 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

svg:not(:root) {
    overflow: hidden;
}

a,
area,
button,
[role='button'],
input,
label,
select,
summary,
textarea {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

table {
    border-collapse: collapse;
}

caption {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    caption-side: bottom;
    text-align: left;
    color: #868e96;
}

th {
    text-align: left;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

button:focus {
    outline: none;
}

input,
button,
select,
optgroup,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    outline: none;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
html [type='button'],
[type='reset'],
[type='submit'] {
    cursor: pointer;
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

input[type='radio'],
input[type='checkbox'] {
    box-sizing: border-box;
    padding: 0;
}

input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
    -webkit-appearance: listbox;
}

textarea {
    overflow: auto;
    resize: vertical;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    font-size: 1.5rem;
    line-height: inherit;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
    padding: 0;
    white-space: normal;
    color: inherit;
}

progress {
    vertical-align: baseline;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    outline-offset: -2px;
    -webkit-appearance: none;
}

[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

output {
    display: inline-block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none !important;
}

iframe {
    border: none;
}

/**
* Общие
*/

.wrapper {
    overflow: hidden;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.embed-responsive {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.embed-responsive::before {
    display: block;
    content: '';
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive-21by9::before {
    padding-top: 42.857143%;
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.embed-responsive-4by3::before {
    padding-top: 75%;
}

.embed-responsive-1by1::before {
    padding-top: 100%;
}

.btn {
    display: inline-block;
    vertical-align: bottom;
    background-color: #CEA056;
    border: 1px solid #ffffff;
    border-radius: 0px;
    padding: 15px 30px;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
}

.btn:hover {
    text-decoration: none;
    background-color: #CEA056;
    color: #000000;
    border-color: #CEA056;
}

/**
* Шапка
*/

.bar {
    background-color: #642d0f;
}

.bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bar__search {
    margin-left: 10px;
}

.search-form {
    position: relative;
    width: 264px;
}

.search-form__control {
    display: block;
    width: 100%;
    height: 36px;
    background-color: transparent;
    padding: 0 40px 0 10px;
    border: none;
    border-left: 1px solid #aa7254;
    border-right: 1px solid #aa7254;
    color: #aa7254;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
}

.search-form__control:focus {
    color: #000;
    background-color: #fff;
    border-left-color: #fff;
    border-right-color: #fff;
}

.search-form__control::-webkit-input-placeholder {
    color: #aa7254;
    opacity: 1;
    transition: all .3s;
}

.search-form__control:focus::-webkit-input-placeholder {
    opacity: 0;
}

.search-form__control::-moz-placeholder {
    color: #aa7254;
    opacity: 1;
    transition: all .3s;
}

.search-form__control:focus::-moz-placeholder {
    opacity: 0;
}

.search-form__control:-ms-input-placeholder {
    color: #aa7254;
    opacity: 1;
    transition: all .3s;
}

.search-form__control:focus::-ms-input-placeholder {
    opacity: 0;
}

.search-form__control::-ms-input-placeholder {
    color: #aa7254;
    opacity: 1;
    transition: all .3s;
}

.search-form__control:focus::-ms-input-placeholder {
    opacity: 0;
}

.search-form__control::placeholder {
    color: #aa7254;
    opacity: 1;
    transition: all .3s;
}

.search-form__control:focus::placeholder {
    opacity: 0;
}

.search-form__btn {
    position: absolute;
    top: 50%;
    right: 5px;
    margin-top: -15px;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form__btn svg {
    fill: #aa7254;
}

.header {
    padding: 16px 0;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo__link {
    display: block;
    text-decoration: none;
}

.header__address {
    padding-left: 26px;
    color: #1f1a17;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    background: url(img/ico-address.svg) 0 center / 14px 20px no-repeat;
}

.header__timework {
    padding-left: 28px;
    color: #1f1a17;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    background: url(img/ico-timework.svg) 0 center / 20px 20px no-repeat;
}

.header__timework span {
    font-weight: 700;
}

.header__phone {
    padding-left: 30px;
    color: #1f1a17;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    background: url(img/ico-phone.svg) 0 center / 19px 19px no-repeat;
}

.header__phone-link,
.header__phone-link:hover{
    text-decoration: none;
    color: #1f1a17;
}

.header__phone-link span{
    font-weight: 700;
}

.header__toggle {
    display: none;
}

.main-nav {
    padding: 0 20px;
    margin-bottom: -35px;
    position: relative;
    z-index: 8;
    background-color: #fbfbfb;
    border: 1px solid #e8e8e8;
}

.error404 .main-nav {
    margin-bottom: 0;
}

.nav-toggle {
    display: none;
}

.main-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
}

.main-menu > li > a {
    position: relative;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
}

.main-menu > li:hover > a,
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a,
.main-menu > li.current-page-ancestor > a,
.main-menu > li.current-post-ancestor > a,
.main-menu > li.menu-item-has-children_open > a {
    color: #CEA056;
    border-bottom-color: #CEA056;
}

.main-menu > li > .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.main-menu > li.menu-item-has-children_open > .sub-menu {
    display: block;
}

.main-menu > li > .sub-menu > li {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 10px;
}

.main-menu > li > .sub-menu > li:last-child {
    margin-bottom: 0;
}

.main-menu > li > .sub-menu > li > a {
    color: #1f1a17;
    text-decoration: none;
    padding-left: 14px;
    position: relative;
    display: block;
}

.main-menu > li > .sub-menu > li > a:before {
    content: '';
    display: block;
    position: absolute;
    top: 7px;
    left: 0;
    width: 5px;
    height: 5px;
    background-color: #1f1a17;
    border-radius: 50%;
    transition: all .3s;
}

.main-menu > li > .sub-menu > li > a:hover,
.main-menu > li > .sub-menu > li.current-menu-item > a {
    color: #CEA056;
    text-decoration: none;
}

.main-menu > li > .sub-menu > li:hover a:before,
.main-menu > li > .sub-menu > li.current-menu-item a:before {
    background-color: #CEA056;
}

/**
* Соц. кнопки
*/

.social {
    display: flex;
}

.social__item:not(:last-child) {
    margin-right: 5px;
}

.social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #aa7254;
    border-radius: 50%;
}

.social_header .social__btn {
    border-color: #aa7254;
}

.social_footer .social__btn {
    border-color: #642d0f;
}

.social__btn svg {
    transition: all .3s;
}

.social_header .social__btn svg {
    fill: #aa7254;
}

.social_footer .social__btn svg {
    fill: #642d0f;
}

.social__btn:hover {
    background-color: #CEA056;
    border-color: #CEA056;
}

.social__btn:hover svg {
    fill: #fff;
}

/**
* Инстаграм
*/

.instagram__list {
    display: flex;
}

.instagram__item {
    width: 16.66666666666667%;
}

.instagram__item img {
    width: 100%;
}

/**
* Подвал
*/

.footer {
    padding: 40px 0;
    background-color: #f5f3f2;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.footer__widget {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 40px;
}

.footer__logo {
    margin-bottom: 30px;
}

.footer__desc {
    color: #1f1a17;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.footer__desc p:not(:last-child) {
    margin-bottom: 10px;
}

.footer__title {
    position: relative;
    color: #1f1a17;
    font-family: var(--f-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    padding-bottom: 25px;
    margin: 0 0 30px 0;
}

.footer__title:before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 5px;
    background-color: #CEA056;
}

.footer__address {
    color: #1f1a17;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    padding-left: 28px;
    margin-bottom: 25px;
    background: url(img/ico-address.svg) 3px 0 / 14px 20px no-repeat;
}

.footer__phone {
    color: #1f1a17;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    padding-left: 28px;
    margin-bottom: 25px;
    background: url(img/ico-phone.svg) 0 center / 19px 19px no-repeat;
}

.footer__phone-link,
.footer__phone-link:hover {
    color: #1f1a17;
    text-decoration: none;
}

.footer__phone-link span {
    font-weight: 700;
}

.footer__timework {
    color: #1f1a17;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    padding-left: 28px;
    margin-bottom: 25px;
    background: url(img/ico-timework.svg) 0 center / 20px 20px no-repeat;
}

.footer__timework span {
    font-weight: 700;
}

.footer__email {
    color: #1f1a17;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    padding-left: 28px;
    margin-bottom: 25px;
    padding-top: 1px;
    padding-bottom: 1px;
    background: url(img/ico-email.svg) 1px center / 18px 21px no-repeat;
}

.footer__social {
    margin-top: 30px;
}

.footer__copyright {
    text-align: center;
    padding-top: 24px;
    color: #1f1a17;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
    border-top: 1px solid #cacaca;
}

.footer__copyright a {
    color: #1f1a17;
    text-decoration: none;
}

.footer__copyright a:hover {
    text-decoration: underline;
}

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

.footer-menu li a {
    display: inline-block;
    vertical-align: bottom;
    text-decoration: none;
    color: #1f1a17;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.footer-menu li a:hover,
.footer-menu li.current-menu-item > a,
.footer-menu li.current-menu-ancestor > a {
    color: #CEA056;
}

.footer-menu > li > a {
    padding-left: 14px;
    position: relative;
}

.footer-menu > li > a:before {
    content: '';
    display: block;
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    background-color: #1f1a17;
    border-radius: 50%;
    transition: all .3s;
}

.footer-menu > li > a:hover:before,
.footer-menu > li.current-menu-ancestor > a:before,
.footer-menu > li.current-menu-item > a:before {
    background-color: #CEA056;
}

.footer-menu .sub-menu {
    margin: 0;
    padding: 0 0 0 34px;
    list-style: none;
    display: none;
}

.footer-menu .menu-item-has-children_open .sub-menu,
.footer-menu .current-menu-ancestor .sub-menu {
    display: block;
}

/**
* Стрелка наверх
*/

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: none;
}

.scroll-top__btn {
    display: block;
    width: 50px;
    height: 50px;
    opacity: 0.5;
    background: #CEA056 url(img/ico-arrow-scroll-top.svg) center center / 22px 14px no-repeat;
}

.scroll-top__btn:hover {
    opacity: 1;
}

/**
* Типографика
*/

.heading {
    color: #1f1a17;
    font-family: var(--f-display) !important;
    font-size: 30px;
    font-weight: 400;
    /* font-weight: 700; */
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    margin: 30px 0 30px 0;
    position: relative;
    padding-bottom: 17px;
}

.heading_md {
    font-size: 35px;
}

.heading:before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    /* left: 50%; */
    width: 100%;
    height: 2px;
    background-color: #16683f;
    margin-left: 0px;
}

.article {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.333333333333333;
}

.article h1:not(.heading),
.article h2:not(.heading),
.article h3:not(.heading),
.article h4:not(.heading),
.article h5:not(.heading),
.article h6:not(.heading) {
    margin: 0 0 24px 0;
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.article h1:not(.heading) {
    font-size: 40px;
}

.article h2:not(.heading) {
    font-size: 34px;
}

.article h3:not(.heading) {
    font-size: 28px;
}

.article h4:not(.heading) {
    font-size: 24px;
}

.article h5:not(.heading) {
    font-size: 18px;
}

.article h6:not(.heading) {
    font-size: 16px;
}

.article p {
    margin-bottom: 24px;
}

.article p:last-child {
    margin-bottom: 0;
}

.article blockquote {
    padding: 60px 80px;
    background: #f5f3f2 url(img/ico-quote.svg) 20px 20px / 56px 44px no-repeat;
    margin: 24px 0;
    text-align: center;
    font-style: italic;
}

.article blockquote.accent {
    background-size: 55px 47px;
    background-position: 20px 20px;
    background-image: url(img/ico-accent.svg);
}

.article ul,
.article ol {
    padding: 0;
    margin: 0 0 24px 0;
    list-style: none;
}

.article ul li,
.article ol li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}

.article ul li:last-child,
.article ol li:last-child {
    margin-bottom: 0;
}

.article ul li:before {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 7px;
    height: 7px;
    background-color: #CEA056;
    border-radius: 50%;
}

.article ol {
    counter-reset: list;
}

.article ol li:before {
    counter-increment: list;
    content: counter(list);
    display: block;
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #CEA056;
    border-radius: 50%;
    color: #fff;
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-bottom: 20px;
    margin-left: 20px;
}

.date {
    text-align: center;
    color: #642d0f;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 30px 0;
}

.wp-block-table {
    max-width: 946px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.wp-block-table td {
    border: 1px solid #e8e8e8;
    padding: 15px;
}

.wp-block-table tr:nth-child(2n+2) {
    background-color: #fbfbfb;
}

/**
* Модальные окна
*/

.popup {
    display: none;
    width: 100%;
    max-width: 720px;
    -webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
    transition: opacity 0.2s, -webkit-transform 0.2s;
    transition: transform 0.2s, opacity 0.2s;
    transition: transform 0.2s, opacity 0.2s, -webkit-transform 0.2s;
    -webkit-transform: translateY(50px);
    -ms-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
}

.fancybox-slide .popup {
    padding: 0;
    background: none;
}

.fancybox-slide--current .popup {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

.fancybox-is-closing .popup {
    -webkit-transform: scale(1.5);
    -ms-transform: scale(1.5);
    transform: scale(1.5);
    opacity: 0;
}

.popup .fancybox-close-small {
    z-index: 40;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: url(img/ico-close-modal.svg) center center no-repeat;
    background-size: 16px 16px;
}

.popup .fancybox-close-small:after {
    display: none;
}

.popup .fancybox-close-small:hover {
    opacity: 0.8;
}

.popup__body {
    padding: 50px 30px;
    background: #fff;
}

/**
* Новости
*/

.post-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.post-list__item {
    width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 50px;
}

.post-list_photo .post-list__item {
    margin-bottom: 30px;
}

.post-item__inner {
    padding-top: 25px;
    padding-bottom: 10px;
    border-left: 1px solid #cacaca;
}

.post-item__title {
    color: #1f1a17;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-item__title-link {
    padding-left: 25px;
    position: relative;
    color: #1f1a17;
    text-decoration: none;
    display: block;
    min-height: 54px;
}

.post-item__title-link:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 36px;
    background-color: #CEA056;
}

.post-item__bar {
    display: flex;
    padding: 0 25px;
}

.post-item__date {
    padding-left: 30px;
    color: #1f1a17;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
    background: url(img/ico-date.svg) 0 center / 20px 20px no-repeat;
    margin-right: 30px;
}

.post-item__photo {
    background: url(img/ico-photo.svg) center center / 21px 18px no-repeat;
    width: 21px;
    height: 20px;
    margin-right: 20px;
}

.post-item__video {
    background: url(img/ico-video.svg) center center / 22px 16px no-repeat;
    width: 22px;
    height: 20px;
}

.news__more {
    text-align: center;
}

/**
* Фотобанк
*/

.photo-item {
    position: relative;
    padding-top: 10px;
    padding-right: 10px;
}

.photo-item__link {
    display: block;
    text-decoration: none;
    position: relative;
}

.photo-item__link:before {
    content: '';
    display: block;
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: 10px;
    left: 10px;
    background-color: #e8e8e8;
    transition: all .3s;
}

.photo-item__link:after {
    content: '';
    display: block;
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: 5px;
    left: 5px;
    background-color: #d3d3d3;
    transition: all .3s;
}

.photo-item__link:hover:before {
    opacity: 0;
}

.photo-item__link:hover:after {
    background-color: #CEA056;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
}

.photo-item__img {
    position: relative;
    z-index: 1;
}

.photo-item__img img, .post-item__img img {
    width: 100%;
	max-height:234px;
	object-fit: cover;
}

.photo-item__inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s;
}

.photo-item__link:hover .photo-item__inner {
    opacity: 0;
}

.photo-item__title {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 25px;
}

.photo-item__bar {
    display: flex;
}

.photo-item__date {
    padding-left: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
    background: url(img/ico-date-white.svg) 0 center / 20px 20px no-repeat;
    margin-right: 30px;
}

.photo-item__count {
    padding-left: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
    background: url(img/ico-photo-white.svg) 0 center / 21px 18px no-repeat;
}

/**
* Результаты поиска
*/

.search-list__item {
    border-bottom: 1px solid #cacaca;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.search-list__title {
    color: #1f1a17;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    text-transform: uppercase;
}

.search-list__link {
    position: relative;
    color: #1f1a17;
    text-decoration: none;
    display: block;
}

/**
* Пагинация
*/

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.pagination .page-numbers {
    display: block;
    margin: 3px;
    width: 36px;
    height: 36px;
    background-color: #fff;
    border: 1px solid #1f1a17;
    color: #1f1a17;
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 400;
    line-height: 34px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

.pagination .page-numbers:not(.dots):hover,
.pagination .page-numbers.current {
    color: #CEA056;
    border-color: #CEA056;
    text-decoration: none;
}

.main_404 {
    text-align: center;
    padding: 50px 0;
}

/**
* Медиазапросы
*/

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 990px;
    }

    .main-menu {
        display: flex;
    }

    .main-menu > li {
        margin-right: 20px;
        position: relative;
    }

    .main-menu > li > a {
        text-align: center;
        display: flex;
        align-items: center;
        width: 100%;
        height: 68px;
    }

    .main-menu > li:last-child {
        margin-right: 0;
    }

    .main-menu > li > .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 500;
        width: 195px;
        padding: 15px 8px;
        background-color: #fbfbfb;
        border: 1px solid #CEA056;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

@media (max-width: 1199px) {
	.photo-item__img img, .post-item__img img {
		max-height: 193px;
		object-fit: cover;
	}
	.img-fluid {
		height: 400px!important;
	}
    .header__logo {
        width: 260px;
    }

    .main-nav {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-menu>li {
        margin-right: 10px;
    }

    .main-menu>li>a {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .header {
        height: 84px;
    }

    .header__logo {
        width: 218px;
    }

    .header__toggle {
        display: block;
    }

    .header__address,
    .header__timework,
    .header__phone {
        display: none;
    }

    .nav-toggle {
        position: relative;
        display: block;
        width: 30px;
        height: 30px;
        padding: 0;
        cursor: pointer;
        border: none;
        background: url(img/ico-menu.svg) center center / 24px auto no-repeat;
    }
    
    .nav-toggle_active {
        transform: rotate(90deg);
    }

    .main-nav {
        margin: 0 0 20px 0;
        display: none;
    }

    .main-menu > li {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .main-menu > li > a {
        font-size: 14px;
        line-height: 20px;
        display: inline-block;
        vertical-align: bottom;
    }

    .main-menu > li > .sub-menu {
        padding: 15px 10px 0 10px;
    }

    .alignleft,
    .aligntight {
        float: none;
        display: table;
        margin: 0 auto;
    }

    .heading {
        font-size: 45px;
    }

    .heading_md {
        font-size: 34px;
    }

    .date {
        font-size: 18px;
    }

    .footer__inner {
        flex-wrap: wrap;
    }

    .footer__widget {
        width: 33.333333%;
    }

    .footer__widget_main {
        width: 100%;
    }

    .scroll-top {
        bottom: 10px;
        right: 10px;
    }

    .scroll-top__btn {
        width: 36px;
        height: 36px;
    }

    .scroll-top__btn:after {
        left: 8px;
        bottom: 11px;
    }
    .post-list__item {
        width: 50%;
    }
}
@media (max-width: 751px) {
.photo-item__img img, .post-item__img img {	
	height: 200px;
    object-fit: cover;
	}
}
@media (max-width: 767px) {
    .footer__widget {
        width: 50%;
    }
	
	.img-fluid {
		height: 300px!important;
	}

    .footer__widget_main,
    .footer__widget_map {
        width: 100%;
    }

    .instagram__list {
        flex-wrap: wrap;
    }

    .instagram__item {
        width: 33.333333%;
    }

    .article blockquote {
        padding: 100px 30px 40px 30px;
        background-position: center 30px;
    }

    .article blockquote.accent {
        background-position: center 30px;
    }

    .pagination .page-numbers {
        margin: 2px;
        width: 30px;
        height: 30px;
        line-height: 28px;
        font-size: 15px;
    }

    .post-list__list {
        margin-left: -10px;
        margin-right: -10px;
    }

    .post-list__item {
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .post-list_photo .post-list__item {
        margin-bottom: 20px;
    }

    .wp-block-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wp-block-table td:not(:first-child) {
        min-width: 220px;
        padding: 10px;
    }
}

@media (max-width: 575px) {
    .search-form {
        width: 100%;
    }

    .search-form__control {
        border: none;
    }
}

@media (max-width: 425px) {
    .heading {
        font-size: 35px;
    }
	
    .heading_md {
        font-size: 28px;
    }

    .footer__widget {
        width: 100%;
    }

    .instagram__item {
        width: 50%;
    }

    .article {
        font-size: 16px;
        line-height: 22px;
    }

    .article ul li:before {
        top: 9px;
    }

    .article ol li:before {
        top: 1px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
        line-height: 18px;
    }

    .post-list__item {
        width: 100%;
    }

    .post-item__img img {
        width: 100%;
    }

    .post-list__title-link {
        min-height: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 375px) {
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .heading {
        font-size: 31px;
    }
}