/*
	Main styles
*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border: 0;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #dfe6e9;
}

a {
    background-color: transparent;
}

a:focus {
    outline: unset;
}

b,
strong {
    font-weight: 700;
}

small {
    font-size: 0.875em
}

main img {
    max-width: 100%;
    height: auto;
    border-style: none;
    border-radius: 5px;
}

button,
input {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    overflow: visible;
}

button {
    text-transform: none;
    -webkit-appearance: button;
}

button::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

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

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.screen-reader-text,
.screen-reader-text span,
.screen-reader-shortcut {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
    color: #333;
    background: #fff
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/
/* ibm-plex-sans-300 - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local(''),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-300.woff2') format('woff2'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-300.woff') format('woff'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-300.ttf') format('truetype'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-300.svg#IBMPlexSans') format('svg');
}

/* ibm-plex-sans-regular - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-regular.woff2') format('woff2'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-regular.woff') format('woff'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-regular.ttf') format('truetype'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-regular.svg#IBMPlexSans') format('svg');
}

/* ibm-plex-sans-600 - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local(''),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-600.woff2') format('woff2'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-600.woff') format('woff'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-600.ttf') format('truetype'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-600.svg#IBMPlexSans') format('svg');
}

/* ibm-plex-sans-700 - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-700.woff2') format('woff2'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-700.woff') format('woff'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-700.ttf') format('truetype'),
        url('../fonts/ibm-plex-sans-v13-latin_cyrillic-700.svg#IBMPlexSans') format('svg');
}

/* noto-serif-regular - latin_cyrillic */
@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
        url('../fonts/noto-serif-v21-latin_cyrillic-regular.woff2') format('woff2'),
        url('../fonts/noto-serif-v21-latin_cyrillic-regular.woff') format('woff'),
        url('../fonts/noto-serif-v21-latin_cyrillic-regular.ttf') format('truetype'),
        url('../fonts/noto-serif-v21-latin_cyrillic-regular.svg#NotoSerif') format('svg');
}

/* noto-serif-700 - latin_cyrillic */
@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''),
        url('../fonts/noto-serif-v21-latin_cyrillic-700.woff2') format('woff2'),
        url('../fonts/noto-serif-v21-latin_cyrillic-700.woff') format('woff'),
        url('../fonts/noto-serif-v21-latin_cyrillic-700.ttf') format('truetype'),
        url('../fonts/noto-serif-v21-latin_cyrillic-700.svg#NotoSerif') format('svg');
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
    position: relative;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: #000;
    line-height: 1.76;
    background-color: #fff;
    overflow-x: hidden;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
}

p:empty,
p:last-child {
    margin-bottom: 0;
}

.site-container-wrap {
    position: relative;
}

.site-container {
    position: relative;
    margin: auto;
    max-width: 1300px;
}

.hide {
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
}

@media screen and (max-width: 980px) {
    .site-container {
        overflow: hidden;
    }
}

/* ## Headings */

h2,
h3,
h4,
h5,
.h1,
.h2,
.h3 {
    font-family: 'Noto Serif', sans-serif;
    line-height: 1.5;
    font-weight: 700;
}

h1 {
    margin-top: 0;
    font-family: 'Noto Serif', sans-serif;
    font-size: 42px;
    line-height: 1.5;
    font-weight: 700;
}

h2,
.h2 {
    font-size: 36px;
}

h3,
.h3 {
    font-size: 26px;
}

.h3,
.h4,
.h5,
.h6,
.h7 {
    font-weight: 600;
    line-height: 1.4;
}

.h4 {
    font-size: 22px;
}

.h5 {
    font-size: 20px;
}

.h6 {
    font-size: 18px;
}

.h7 {
    font-size: 16px;
}

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

    h1,
    h2,
    h3,
    h4,
    h5,
    .h1,
    .h2,
    .h3,
    .h4,
    .h5,
    .h6 {
        word-break: break-word;
    }

    h1 {
        font-size: 32px;
    }
}

/* ## Links */

a,
button,
input:focus {
    transition: .3s
}

a {
    color: #4343a0;
    text-decoration: none;
}

.post a {
    text-decoration: underline;
}

.post a:hover {
    text-decoration: none;
}

/* ## Buttons */

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    display: block;
    padding: 16px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    background-color: #4343a0;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

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

button:not(.search-submit):hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover {
    opacity: .7;
}

.button-arrow {
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-left: -20px;
    padding: 6px 20px 7px;
    font-size: 15px;
    line-height: 1;
    color: #4343a0;
    border-radius: 5px;
    transition: 0.3s linear;
}

.button-arrow:after {
    content: "";
    width: 45px;
    height: 9px;
    margin-left: 20px;
    background-image: url(../img/arrow.png);
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s linear;
}

.button-arrow:hover,
.item:hover .button-arrow {
    margin-left: 0;
    color: #fff;
    text-decoration: none;
    background-color: #4343a0;
}

.button-arrow:hover:after,
.item:hover .button-arrow:after {
    background-image: url(../img/arrow-wh.png);
}

.cross {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cross:before,
.cross:after {
    content: "";
    width: 1px;
}

.cross:before {
    transform: rotate(45deg);
}

.cross:after {
    transform: rotate(-45deg);
}

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

    .button,
    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"] {
        background: linear-gradient(#ffcf27, #ffcf27);
    }
}

/* ## Form */

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="search"],
input[type="text"],
textarea,
select {
    display: block;
    margin: 0;
    padding: 15px 20px;
    width: 100%;
    font-size: 16px;
    color: #303549;
    line-height: 1.3;
    background-color: #fff;
    border: unset;
    border-radius: 10px;
}

select:hover {
    cursor: pointer;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border: 1px solid #e6eaee;
    outline: none
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
    width: auto
}

label {
    display: block;
}

select {
    padding-right: 50px;
    color: #808080;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAFCAYAAACXU8ZrAAAANUlEQVQImYXMuw0AIAwD0Qv7ZVoGPBqK8BGksWw9JYDO52LmC2aUcoMJ0NRl2AEAKgUeH1UGNA0P+kwys8wAAAAASUVORK5CYII=);
    background-position: right 20px center;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none !important;
}

select::-ms-expand {
    display: none;
}

/* ## Placeholder */

::placeholder {
    font-size: 16px;
    color: #414143;
    text-overflow: ellipsis;
    opacity: 0.3;
    transition: opacity ease 0.3s;
}

input:focus::placeholder {
    opacity: 0;
}

/* ## Search */

.search-form {
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding-right: 15px;
    height: 56px;
    background-color: #fff;
    border-radius: 15px;
}

.search-form .search-submit {
    flex-shrink: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    background-image: url(../img/search.png);
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    cursor: pointer;
}

.search-form .search-submit:hover {
    opacity: .5;
}

.search-form input[type="search"] {
    padding-left: 30px;
    padding-right: 0;
    border: 0;
    background: none;
}

.search-form input[type="search"]:focus {
    border: none;
}

@media screen and (max-width: 640px) {
    .search-form {
        flex-basis: unset;
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 90px;
    height: 450px;
    background-color: #e6ebf2;
}

.site-header .left {
    max-width: 500px;
}

.site-header .right {
    width: 380px;
}

.site-header>picture {
    position: absolute;
    top: 0;
    left: calc(-50vw + 50%);
    z-index: -1;
    height: 100%;
    width: 100vw;
    overflow: hidden;
}

.site-header>picture img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 1350px) {
    .site-header {
        padding: 90px 20px 30px;
    }
}

@media screen and (max-width: 980px) {
    .site-header {
        flex-direction: column;
        height: auto;
    }

    .site-header>picture {
        left: auto;
    }

    .site-header>picture img {
        object-position: left;
    }

    .site-header .left {
        display: flex;
        align-items: center;
    }
}

@media screen and (max-width: 640px) {
    .site-header .left {
        justify-content: space-between;
        max-width: 100%;
    }

    .site-header .right {
        max-width: 100%;
    }

    .site-header>picture {
        display: none;
    }
}

/* ## Logo */

.logo {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    color: #000;
}

.logo h1,
.logo .h1 {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 100px;
    line-height: 1;
}

.logo h1 span,
.logo .h1 span {
    position: absolute;
    right: 15px;
    top: 0;
    padding: 4px 15px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background-color: #4343a0;
    border-radius: 14px;
}

.logo .desc {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.logo picture {
    position: absolute;
    top: -70px;
    left: 100px;
}

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

    .logo h1,
    .logo .h1 {
        font-size: 70px;
    }

    .logo h1 span,
    .logo .h1 span {
        top: -10px
    }
}

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

    .logo h1,
    .logo .h1 {
        font-size: 50px;
    }

    .logo h1 span,
    .logo .h1 span {
        top: -15px;
        font-size: 15px;
    }

    .logo picture {
        left: 50px;
    }

    .logo .desc {
        margin-top: 10px;
        font-size: 15px;
    }
}

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

    .logo h1,
    .logo .h1 {
        font-size: 36px;
    }

    .logo h1 span,
    .logo .h1 span {
        top: -15px;
        right: 30px;
    }

    .logo picture {
        top: -50px;
        left: 30px;
    }

    .logo picture img {
        width: 100px;
        height: auto;
    }

    .logo .desc {
        max-width: 220px;
    }
}

/* ## Header right */

.site-header .top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.top .search-form {
    width: 100%;
}

/* ## Social */

.social {
    --gap: 10px;
    position: relative;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.no-flexgap .social {
    margin: calc(-1 * var(--gap)) 0 0 calc(-1 * var(--gap));
    width: calc(100% + var(--gap));
}

.no-flexgap .social>* {
    margin: var(--gap) 0 0 var(--gap);
}

.social a {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.vk {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAOCAMAAAACJixMAAAA/FBMVEVHcExDbqtVVapDbqpDbqtDbqpDcKxVgKpEbqtAgL9DbatDbqtDbqtEbapDbqtBb6pDbatDa65DbqpDbatFbqxEbqtCb6xEbaxEb6xDbqtDbaxCb6tCbqtDbqtDbqpCbqtDa6hEb6tCbqtCb61FbapDbqtDbqtDbatDbqtDbqpDb6xEb6pEbatCbqxEbqtDbas7drFBb6pDbqtDbqtDbqtEbqxDbqtDbqtCbKpDbatDb6tDbqpEbatDb6tDbqtDbqtEba05capAba1DbqtEbqtDbqpDbqtDbqtDbqxCbapDbqtCb6tGdKJDb61DbqtDb6pBbqpDbqtDbqtDbqsk2B+QAAAAU3RSTlMA9wPQ+MdQBsgExv76dVhOoRO+vyWLlmJHo+KtdOXKYSaPqT4/9Oxb4G+fWrGHuT0NJ/v1naLF80KFaqxSeu15RAkc60+7+cmQNtpVCzXdVzPodnzU16gAAAC5SURBVCjPXcvFVsMAAAXRaUusirsVKO4OLe5SbP7/X1gk2eQt555HPwzDe+DyNAiCC4C7j2bz+4cv9foAzs/UI4Cq6i8N1W2gqw4AK6r+8fmgugcnKZTnVd8juFGN4TiFhmrtFthfVd1iU61HiyXVHQAWVDtr66rtimo1AYBhC1tOO6OlAmxkwGwBDnu5DOZpuqJq/TGDaCqDVrKk6vNb/pmYU60NEe2q+pID5cnxmZExILl6iuP49R8gxD2Uto8CTwAAAABJRU5ErkJggg==);
}

.pin {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAABoVBMVEVHcEzWKirRMTHSLy/TLy/TLy/TLy/TLy/TLy/ULy/XKirTLy/TLi7VLS3YMzPTLy/TLy/TLy/TLy/TLy/aNjbTLy/TMDDSNTXTLy/SLy/TLy/TLy/SLy/WKyvSLS3TMTHSMDDRMTHULi7bJyfTLy/TLy/ULy/MNTXULy/YLCzULi7ULy/TMDDTLy/ULi7QLy/TLy/ULCzULy/OMjLSLi7XLCzQMTHSMDDVLCzULi7TLy/XLCzTLi7SLy/ULy/QNDTSLy/RNDTULi7TLCzSLi7SMDDSLy/UMDDSMDDULy/ULy/ULS3ULi7VKyvTLy/ULi7TLy/bJCTTLS3ULi7TLy/TLy/TMDDULy/TLy/VLS3ULi7NNDTWKyvRLi6+Q0PVLi7SMDDzDg7SMTHTMTHULi7PMzPVLCzTLy/TLy/TLy/WLS3TLy/OMTHVLS3SMDDeLCzOMjLRMTHwERG+QEDTLy/aJyfSLi7yDw/QNzfQMzPQMjLRMDDULy/SMDDUNzfWLCzSLy/ULi7ULS3SLi7TLy/hKCjSMTHTLy/SMDDSLy/ULi539/+lAAAAh3RSTlMAO0Vq5vfB9v19pHgmQkHcdIgGbRpD2hL5U6iqYhQUAqv+CcHwLUhLNqDl+cboagNrWfs8OvWRFEmc/ih4iO7Dqh0EAltaYKNA3X7j4wb6fe8DZqTy2M6pRzatJeIqSGbiGmyPwJ++u9/pMuEVjO8TB2I2DROOCwMlqPSgrW82M6aGlMhxBPxDR3ObAAAA5klEQVQoz1WOw3IEAQAFO8nuzmxs27Zt27ZtW2+Sr85hK1U7fetXfXgAzI3MTE1O93TXAEBb07DkHJVUmAOw1vKjifHZ3q7qApWXwdeV1dzZDkC2QwP7PH+b63TUVpQApaY2eNLHJY1SHDC0px1e9c5Fn+QGcOmAR71xKykYYNva5VN3NyfHckQCLFqbvOj+/HRVrelArvG7xfWDzhakfoBUVS3D4dHSiuRqICYsVnme8/MylZ8RLcUnATA2qDp3ZpoREhruCSqd9cUkRwXyT6KKsvAmQgkptiHACLI5fv52x9fHS/4A0Cc6yCPTINQAAAAASUVORK5CYII=);
}

.ok {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAAz1BMVEVHcEz//wD/qgD/jgD/mQD/nwD/nAD/mQD/ngD/mQD/kwD/lwD/mgD/lQD/mAD/mgD/mQD/lwD/mAD/mQD/lwD/mAD/lwD/mAD/mQD/lwD/lwD/mQD/mAD/mQD/mQD/mQD/mAD/lwD/mAD/mAD/mAD/mQD/mAD/mAD/lwD/mAD/mAD/lwD/mAD/mAD/mAD/lwD/mAD/mAD/mAD/mQD/mAD/mQD/mAD/mAD/mAD/mAD/mAD/mAD/mAD/mAD/lwD/mAD/mAD/mAD/mAD/mAD/mADLX6CSAAAARHRSTlMAAQYJChASFBUZGhsmKSorLUBDS0xXWFlaW2xucnN9f4GHiIqNjpKapaaou7y9vsDCw8vMz9HS2drc3eLk5+rr7O3z9flEXRYAAAC6SURBVCjPTY/JQsJAFARLiAoGRcFdEEZZXVFx1xih/v+bPGSi9ul1HV53A0Blfzjcq/Cr5ovq81bp1z40/9b31Qh6eszKiZ5GcOctwMxZBHMnAFPnEVyYrUPty2kELX3tdN50p4w5V9WzvyJHT/p4UNzJzXLcgGoVGuPldcKu6v2o2x09qLZJc/8p34D6YFHaxaBevOkXvp/EjM3PAmTbcXymhqBmzbhNAwSN6640AAS9BCANh7FvSOEHfZsktZNqB3wAAAAASUVORK5CYII=);
}

.social a:hover {
    background-color: #fff;
}

.social-wrap {
    display: flex;
    align-items: center;
}

.site-header .social-wrap {
    flex-direction: row-reverse;
}

.social-wrap span {
    margin-left: 20px;
    max-width: 150px;
    font-size: 12px;
    line-height: 1.3;
    opacity: .5;
}

@media screen and (max-width: 980px) {
    .site-header .top .social-wrap {
        display: none;
    }

    .social {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 640px) {
    .social a {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 400px) {
    .social a {
        margin-bottom: 10px;
    }
}

/*--------------------------------------------------------------
# Menu
--------------------------------------------------------------*/

.menu {
    position: relative;
    display: flex;
    margin: 0;
    padding: 0;
    line-height: 1;
    list-style: none;
}

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

@media screen and (min-width: 981px) {
    .header-menu {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;
        margin-top: -70px;
    }

    /* ## Primary menu */
    .primary-menu .menu {
        align-items: center;
        flex-wrap: wrap;
    }

    .primary-menu>ul>li {
        position: relative;
        display: flex;
        white-space: nowrap;
    }

    .primary-menu a {
        color: #000;
    }

    .primary-menu>ul>li>a {
        position: relative;
        display: flex;
        align-items: center;
        margin-right: 10px;
        margin-bottom: 10px;
        padding: 10px 20px;
        font-weight: 600;
        font-size: 17px;
        color: #000;
        background-color: #fff;
        border-radius: 15px;
    }

    .primary-menu>ul>li>a:hover,
    .primary-menu>ul>li.current-menu-item>a {
        color: #fff;
        background-color: #4343a0;
        text-decoration: none;
    }

    .primary-menu>ul>li>a:before {
        content: '';
        margin-right: 10px;
        width: 32px;
        height: 32px;
        background-position: center;
        background-repeat: no-repeat;
        transition: .3s;
    }

    .primary-menu>ul>li.cat-1>a:before {
        background-image: url(../img/cat-1.png)
    }

    .primary-menu>ul>li.cat-1:hover a:before,
    .primary-menu>ul>li.cat-1.current-menu-item>a:before {
        background-image: url(../img/cat-1-hover.png)
    }

    .primary-menu>ul>li.cat-2>a:before {
        background-image: url(../img/cat-2.png)
    }

    .primary-menu>ul>li.cat-2:hover a:before,
    .primary-menu>ul>li.cat-2.current-menu-item>a:before {
        background-image: url(../img/cat-2-hover.png)
    }

    .primary-menu>ul>li.cat-3>a:before {
        background-image: url(../img/cat-3.png)
    }

    .primary-menu>ul>li.cat-3:hover a:before,
    .primary-menu>ul>li.cat-3.current-menu-item>a:before {
        background-image: url(../img/cat-3-hover.png)
    }

    .primary-menu>ul>li.cat-4>a:before {
        background-image: url(../img/cat-4.png)
    }

    .primary-menu>ul>li.cat-4:hover a:before,
    .primary-menu>ul>li.cat-4.current-menu-item>a:before {
        background-image: url(../img/cat-4-hover.png)
    }

    .primary-menu>ul>li.cat-5>a:before {
        background-image: url(../img/cat-5.png)
    }

    .primary-menu>ul>li.cat-5:hover a:before,
    .primary-menu>ul>li.cat-5.current-menu-item>a:before {
        background-image: url(../img/cat-5-hover.png)
    }

    .primary-menu>ul>li.cat-6>a:before {
        background-image: url(../img/cat-6.png)
    }

    .primary-menu>ul>li.cat-6:hover a:before,
    .primary-menu>ul>li.cat-6.current-menu-item>a:before {
        background-image: url(../img/cat-6-hover.png)
    }

    .primary-menu>ul>li.cat-7>a:before {
        background-image: url(../img/cat-7.png)
    }

    .primary-menu>ul>li.cat-7:hover a:before,
    .primary-menu>ul>li.cat-7.current-menu-item>a:before {
        background-image: url(../img/cat-7-hover.png)
    }

    .primary-menu>ul>li.cat-8>a:before {
        background-image: url(../img/cat-8.png)
    }

    .primary-menu>ul>li.cat-8:hover a:before,
    .primary-menu>ul>li.cat-8.current-menu-item>a:before {
        background-image: url(../img/cat-8-hover.png)
    }

    .primary-menu li:hover>.sub-menu {
        display: flex;
    }

    .primary-menu li ul {
        position: absolute;
        top: 46px;
        left: 0;
        z-index: 3;
        display: none;
        flex-direction: column;
        margin: 0;
        padding: 12px 0;
        min-width: 250px;
        height: auto;
        list-style: none;
        background-color: #fff;
        box-shadow: 0px 0px 51px 0px rgba(178, 187, 197, 0.43);
        border-radius: 15px;
    }

    .primary-menu li ul li {
        position: relative;
    }

    .primary-menu li ul a,
    .primary-menu .hide-menu a {
        display: block;
        padding: 8px 30px;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
    }

    .primary-menu li ul a:hover {
        text-decoration: underline;
    }

    .primary-menu li ul ul {
        top: 0;
        left: 100%;
    }

    /* ## Hide menu */
    .primary-menu .hide-menu {
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: auto;
        cursor: pointer;
    }

    .primary-menu .hide-menu .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        height: 36px;
        border-radius: 10px;
        transition: 0.3s;
    }

    .primary-menu .hide-menu .burger:hover {
        background-color: #5b4e7d;
    }

    .primary-menu .hide-menu .burger span,
    .primary-menu .hide-menu .burger span:before,
    .primary-menu .hide-menu .burger span:after {
        width: 15px;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }

    .primary-menu .hide-menu .burger span {
        position: relative;
    }

    .primary-menu .hide-menu .burger span:before,
    .primary-menu .hide-menu .burger span:after {
        content: "";
        position: absolute;
    }

    .primary-menu .hide-menu .burger span:before {
        top: -7px;
    }

    .primary-menu .hide-menu .burger span:after {
        top: 7px;
    }

    .primary-menu .hide-menu ul {
        left: unset;
        right: 0;
    }
}

/* ## Mobile menu */

.mobile-menu-button,
#mobile-menu-toggle {
    display: none;
}

@media screen and (max-width: 980px) {
    .header-menu {
        position: absolute;
        top: 100px;
        right: 20px;
    }

    .mobile-menu-button {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        margin-left: 30px;
        width: 60px;
        height: 60px;
        background-color: #ffdd3e;
        border-radius: 5px;
        transition: 0.3s;
        cursor: pointer;
    }

    .mobile-menu-button span {
        position: relative;
    }

    .mobile-menu-button span,
    .mobile-menu-button span:before,
    .mobile-menu-button span:after {
        width: 25px;
        height: 4px;
        background-color: #000;
        border-radius: 2px;
        transition: 0.3s;
    }

    .mobile-menu-button span:before,
    .mobile-menu-button span:after {
        content: "";
        position: absolute;
    }

    .mobile-menu-button span:before {
        top: -8px;
    }

    .mobile-menu-button span:after {
        top: 8px;
    }

    .primary-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding-top: 35px;
        width: 320px;
        font-size: 17px;
        color: #e2e2e2;
        background-color: #303030;
        box-shadow: 0px 0px 29px 0px rgba(104, 136, 209, 0.16);
        transition: -webkit-transform 0.35s ease-out;
        transition: transform 0.35s ease-out;
        transition: transform 0.35s ease-out, -webkit-transform 0.35s ease-out;
        transform: translate3d(-400px, 0, 0);
        overflow-y: scroll;
    }

    .primary-menu ul {
        display: block;
        line-height: 1;
    }

    .primary-menu .top-menu {
        margin-bottom: 0;
    }

    .primary-menu li {
        position: relative;
        border-top: 1px solid #4d4d4d;
    }

    .primary-menu .menu>li:first-child {
        border-top: 0;
    }

    .primary-menu li a {
        display: flex;
        padding: 20px 15px;
        color: #e2e2e2;
    }

    .primary-menu .sub-menu {
        padding: 0;
        list-style: none;
    }

    .top-menu .sub-menu {
        display: none;
    }

    .primary-menu .sub-menu li {
        text-transform: none;
    }

    .primary-menu .sub-menu li a {
        align-items: center;
        padding-left: 40px;
    }

    .primary-menu .sub-menu li a:before {
        content: "";
        flex-shrink: 0;
        margin-right: 10px;
        width: 3px;
        height: 10px;
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFAQMAAAC6v8ThAAAABlBMVEVHcEwAmqjMic0bAAAAAXRSTlMAQObYZgAAABBJREFUeNpjaGA4wPAAiBsAEOoDYca3kSkAAAAASUVORK5CYII=);
        filter: grayscale(100%);
        opacity: 0.8;
        background-position: center;
        background-repeat: no-repeat;
    }

    #mobile-menu-toggle:checked~.primary-menu {
        transform: translate3d(0, 0, 0);
    }

    .primary-menu .cross {
        position: absolute;
        top: 0;
        right: 10px;
        z-index: 100;
        margin-bottom: 5px;
        margin-top: 10px;
        width: 30px;
        height: 30px;
    }

    .primary-menu .cross:before,
    .primary-menu .cross:after {
        height: 30px;
        background-color: #fff;
    }

    body.mobile-menu-active {
        overflow: hidden;
    }

    /* ## Menu toggle */
    .toggle {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 57px;
        background-color: rgba(255, 255, 255, 0.09);
        cursor: pointer;
    }

    .toggle:hover {
        background-color: rgba(255, 255, 255, 0.13);
    }

    .toggle:before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnN2Z2pzPSJodHRwOi8vc3ZnanMuY29tL3N2Z2pzIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDYxMiA2MTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUxMiA1MTIiIHhtbDpzcGFjZT0icHJlc2VydmUiIGNsYXNzPSIiPjxnPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPGcgaWQ9Il94MzFfMF8zNF8iPgoJCTxnPgoJCQk8cGF0aCBkPSJNNjA0LjUwMSwxMzQuNzgyYy05Ljk5OS0xMC4wNS0yNi4yMjItMTAuMDUtMzYuMjIxLDBMMzA2LjAxNCw0MjIuNTU4TDQzLjcyMSwxMzQuNzgyICAgICBjLTkuOTk5LTEwLjA1LTI2LjIyMy0xMC4wNS0zNi4yMjIsMHMtOS45OTksMjYuMzUsMCwzNi4zOTlsMjc5LjEwMywzMDYuMjQxYzUuMzMxLDUuMzU3LDEyLjQyMiw3LjY1MiwxOS4zODYsNy4yOTYgICAgIGM2Ljk4OCwwLjM1NiwxNC4wNTUtMS45MzksMTkuMzg2LTcuMjk2bDI3OS4xMjgtMzA2LjI2OEM2MTQuNSwxNjEuMTA2LDYxNC41LDE0NC44MzIsNjA0LjUwMSwxMzQuNzgyeiIgZmlsbD0iI2ZmZmZmZiIgZGF0YS1vcmlnaW5hbD0iIzAwMDAwMCIgc3R5bGU9IiIgY2xhc3M9IiI+PC9wYXRoPgoJCTwvZz4KCTwvZz4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8L2c+PC9zdmc+);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 20px;
        opacity: 0.5;
    }

    .toggle:hover:before {
        opacity: 0.8;
    }

    .primary-menu .sub-menu {
        display: none;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99;
        background: #000;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.35s ease-in;
    }

    .menu-overlay.active {
        visibility: visible;
        opacity: 0.5;
    }
}

@media screen and (max-width: 400px) {
    .primary-menu {
        padding-bottom: 20px;
        width: 100%;
    }

    .mobile-menu-button {
        margin-left: 0;
    }
}

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

.content-sidebar-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(580px, 855px) minmax(300px, 380px);
    grid-gap: 65px;
    margin-top: 40px;
}

.ie .content-sidebar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.top-text {
    margin-bottom: 35px;
    font-size: 18px;
}

.post-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    margin-bottom: 40px;
    height: 390px;
    border-radius: 20px;
    overflow: hidden;
}

.post-image img {
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-image .post-excerpt {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.post-excerpt p:last-of-type {
    margin-bottom: 0;
}

@media screen and (max-width: 1350px) {
    .content-sidebar-wrap {
        padding: 0 20px;
    }
}

@media screen and (max-width: 1240px) {
    .content-sidebar-wrap {
        gap: 40px;
    }
}

@media screen and (max-width: 980px) {
    .content-sidebar-wrap {
        display: block;
    }

    .post-excerpt {
        font-size: 18px;
    }
}

@media screen and (max-width: 640px) {
    .post-image {
        height: auto;
    }

    .post-image .post-excerpt {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 20px;
        padding: 0 0 20px 0;
        width: 100%;
        font-size: 16px;
        color: #000;
        background-color: transparent;
        border-bottom: 1px solid #ebebeb;
    }

    .top-text {
        font-size: 17px;
    }
}

/* ## Recipe info */

.recipe-block {
    overflow: hidden;
}

.recipe-block:first-of-type h2 {
    margin-top: 0;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.recipe-info>div {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 10px;
    padding-left: 40px;
    line-height: 1.4;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.recipe-info>div:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    margin-right: 20px;
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.recipe-info>div span,
.recipe-info>div time {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.recipe-info .time:before {
    background-image: url(../img/time-2.png);
}

.recipe-info .complexity:before {
    background-image: url(../img/complexity.png);
}

.recipe-info .cat:before {
    background-image: url(../img/cat.png);
}

.recipe-info .calories:before {
    background-image: url(../img/ccal.png);
}

.recipe-info .color-1 span {
    color: #70a932;
}

.recipe-info .color-2 span {
    color: #e2a052;
}

.recipe-info .color-3 span {
    color: #d83c4e;
}

@media screen and (max-width: 640px) {
    .recipe-info {
        flex-wrap: wrap;
    }
}

/* ## Ingredients */

.ingredients {
    position: relative;
    margin-bottom: 35px;
}

.ingredients:after {
    content: '';
    position: absolute;
    top: calc(50% - 58px);
    right: 100px;
    width: 128px;
    height: 116px;
    background-image: url(../img/ingr-image.png);
    background-position: center;
    background-repeat: no-repeat;
}

.ingredients .h4 {
    margin-bottom: 15px;
}

.ingredients-list {
    width: 100%;
    max-width: 500px;
}

.ingredients-list>div {
    position: relative;
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
    padding-left: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.ingredients-list>div.active {
    color: #cecece;
}

.ingredients-list>div.active:before {
    content: '';
    position: absolute;
    left: 35px;
    right: 0;
    height: 1px;
    top: 15px;
    background: #cecece;
}

.ingredients-list>div .name {
    transition: .3s;
}

.ingredients-list>div:hover .name {
    opacity: .7;
}

.ingredients-list>div .name:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    z-index: 1;
    width: 17px;
    height: 17px;
    background-color: #eaefec;
    border-width: 1px;
    border-style: solid;
    border-color: #eaefec;
    border-radius: 50%;
}

.ingredients-list>div.active .name:before {
    background-color: #fff;
    border-color: #0052b4;
}

.ingredients-list>div.active .name:after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: 2;
    width: 18px;
    height: 18px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAtFBMVEVHcEy222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222G222HDm+teAAAAO3RSTlMAdBzg9wMe8OdS+WoUPUKnbk8bNLLz3h/dn1sHPv4smAIBJbWa18LrDe8gi/L8acUEdsGZZIcykfiWqjCTBecAAACOSURBVCjPXdBFDsMADETRCVOZmZmZ/v3v1UWkNolX1rMsg5SOxzMDur0+GTnDOy0H4J6S3h64JiXnA1ySVATgeJIkOZJUBrCjuBy0XKnbALy8JKlZg6FkAF5VklSqA+FmtQS7EHdV2gAzA/qd36RgDaEP28T0iQWwcJIbuXPYmenjTIso+5TBdJQljf/pF+jCErP07cXlAAAAAElFTkSuQmCC);
    background-position: center;
    background-repeat: no-repeat;
}

.ingredients-list>div .dot {
    flex-grow: 1;
    margin-left: 3px;
    margin-right: 3px;
    border-bottom: 1px dotted #ccc;
}

@media screen and (max-width: 640px) {
    .ingredients:after {
        right: 0;
    }
}

/* ## Steps */

.steps {
    counter-reset: counter;
}

.steps .h3 {
    margin-bottom: 20px;
}

.step {
    position: relative;
    padding: 25px 25px 25px 65px;
    overflow: hidden;
}

.step:not(:last-of-type) {
    border-bottom: 1px solid #eaefec;
}

.step:before {
    counter-increment: counter;
    content: counter(counter);
    position: absolute;
    left: 0;
    top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #000;
    background-color: #f6f3f1;
    border-radius: 10px;
}

@media screen and (max-width: 640px) {
    .step {
        padding: 70px 0 20px;
    }

    .step:before {
        top: 10px;
    }
}

/* ## Images */

.post img {
    content-visibility: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    display: block;
    border-radius: 5px 5px 0 0;
}

.wp-caption-text {
    padding: 10px;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    background-color: #f6f3f1;
    border-radius: 0 0 5px 5px;
}

.aligncenter {
    display: block;
    margin: 30px auto;
}

.alignright {
    float: right;
    margin: 30px 0 30px 30px;
}

.alignleft {
    float: left;
    margin: 30px 30px 30px 0;
}

.alignnone {
    display: block;
    margin: 30px auto;
}

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

    .alignright:not(.wp-caption),
    .alignleft:not(.wp-caption) {
        display: table;
    }

    .alignright,
    .alignleft {
        float: none;
        margin: 0 auto 30px;
    }
}

/* ## Lists */

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

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

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

.post ul>li:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 9px;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ec7979;
}

.post ol {
    counter-reset: listCounter;
}

.post ol>li:before {
    counter-increment: listCounter;
    content: counter(listCounter);
    position: absolute;
    left: 0;
    top: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 23px;
    height: 23px;
    font-size: 14px;
    color: #fff;
    background-color: #5b4e7d;
    border-radius: 50%;
}

.post li ul,
.post li ol {
    margin: 10px 0;
}

/* ## Table */

.post-table {
    margin: 40px 0;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.post table {
    width: 100%;
    font-size: 15px;
    line-height: 1.3;
    border: unset;
    border-collapse: collapse;
    border-spacing: 0;
}

.post tr:nth-child(even) {
    background-color: #f6f3f1;
}

.post tr:first-child {
    background-color: #f1e8e2;
}

.post td {
    padding: 10px 20px;
    text-align: center;
    border: unset
}

.post td:first-of-type {
    text-align: left;
}

.post table>tbody>tr:first-child>td:first-child,
.post table>tbody>tr:first-child>th:first-child {
    border-radius: 10px 0 0 0
}

.post table>tr:first-child>td:first-child,
.post table>tr:first-child>th:first-child {
    border-radius: 10px 0 0 0
}

.post table>tbody>tr:first-child>td:last-child,
.post table>tbody>tr:first-child>th:last-child {
    border-radius: 0 10px 0 0
}

.post table>tr:first-child>td:last-child,
.post table>tr:first-child>th:last-child {
    border-radius: 0 10px 0 0
}

.post table>tbody>tr:last-child>td:last-child,
.post table>tbody>tr:last-child>th:last-child {
    border-radius: 0 0 10px 0
}

.post table>tr:last-child>td:last-child,
.post table>tr:last-child>th:last-child {
    border-radius: 0 0 10px 0
}

.post table>tbody>tr:last-child>td:first-child,
.post table>tbody>tr:last-child>th:first-child {
    border-radius: 0 0 0 10px
}

.post table>tr:last-child>td:first-child,
.post table>tr:last-child>th:first-child {
    border-radius: 0 0 0 10px
}

/* ## Video */

.post-video {
    position: relative;
    margin: 30px 0;
    padding: 56.25% 0 0;
    height: 0;
    overflow: hidden;
}

.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ## Standard gallery */

.gallery {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 30px 0;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    margin: 0;
    margin-bottom: 5px;
    text-align: center;
}

.gallery-icon.landscape {
    height: 100%;
}

.gallery-item a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item a:hover {
    opacity: 0.8;
}

.gallery-icon img {
    margin: 0 auto;
    display: block;
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media screen and (min-width: 640px) {
    .gallery-columns-1 .gallery-item {
        flex-basis: calc(100% - 5px);
    }

    .gallery-columns-2 .gallery-item {
        flex-basis: calc(50% - 5px);
    }

    .gallery-columns-3 .gallery-item {
        flex-basis: calc(33.3333333333% - 5px);
    }

    .gallery-columns-4 .gallery-item {
        flex-basis: calc(25% - 5px);
    }

    .gallery-columns-5 .gallery-item {
        flex-basis: calc(20% - 5px);
    }

    .gallery-columns-6 .gallery-item {
        flex-basis: calc(16.6666666667% - 5px);
    }

    .gallery-columns-7 .gallery-item {
        flex-basis: calc(14.2857142857% - 5px);
    }

    .gallery-columns-8 .gallery-item {
        flex-basis: calc(12.5% - 5px);
    }

    .gallery-columns-9 .gallery-item {
        flex-basis: calc(11.1111111111% - 5px);
    }
}

@media screen and (max-width: 640px) {
    .gallery-item {
        flex-basis: calc(50% - 5px);
    }
}

@media screen and (max-width: 400px) {
    .gallery-item {
        flex-basis: calc(100% - 5px);
    }
}

/* ## TOC */

#toc_container,
.kamatoc-wrap {
    position: relative;
    margin: 40px 0;
    padding: 35px 50px 40px;
    width: 100%;
    background-color: #f6f3f1;
    border-radius: 20px;
}

.toc_title,
.kamatoc-wrap__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
}

#toc_container .toc_toggle,
.kc-show-hide {
    margin-left: 30px;
    font-size: 0;
    text-transform: none;
    font-weight: 300;
}

#toc_container .toc_toggle a,
.kc-show-hide {
    display: block;
    padding: 6px 15px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-style: normal;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    background-color: #4343a0;
    border-radius: 7px;
    cursor: pointer;
}

#toc_container .toc_toggle a:hover,
.kc-show-hide:hover {
    opacity: .7;
}

#toc_container ul.toc_list,
#tocmenu {
    margin-top: 35px;
    margin-bottom: 0;
    column-count: 2;
    column-gap: 30px;
    font-size: 15px;
}

#toc_container ul,
#tocmenu ul {
    margin: 0;
}

#toc_container li ul,
#tocmenu li ul {
    margin-top: 10px;
}

#toc_container ul li,
#tocmenu li {
    display: block;
    padding-left: 30px;
    width: 100%;
    line-height: 1.5;
}

#toc_container ul li:before,
#tocmenu li:before {
    top: 1px;
    left: 0;
    width: 8px;
    height: 20px;
    background-color: unset;
    background-image: url(../img/toc.png);
    background-position: center;
    background-repeat: no-repeat;
    border: none
}

.kamatoc__sub {
    margin-left: 15px;
}

#toc_container ul li a,
#tocmenu li a {
    text-decoration: none;
}

#toc_container ul li a:hover,
#tocmenu li a:hover {
    text-decoration: underline;
}

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

    #toc_container,
    .kamatoc-wrap {
        padding: 25px 30px;
    }

    #toc_container ul.toc_list,
    #tocmenu {
        column-count: 1;
    }

    .toc_title {
        flex-direction: column;
    }

    #toc_container .toc_toggle,
    .kc-show-hide {
        margin-top: 10px;
        margin-left: 0;
    }
}

/* ## Post meta */

.post-meta {
    --gap: 40px;
    display: flex;
    align-items: center;
    gap: var(--gap);
    margin-bottom: 30px;
    font-size: 13px;
    line-height: 1.3
}

.no-flexgap .post-meta {
    margin: calc(-1 * var(--gap)) 0 0 calc(-1 * var(--gap));
    width: calc(100% + var(--gap));
}

.no-flexgap .post-meta>div {
    margin: var(--gap) 0 0 var(--gap);
}

.post-meta>div {
    display: flex;
    align-items: center
}

.post-meta>div:not(.post-author) {
    opacity: .5
}

.avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.post-author .avatar-container {
    margin-right: 15px;
    width: 40px;
    height: 40px;
}

.avatar-container img {
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.author-name {
    display: flex;
    flex-direction: column;
    flex-basis: 180px;
    flex-shrink: 0;
    color: #000;
    font-size: 14px;
    line-height: 1;
}

.author-name:before {
    content: 'В вопросе разбирался:';
    margin-bottom: 5px;
    font-size: 12px;
    color: #4343a0
}

.author-text {
    opacity: .4;
}

.post-views {
    margin-left: auto;
}

.post-meta>div:not(.post-author):before {
    content: '';
    margin-right: 15px;
    width: 16px;
    background-repeat: no-repeat;
}

.post-date:before {
    height: 16px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA7klEQVQ4jZ3SsU0DQRAF0HfGCPmQA8sECDLXQEIHJBAS0AE1gERCCeSuAZFQxIZQAhkWEUgICxPcrFgObJ350mjm75+/2pk7fuIsYhl+6f3I+9jBYfAHbLXM74X+iGc8VbjCMV6xHQ1v2Gxd8IE66tx7BwmTEC4ilqHUJ0h5hFnk6QpzW5/xvYMDvBTiHqqWeYHPqHcxEk1JM3P/D9MyLDAXO0kYdDSWGCD1guTtpggdeF0ejqPeiNCBjxVfIeMm8nlHrn3B7Zpcr32wLvIL5pFPIt934Nkj4RRDzWZrzU8yWsGH4UkVjnD9zwkuvwD1BTDCx624ZQAAAABJRU5ErkJggg==);
}

.post-reading:before {
    height: 16px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAABI0lEQVQYGQXBvyv0AQAH4MerLC8u3aJvbxl0KYnSEcrpXQw3vttZpHQGZbjVcHWLTaTeSJ0NR7359TV4ber+rY/nERERoWloqBkRESHCDyMRJnX1FBEREcK8f+60XLjT0/Oo9CciQrjW9OjKjHX79q2bceXUzwjhwJeORQMnzpw5MbCooxsh/Har5s1CmDIVFrypubUZwrW6vrUIK7YirOmruwxGDRUGEWFHOyIMFP4Hv9xreLUaYcdftbDqVcO9acaVltyoRKjaVQsVN5aUxoUnhQ9jERERxnwoPIXQ1XKkExERoeNISzeEqtKsvmMVdXUVx/pmlaohwrYHc/Y8+/Tp2Z45D7YjRIQNLw4tKxSWHXqxEREiIkxoO/fu3bm2iYiIb+y/m8AQSvQDAAAAAElFTkSuQmCC);
}

.post-views:before {
    content: '';
    height: 10px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAMAAACKYC6uAAAARVBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAeYafpAAAAF3RSTlMAARAVGRwdKDJDVGtub3yDh5KWo7Cys8mu0C0AAABXSURBVAjXZY5LDoAgEEOLMAr4QQbo/Y/qAtEYu2uT1xboshavTEgl55KC6d4rVdwyK9UDQGyssrUTUtkisJLMrvEAMsn1CZimHgyE+42MUpFR+p/9HrsA9ScF6jPO+xUAAAAASUVORK5CYII=);
}

@media screen and (max-width: 800px) {
    .post-meta {
        flex-wrap: wrap;
        justify-content: flex-start
    }
}

@media screen and (max-width: 640px) {
    .post-meta>div:not(.post-author) {
        display: none;
    }

    .post-author {
        flex-wrap: wrap;
    }

    .author-text {
        margin-top: 10px;
    }
}

/* ## Blockquote, blocks */

blockquote p:last-of-type {
    margin-bottom: 0;
}

blockquote:not([class]) {
    position: relative;
    margin: 60px 0 50px;
    padding: 40px 50px;
    width: 100%;
    font-size: 26px;
    text-align: center;
    border-top: 1px solid #eaefec;
    border-bottom: 1px solid #eaefec;
}

blockquote:not([class]):before {
    content: '';
    position: absolute;
    top: -16px;
    left: calc(50% - 40px);
    width: 80px;
    height: 33px;
    background-color: #fff;
    background-image: url(../img/quote.png);
    background-position: center;
    background-repeat: no-repeat;
}

.info-box {
    position: relative;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 20px;
}

.info-box:not(:last-child) {
    margin-bottom: 40px;
}

.info-box:not(:first-child) {
    margin-top: 40px;
}

.yellow {
    background-color: #f6f3f1;
}

.blue {
    border-width: 2px;
    border-style: solid;
    border-color: #5d5dca;
}

.info-box p:last-of-type {
    margin-bottom: 0;
}

@media screen and (min-width: 641px) {
    .info-box {
        padding: 25px 40px 25px 125px;
    }

    .info-box:before {
        content: '';
        position: absolute;
        left: 30px;
        top: calc(50% - 32px);
        height: 64px;
        width: 64px;
        background-position: center;
        background-repeat: no-repeat;
    }

    .yellow:before {
        background-image: url(../img/yellow.png);
    }

    .blue:before {
        background-image: url(../img/blue.png);
    }
}

@media screen and (max-width: 640px) {
    blockquote {
        padding: 20px;
    }

    blockquote:not([class]) {
        font-size: 20px;
    }

    .info-box {
        padding: 20px;
    }
}

/* ## Related */

.yarpp-related {
    margin-top: 60px;
}

.yarpp-related>.h2 {
    margin-bottom: 35px;
    font-weight: 700;
}

/* ## Search */

.search-wrap {
    margin-top: 60px;
}

.search-wrap>.h2 {
    margin-bottom: 35px;
    font-weight: 700;
}

/* ## Post footer */

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 35px;
    margin-bottom: 35px;
    padding: 15px 30px;
    background-color: #f6f3f1;
    border-radius: 15px;
}

@media screen and (max-width: 800px) {
    .post-footer {
        flex-direction: column;
    }
}

/* ## Rating */

.post-footer .rating {
    position: relative;
    display: flex;
    align-items: center;
    flex-basis: 500px;
    margin: 0;
    margin-right: 30px;
    font-weight: 400;
    font-size: 17px;
}

.post-footer .rating span {
    font-size: 16px;
    font-weight: 600;
}

.rmp-icon--full-highlight {
    color: #ffcf27;
}

.rmp-rating-widget {
    margin-top: 10px;
    white-space: nowrap;
}

.rmp-widgets-container.rmp-wp-plugin.rmp-main-container {
    flex-shrink: 0;
    flex-basis: 140px;
    margin: 0;
}

.rmp-rating-widget__msg.js-rmp-msg {
    font-size: 11px;
    font-weight: 300;
    color: #ffcf27;
}

.rmp-widgets-container.rmp-wp-plugin.rmp-main-container .rmp-rating-widget__icons-list__icon {
    padding-left: 0;
}

.rmp-rating-widget__results.js-rmp-results,
.rmp-results-widget__avg-rating,
.rmp-results-widget__vote-count {
    display: none;
}

@media screen and (max-width: 980px) {
    .rating {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 800px) {
    .post-footer .rating {
        flex-basis: unset;
        justify-content: center;
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .post-footer .rating {
        flex-direction: column;
    }

    .rmp-widgets-container.rmp-wp-plugin.rmp-main-container {
        flex-basis: unset;
    }
}

/* ## Share */

.share {
    flex-shrink: 0;
}

.archive-description .share {
    margin-top: 30px;
}

.post .ya-share2__list {
    margin: 0;
}

.share .ya-share2__item {
    transition: .3s;
}

.ya-share2__list.ya-share2__list_direction_horizontal>.ya-share2__item {
    margin: 2px 8px 0 0;
}

.share .ya-share2__container_size_m .ya-share2__badge .ya-share2__icon {
    height: 32px;
    width: 40px;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: center;
}

@media screen and (max-width: 728px) {
    .share .ya-share2__container_size_m .ya-share2__badge .ya-share2__icon {
        height: 40px;
        width: 40px;
        background-size: 40px 40px;
    }
}

@media screen and (max-width: 400px) {
    .like span:last-child {
        display: none;
    }
}

/* ## Other */

.wngrid-item-counter:before {
    background-color: #f3f7f8 !important;
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/

.comments-wrap {
    margin-top: 60px;
}

.comments-wrap .h2 {
    margin-bottom: 40px;
}

ol.comment-list,
ol.children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .children li {
    margin-left: 30px;
}

.comment-list .comment>div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.comment .avatar {
    flex-shrink: 0;
    margin-right: 30px;
    border-radius: 50%;
}

.comment .comment-inner {
    display: flex;
    flex-direction: column;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    line-height: 1;
}

.comment-author {
    margin-right: 20px;
    font-size: 13px;
    color: #4343a0;
}

.comment-reply-link {
    padding: 5px 10px;
    font-size: 12px;
    color: #fff;
    background-color: #4343a0;
    border-radius: 7px;
    transition: .3s;
    cursor: pointer;
}

.comment-reply-link:hover {
    opacity: 0.8;
}

.comment-text {
    font-size: 16px;
    line-height: 1.56;
}

.comment-text p:last-of-type {
    margin-bottom: 0;
}

.comment-time {
    font-size: 12px;
    opacity: 0.7;
}

@media screen and (max-width: 980px) {
    .comments-wrap {
        max-width: 100%;
    }
}

@media screen and (max-width: 728px) {
    .comment .avatar {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .comment-list .children li {
        margin-left: 0;
    }
}

/* ## Comment form */

.comment-respond {
    margin-top: 50px;
    padding: 40px 50px;
    background-color: #f6f3f1;
    border-radius: 20px;
}

.comment-respond form {
    position: relative;
}

#cancel-comment-reply-link {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 12px;
}

.form-row.col-2 {
    display: flex;
    margin-top: 20px;
}

.form-row.col-2>div {
    flex: 1;
}

.comment-form-author {
    margin-right: 15px;
}

.form-submit {
    display: inline-block;
    margin-top: 30px;
}

.form-submit .button {
    padding: 17px 30px;
}

@media screen and (max-width: 768px) {
    .comment-respond {
        padding: 30px 25px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .form-row.col-2 {
        display: block;
    }

    .comment-form-author {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .form-submit {
        display: block;
    }
}

@media screen and (max-width: 640px) {
    .form-submit .button {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Archive
--------------------------------------------------------------*/

.archive-info h1 {
    position: relative;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 30px;
}

.archive-description {
    margin-bottom: 40px;
    font-size: 18px;
}

@media screen and (max-width: 640px) {
    .archive section h2 {
        font-size: 26px;
    }
}

/* ### Content */

.item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

a.item,
a.h6 {
    color: #000
}

a.item:hover .h7 {
    color: #5b4e7d;
}

.item-desc {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.67;
}

.item-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 25px;
    border-radius: 30px;
    overflow: hidden;
}

.item-image img {
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ### Meta */

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.item-comments {
    display: flex;
    align-items: center;
    color: #5b4e7d;
    font-size: 14px;
    font-weight: 600;
}

.item-comments:before {
    content: '';
    margin-right: 10px;
    width: 24px;
    height: 24px;
    background-image: url(../img/comments.png);
    background-position: center;
    background-repeat: no-repeat;
}

.item-comments span {
    margin-right: 5px;
}

/* ## Articles list */

.articles-list {
    --minmax: 250px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--minmax), 1fr));
    grid-gap: 40px;
}

.ie .articles-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.articles-list .item-wrap {
    position: relative;
    padding: 0 25px 25px;
    border-width: 1px;
    border-style: solid;
    border-color: #f3efef;
    border-radius: 30px;
    transition: .3s;
}

.articles-list .item-wrap:hover {
    border-color: #7b7bef
}

.articles-list .item {
    height: 100%;
}

.articles-list .item-image {
    margin-left: -25px;
    height: 230px;
    width: calc(100% + 50px);
}

.articles-list .item-categories {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 10;
    max-width: calc(100% - 50px);
}

.articles-list .item-categories a {
    display: block;
    padding: 6px 20px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    background-color: #4343a0;
    border-radius: 14px;
}

.articles-list .item-categories a:hover {
    opacity: .7;
}

.articles-list .h6 {
    margin-bottom: 20px;
}

@media screen and (max-width: 400px) {
    .articles-list {
        --minmax: 250px;
    }

    .articles-list .item-wrap {
        padding: 0;
        border-color: transparent;
    }

    .articles-list .item-wrap:hover {
        border-color: transparent;
    }

    .articles-list .item-image {
        margin-left: 0;
        width: 100%;
    }
}

.error404 .h4 {
    margin-bottom: 35px;
}

/* ## Subcat */

.subcat {
    margin-bottom: 70px;
}

.icons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 45px;
}

.ie .icons-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 15px 25px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
    text-align: center;
    border-width: 1px;
    border-style: solid;
    border-color: #f3efef;
    border-radius: 20px;
    word-break: break-word;
}

.icon-item:hover {
    border-color: transparent;
    border-color: #7b7bef;
}

.icon-item span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    height: 140px;
    width: 140px;
    border-radius: 20px;
    overflow: hidden;
}

.icon-item span img {
    max-width: 500px;
    border-radius: 0;
    object-fit: cover;
}

@media screen and (max-width: 640px) {
    .cat-icon {
        gap: 10px;
    }
}

/* ## Other */

.wpcc,
.post .democracy {
    padding: 20px !important;
    border: 1px solid #e1e5ec;
    border-radius: 20px;
}

.post .su-note img {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

.sidebar-primary {
    position: relative;
}

.sidebar .widget {
    margin-bottom: 60px
}

.widgettitle {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    margin-bottom: 30px;
    font-family: 'Noto Serif', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.widgettitle span {
    font-weight: 300;
    font-size: 22px;
}

.vk-widget,
.ok-widget {
    padding: 15px;
    background-color: #f6f3f1;
    border-radius: 20px;
}

#__okGroup0,
#vk_groups {
    width: 100% !important;
}

@media screen and (max-width: 1040px) {
    .sidebar-primary {
        margin-top: -10px;
    }
}

@media screen and (max-width: 980px) {
    .sidebar {
        display: none
    }
}

.sidebar-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column
}

.widget.menu-widget .recipes-menu {
    margin-bottom: 45px;
}

/* ## Menu */

.cats-widget {
    position: relative;
    z-index: 1;
    border: 1px solid #f3efef;
    background-color: #fff;
    border-radius: 20px;
}

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

.cats-widget .category-list>li {
    position: relative;
    padding: 10px 30px;
}

.cats-widget .category-list>li:not(:first-of-type) {
    border-top: 1px solid #f3efef;
}

.cats-widget .category-list>li:not(:last-of-type) {
    margin-bottom: 5px
}

.cats-widget .category-list>li>a {
    position: relative;
    display: block;
    padding: 3px 0 5px;
    font-size: 20px;
    color: #000;
    font-weight: 700;
    line-height: 1.56;
    background-color: transparent;
    border-radius: 5px;
}

.cats-widget .category-list>li>a:hover,
.cats-widget .category-list>li.current-cat>a {
    text-decoration: underline;
}

.cats-widget .category-list>li>ul {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

.cats-widget .category-list>.current-cat>ul,
.cats-widget .category-list>.current-cat-ancestor>ul {
    display: flex
}

.cat-item {
    display: flex;
    flex-direction: column
}

.children .cat-item {
    align-items: flex-start
}

.cats-widget .category-list>li>ul a {
    position: relative;
    display: block;
    padding: 10px 30px;
    font-size: 16px;
    color: #000;
    font-weight: 400;
    line-height: 1;
    border-radius: 10px;
}

.cats-widget .category-list>li>ul a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    border-width: 1px;
    border-style: solid;
    border-color: #4343a0;
    border-radius: 50%;
}

.cats-widget .category-list>li>ul a:hover,
.category-list .current-cat-ancestor ul .current-cat>a {
    text-decoration: none;
    color: #fff;
    background-color: #4343a0;
}

.cats-widget .category-list>li>ul a:hover:before,
.category-list .current-cat-ancestor ul .current-cat>a:before {
    content: none;
}

.cats-widget .category-list>li>ul a:not(:last-of-type) {
    margin-bottom: 5px
}

.cats-widget .category-list li ul ul {
    margin-left: 30px;
}

/* ## Popular */

.articles-column-small {
    padding: 40px 30px;
    background-color: #f6f3f1;
    border-radius: 30px;
}

.articles-column-small .item {
    flex-direction: row;
    align-items: center;
}

.articles-column-small .item:not(:last-of-type) {
    margin-bottom: 30px;
}

.articles-column-small .item-image {
    margin-right: 25px;
    margin-bottom: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/

.pagination {
    margin-top: 50px;
    margin-bottom: 70px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.page-numbers {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    padding: 20px 15px;
    height: 40px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #000;
    background-color: #f6f3f1;
    border-radius: 10px;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #ffdd3e;
}

@media screen and (max-width: 800px) {
    .nav-links {
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 30px;
    padding: 0;
    font-size: 15px;
    list-style: none;
}

.breadcrumbs li {
    margin-right: 15px;
}

.breadcrumbs a {
    display: flex;
    align-items: center;
    color: #4343a0;
    transition: 0.3s linear;
}

.breadcrumbs span {
    display: flex;
    align-items: center;
}

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

.breadcrumbs li:first-child a:before {
    content: "";
    width: 11px;
    height: 9px;
    margin-right: 20px;
    background-image: url(../img/bread.png);
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s linear;
}

.breadcrumbs li:not(:only-child):not(:last-child) a:after {
    content: "";
    margin-left: 15px;
    width: 8px;
    height: 8px;
    border: 1px solid #4343a0;
    border-radius: 50%;
}

@media screen and (max-width: 800px) {
    .breadcrumbs {
        font-size: 16px;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.site-footer {
    --gap: 45px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);
    padding-top: 20px;
    padding-bottom: 40px;
    margin-top: 80px;
}

.no-flexgap .site-footer {
    margin: calc(-1 * var(--gap)) 0 0 calc(-1 * var(--gap));
    width: calc(100% + var(--gap));
}

.no-flexgap .site-footer>* {
    margin: var(--gap) 0 0 var(--gap);
}

.site-footer:after {
    content: "";
    position: absolute;
    top: 0;
    left: calc(-50vw + 50%);
    z-index: -1;
    display: block;
    height: 100%;
    width: 100vw;
    background-color: #f6f3f1;
}

.site-footer>div {
    position: relative;
    z-index: 1;
    flex: 1;
}

.site-footer>div.social-wrap {
    flex: 0.5;
}

.site-footer .logo {
    padding-top: 40px;
}

.site-footer .logo .h1 {
    flex-direction: row;
    align-items: center;
    font-size: 27px;
}

.site-footer .logo .h1 span {
    position: initial;
    margin-left: 10px;
    margin-top: 5px;
    padding: 3px 10px;
    font-size: 12px;
}

.site-footer .logo picture {
    top: 0;
    left: 25px;
}

.copyright {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.5;
}

.site-footer .social-wrap span {
    display: none;
}

.site-footer .search-form {
    margin-top: 0;
}

@media screen and (max-width: 1350px) {
    .site-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 1140px) {
    .site-footer {
        flex-wrap: wrap;
    }

    .site-footer picture {
        display: none;
    }
}

@media screen and (max-width: 980px) {
    .site-footer {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        flex-basis: unset;
        width: 100%;
    }

    .copyright {
        flex-basis: unset;
        text-align: center;
    }

    .site-footer .logo {
        align-items: center;
    }
}

@media screen and (max-width: 640px) {
    .footer-design {
        justify-content: center;
    }
}

/* ## Footer menu */

.site-footer .footer-menu {
    flex: 2
}

.site-footer .menu {
    flex-wrap: wrap;
}

.site-footer .sub-menu {
    display: none;
}

.site-footer .menu li {
    width: 50%;
}

.site-footer .menu a {
    position: relative;
    display: block;
    padding: 7px 0;
    font-size: 14px;
    color: #4343a0;
    font-weight: 400;
}

.site-footer .menu a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 980px) {
    .site-footer .menu {
        text-align: center;
    }
}

@media screen and (max-width: 640px) {
    .footer-menu .menu {
        justify-content: center;
        align-items: center;
        margin-left: 0;
    }

    .site-footer .menu li {
        width: 100%;
    }
}

/* ## Scroll to top */

#scroll-button {
    position: fixed;
    right: 25px;
    bottom: 40px;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    width: 35px;
    text-align: center;
}

#scroll-button_up,
#scroll-button_down {
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s;
}

#scroll-button_up svg,
#scroll-button_down svg {
    display: block;
    margin: auto;
    width: 14px;
    height: 16px;
}

#scroll-button_up:hover,
#scroll-button_down:hover {
    opacity: 1;
}

#scroll-button_middle {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.5;
}

@media screen and (max-width: 800px) {
    #scroll-button {
        display: none;
    }
}