@font-face {
    font-family: 'Montserrat-Medium';
    src: url('../fonts/Montserrat-Medium.ttf') format('ttf');
    font-weight: medium;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Black';
    src: url('../fonts/Montserrat-Black.ttf') format('ttf');
    font-weight: medium;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Light';
    src: url('../fonts/Montserrat-Light.ttf') format('ttf');
    font-weight: medium;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../fonts/Montserrat-Bold.ttf') format('ttf');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Italic';
    src: url('../fonts/Montserrat-Italic.ttf') format('ttf');
    font-weight: italic;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.ttf') format('ttf');
    font-weight: regular;
    font-style: normal;
    font-display: swap;
}


:root :where(.wp-block-post-content) {
    margin-top: 0;
    margin-bottom: 0;
}

:root :where(.wp-block-group) {
    background-color: transparent;
    padding-top: 0 !important;
    padding-right: 0;
    padding-bottom: 0!important;;
    padding-left: 0;
}

:root :where(.wp-site-blocks) > * {
    margin-block-start: 0; 
    margin-block-end: 0; }

:root :where(.is-layout-flow) > * {
    margin-block-start: 0px;
    margin-block-end: 0;}


html,
body {
  height: 100%;
  box-sizing: border-box;
}

body {
    font-family: 'Montserrat-Black', sans-serif;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    background-color: #f0f0f0;
    min-height: 100vh;    
    position: relative;
}
body::before {
    content: "";
    position: fixed; /* Чтобы фон не прокручивался */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Уводит фон под контент */    
    /* Ваши настройки изображения */
    background-image: url(../images/bacground.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;    
    /* Настройка прозрачности */
    opacity: 0.3; /* 0.5 — это 50% яркости. Подберите нужное значение */
}

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

.wp-site-blocks{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, 
#primary, 
.site-content { 
    flex: 1 0 auto;
}

footer, 
.site-footer {
    flex-shrink: 0; /* Не позволяет футеру сжиматься */
}

h1, h3{
    color: var(--wp--preset--color--contrast);
    font-family: 'Montserrat-Regular', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.1;    
    letter-spacing: -0.02em;
    text-transform: none; 
}

h4{
     color: var(--wp--preset--color--contrast);
}

p, li{
    font-family: 'Montserrat-Black';
    color: var(--wp--preset--color--contrast);
}

a{
    text-decoration: none !important;
    color: var(--wp--preset--color--contrast);
}

.container{
    width: 1024px;
    margin: 0 auto;
}

/*------------ HEADER ------------------------*/
.site-header{
    padding: 10px 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.header-content{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    padding: 10px 0;
}
.header-content::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);   
    width: 110%;
    height: 2px; 
    background-color: rgba(232, 232, 232, 0.9);
}

.header-content__logo{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.header-logo__title{
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.wp-block-site-tagline{
    margin-top: -20px !important;
}

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

.wp-block-navigation ul li{
    padding: 0 20px;
    transition: all 0.3s ease; 
    border-radius: 25px;
    border: 1px solid rgba(163, 202, 112, .3) !important;
    border: 1px solid transparent;
}

.wp-block-navigation ul li:hover,
.wp-block-navigation ul li:active,
.wp-block-navigation ul li.current-menu-item,
.wp-block-navigation ul li.current-menu-ancestor {
    background-color: #9AD85B !important;
    border: 1px solid rgba(163, 202, 112, 1);
    padding: 0 20px;
    border-radius: 25px;
}




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

.with-horizontal-line{
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
    overflow: visible; 
}
.with-horizontal-line::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%; 
    width: 100vw; 
    height: 3px;
    background-color: #dcf2b0;
    transform: translateY(-50%);
    margin-right: 10px; 
}

/*-------------Main Page ------------*/


/*-------------- Foter--------------*/

.footer-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 0;
    max-width: var(--wp--style--global--content-size);
    width: 100%;
    justify-content: space-around;
    margin: 100px 0 50px 0 !important;
    padding-top: 50px !important;
}

.footer-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);   
    width: 110%;
    height: 2px; 
    background-color: rgba(232, 232, 232, 0.9);
}

.site-footer{
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.site-footer .is-vertical{
    margin: 0 !important;
}
.footer-copyright{
    padding: 20px !important;
    font-size: 1rem;
    position: relative;
}
.footer-copyright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);   
    width: 100%;
    height: 2px; 
    background-color: rgba(232, 232, 232, 0.9);
}
.site-footer .wp-block-site-tagline{
    margin: 0 !important;
}





