/*
Theme Name: MS digital
Theme URI: https://msdigital.co.il/
Author: MS digital
Author URI: https://example.com
Description: MS digital WordPress theme
Template: generatepress
Version: 1.0
		Text Domain: ms-digital
*/
/**/
:root {
    --hover-transform: translatex(-1px);
    --hover-transition: all 0.5s;
    --hover-color: #fff;
    --anchor-offset: 12vh;
    --ms-primary: #00739c;
    --ms-accent: #fdb934;
    --ms-primary-hover: #00d1ff;
    --ms-grey: #757575; 
    --ms-primary-dark: color-mix(in srgb, var(--ms-primary) 80%, black);
    --swiper-pagination-bullet-size: 10px;
    --swiper-pagination-color: var(--ms-primary);
}




html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}


body {
	overflow-x: hidden;
}

/*GLOBAL*/
.icon {
    width: 1.2em;
    height: 1.2em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    color: var(--ms-primary);
}

a:has(.icon) {
    display: flex;
    align-items: center;
}

.rtl .icon-phone {
    transform: rotate(270deg);
}

a {
    text-decoration: none;
    color: var(--ms-text);
}

.ms-shadow {
    box-shadow: 0px 0px 30px 0px #9d9d9d61;
}


/*GLOBAL Layout*/

.site-main {
    margin: 0 !important;
    /* overflow: hidden; */
}

.ms-section {
    padding: 50px 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

@media only screen and (max-width: 768px) {
    .ms-section {
        padding: 40px 0;
        margin: 0;
        overflow-x: hidden;
        overflow-y: visible;
    }
}

.ms-section-two-colomns {
	display: flex;
	gap: 20px;
}

@media only screen and (max-width: 768px) {
	.ms-section-two-colomns {
		flex-direction: column;
		gap: 40px;
	}
}

.ms-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
}

.ms-container--small {
    max-width: 1000px !important;
    /* margin: 0 auto; */
}

.ms-container--center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.ms-section:has(.icon-bg) {
    position: relative;
    overflow: visible;
}

.ms-section:has(.icon-bg) {
	position: relative;
	overflow-x: clip;
	overflow-y: visible;
}

/* .ms-section-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
} */

.ms-section-full {
	width: 100%;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	position: relative;
	max-width: 100vw;
}


/*MS section BG*/
.ms-section .icon-bg {
    position: absolute;
    width: 100%;
    max-width: 50%;
    height: 900px;
    pointer-events: none;
    opacity: 0.02;
    z-index: 0;
    color: var(--ms-primary);
}

.icon-bg-left {
    top: 0;
    left: -20%;
    transform: translate(10%, 0%);
}

.icon-bg-right {
    top: 0;
    right: -20%;
    transform: translate(-10%, 0%);
}

.icon-bg-center {
    top: -20%;
    left: 50%;
}

/* Обновленные селекторы для работы с <use> */
.ms-section .icon-bg,
.ms-section .icon-bg use {
    fill: currentColor;
}

/* Дополнительно для символа в спрайте */
.ms-section .icon-bg svg {
    width: 100%;
    height: 100%;
}

.ms-section-light-gradient .icon-bg {
    color: white;
    fill: white;
    opacity: 0.2;

}

@media only screen and (max-width: 768px) {
    .ms-section .icon-bg {
        max-width: 90%;
        height: 400px;
    }

    .icon-bg-right {
        top: -30%;
        right: -30%;
    }

    .icon-bg-left {
        top: -50%;
        left: -50%;
    }
}



/*GLOBAL Layout wide*/
body.layout-narrow .site-main,
body.layout-wide .site-main {
    margin: auto !important;
    padding-top: 30px;
    padding-bottom: 40px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
}

body.layout-narrow.archive .site-main,
body.layout-wide.archive .site-main {
	padding-top: 0px;
	padding-bottom: 0px;
}

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

    body.layout-narrow .site-main,
    body.layout-wide .site-main {
        padding-top: 20px;
        padding-bottom: 30px;
    }
}

@media only screen and (max-width: 921px) {
	body.layout-narrow.archive .site-main,
	body.layout-wide.archive .site-main {
		padding-top: 0px;
		/* padding-bottom: 0px; */
	}
}

body.layout-wide .site-main {
    max-width: 1600px;
}


/*GLOBAL Layout narrow*/
body.layout-narrow .site-main,
.layout-narrow .ms-banner-section .ms-container {
    max-width: 1000px;
}

.ms-head {
    margin: 0px auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: start;
    width: fit-content;
    z-index: 1;
    position: relative;
}

.ms-head:has(.ms-button-link) {
    padding-inline-start: 65px;
}

.ms-head .ms-title {
    margin-bottom: 30px;
    padding: 0;
    padding-bottom: 20px;
    font: 800 38px / 1.2 var(--font-n);
    color: var(--grey);
    position: relative;
    border: none !important;
}

@media only screen and (max-width: 768px) {
    .ms-head .ms-title {
        margin-bottom: 30px;
        padding: 0;
        padding-bottom: 20px;
        font: 800 30px / 1.2 var(--font-n);
    }

    .ms-button-link {
        height: 35px;
        width: 35px;
    }

    .ms-head:has(.ms-button-link) {
        padding-inline-start: 50px;
    }
}

@media screen and (max-width: 921px) {
    .ms-head .ms-title {
        text-align: center;
    }
}


.ms-title strong {
    color: var(--ms-primary);
}

/*GLOBAL Title Divider*/
.ms-divider::after,
.ms-head .ms-title::before {
    content: "";
    position: absolute;
    display: inline-block;
    width: 60px;
    height: 5px;
    background: var(--ms-primary);
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}


/*GLOBAL Fonts*/
h1,
h2,
h3,
h4,
.ms-title {
    font-weight: 800;
    line-height: 1.2em;
    margin-bottom: 15px;
}


.ms-title {
    font-size: 50px;
}

h1.ms-title.ms-title-lg, h2.ms-title.ms-title-lg {
    font: 800 75px/1 var(--font-n);
}


h2.ms-title.ms-title-xl {
	font: 900 75px / 1 var(--font-n);
	border-bottom: none;
}

h1 {
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

h2,
h2.ms-title {
    font-size: 32px;
    color: var(--ms-primary);
    padding-bottom: 10px;
}

h2:not(.ma-title),
h2.ms-title:not(.ma-title) {
    border-bottom: 2px solid color-mix(in srgb, grey 40%, white);
}


h3,
h3.ms-title {
    font-size: 24px;
}

h4,
h4.ms-title {
    font-size: 22px;
}

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

    h2,
    h2.ms-title {
        font-size: 30px;
    }

    h3,
    h3.ms-title {
        font-size: 22px;
    }

    h4,
    h4.ms-title {
        font-size: 22px;
    }

    .ms-title {
        font-size: 45px;
    }
}



.ms-title.ms-title-center {
    margin-inline-start: auto;
    margin-inline-end: auto;
    text-align: center;
}

.ms-title.ms-title-medium {
    font-size: 20px;
}


.ms-title.ms-title-small {
    font-size: 18px;
}

/* GLOBAL Font Sizes */
.ms-font-medium {
    font-size: 20px;
    line-height: 1.4em;
}

.ms-font-text {
    font-size: 18px;
    font-weight: normal;
    line-height: 1.4em;
}

.ms-font-small {
    font-size: 16px;
    line-height: 1.4em;
}

.ms-font-extra-small {
    font-size: 14px;
}

@media screen and (max-width: 1024px) {
    h1.ms-title.ms-title-lg, h2.ms-title.ms-title-lg {
        font: 800 65px/1 var(--font-n);
    }
}

@media screen and (max-width: 921px) {
    h1.ms-title.ms-title-lg, h2.ms-title.ms-title-lg {
        font: 800 55px/1 var(--font-n);
    }
}


@media only screen and (max-width: 544px) {
    .ms-title {
        font-size: 40px;
    }

    h1.ms-title.ms-title-lg, h2.ms-title.ms-title-lg {
        font: 800 45px/1 var(--font-n);
    }

}

@media only screen and (max-width: 768px) {
    .ms-font-extra-small {
        font-size: 12px;
    }
}


/* GLOBAL Buttons */
.ms-button {
    overflow: hidden;
    position: relative;
    z-index: 1;
    cursor: pointer;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-inline-start: 25px;
    padding-inline-end: 5px;
    transition: .5s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    line-height: normal;
    border-radius: 50px;
    border: 1px solid #fff;
    min-width: 200px;
    width: max-content;
}

.ms-button-text {
    font-weight: 500;
    white-space: nowrap;
}

.ms-button-link {
    aspect-ratio: 1 / 1;
    height: 100%;
    height: 50px;
    width: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

body:not(.rtl) .ms-button-link {
    transform: scaleX(-1);
}

.ms-button-link .ms-icon-arrow {
    color: var(--ms-grey);
    height: 15px;
    width: 15px;
}

.ms-button:hover {
    transform: translateX(3px);
}

.rtl .ms-button:hover {
    transform: translateX(-3px);
}

.ms-button svg {
    transition: transform 0.2s ease;
}

body:not(.rtl) .ms-button:hover svg {
    transform: rotate(45deg);
}

.rtl .ms-button:hover svg {
    transform: rotate(-45deg);
}

.ms-button--primary {
    background-color: var(--ms-primary);
    color: white;
    border: 1px solid var(--ms-primary);
}

.ms-button--primary:active,
.ms-button--primary:focus {
    color: white;
}

.ms-button--primary:hover {
    background-color: color-mix(in srgb, var(--ms-primary) 90%, white);
    border: 1px solid color-mix(in srgb, var(--ms-primary) 90%, white);
    color: white;
}

.ms-button[type="submit"] {
    justify-content: center;
}

.ms-button--transparent {
	background-color: transparent;
}

.ms-button--white .ms-button-text {
    color: white;
}

/*MS Title Link*/

.ms-title-link {
    background-color: var(--ms-accent);
}

.ms-title-link .ms-icon-arrow {
    color: white;
}

/*MS staff buttons*/
.ms-staff-btns .ms-button {
    background-color: transparent;
    color: var(--ms-primary);
    border-radius: 15px;
    padding: 15px 25px;
}


.ms-staff-btns .ms-button-link {
    background-color: var(--ms-accent);
}

.ms-staff-btns .ms-button .ms-icon-arrow {
    color: white;
}

.ms-staff-btns .ms-button-text {
    font-weight: 700;
}

@media only screen and (max-width: 768px) {
    .ms-staff-btns {
        gap: 15px;
        justify-content: flex-start;
    }
    
    .ms-staff-btns .ms-button {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}


.ms-department-link {
    color: var(--ms-primary);
}



/* FOOTER */
.footer {
    background: var(--ms-primary);
    overflow: hidden;
}

footer p,
footer a,
footer li,
footer .ms-contact-item,
footer span,
footer .icon {
    color: white !important;
    transition: 0.5s;
    font-size: 16px;
}

/* footer p,
footer li,
footer span {
    opacity: 0.6;
} */

@media (min-width: 1024px) {
    footer li:has(a):hover {
        opacity: 1;
        transform: translatex(2px);
    }

    .rtl footer li:has(a):hover {
        opacity: 1;
        transform: translatex(-2px);
    }
}

.ms-footer-main {
    display: none;
}

.logged-in .ms-footer-main {
    display: block;
}

.ms-footer-main .ms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-block: 40px;
}

.ms-footer-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 1024px) {
    .ms-footer-main .ms-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .ms-footer-main .ms-container .ms-footer-head {
        grid-column: 1 / -1;
        margin-bottom: 40px;
    }

    .ms-footer-column {
        gap: 10px;
    }
}

@media (max-width: 544px) {
    .ms-footer-main .ms-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ms-footer-head img {
    width: 100%;
    max-width: 190px;
}

.ms-footer-title {
    color: #fff;
    padding-bottom: 10px;
    margin: 0;
    border-bottom: 1px solid #ffffff1a;
}

.ms-footer-column-title {
    margin-top: 20px;
}

footer ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 9px;
    margin: 0;
}



.ms-footer-copyright {
    padding: 0;
    background-image: linear-gradient(90deg, rgb(0, 115, 156) 0%, rgb(0, 92, 125) 100%);
}

.ms-footer-copyright .ms-container {
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ffffff1a;
}

.ms-footer-copyright img {
    max-width: 100px;
}

.ms-footer-copyright p {
    margin: 0;
}

.ms-footer-copy-menu {
    flex-direction: row;
    gap: 20px;
}

.ms-footer-copy-menu a {
    font-size: 14px;
}

@media (max-width: 1024px) {
    .ms-footer-copyright .ms-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 545px) {
    footer .ms-accordion .ms-accordion-title::after {
        display: none;
        content: none;
    }

    footer .ms-accordion .ms-accordion-title {
        cursor: default;
        pointer-events: none;
    }

    footer .ms-accordion .ms-accordion-content {
        max-height: 100% !important;
    }
}

/*PAGES Page Banner*/

.ms-banner-section > .ms-container {
    padding: 30px 10px;
    position: relative;
    z-index: 3;
	margin-top: -10px;
}


.header-type-simple .ms-banner-section .ms-container {
    border-bottom: 1px solid color-mix(in srgb, var(--ms-primary) 10%, white);
    /* margin-bottom: 20px; */
}

.header-type-simple .ms-banner-section {
	padding: 0;
}

@media only screen and (max-width: 921px) {
    .ms-banner-section .ms-container {
        padding: 10px;
    }

    /* .header-type-simple .ms-banner-section .ms-container {
        margin-bottom: 10px;
    } */
}

.ms-banner-section h1.ms-title {
    margin: 0;
}

.header-type-banner .ms-banner-section h1.ms-title {
    color: white;
}


.header-type-banner .ms-banner-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    padding-bottom: 40px;
}

.single-services.header-type-banner .ms-banner-section {
    min-height: 350px;
}

.header-type-banner .ms-banner-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 82px;
    /* или clamp(...) */
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 82' preserveAspectRatio='none'><path d='M719 79.3365C180.701 78.764 -0.8464 16.1945 -2 0V81.7903H1440V0.817903C1440 15.8673 1257.3 79.9909 719 79.3365Z' fill='white'/></svg>") no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

@media only screen and (max-width: 1024px) {
    .header-type-banner .ms-banner-section::after {
        height: 50px;
    }
}

@media only screen and (max-width: 768px) {
    .header-type-banner .ms-banner-section::after {
        height: 35px;
    }
}

.header-type-banner .ms-banner-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg,
            color-mix(in srgb, var(--ms-primary) 20%, transparent) 0%,
            var(--ms-primary) 50%);
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

.rtl.header-type-banner .ms-banner-section::before {
    background: linear-gradient(90deg,
            color-mix(in srgb, var(--ms-primary) 20%, transparent) 0%,
            var(--ms-primary) 50%);
}

.header-type-banner .ms-banner-section,
.header-type-banner .ms-banner-section a {
    color: white;
}

@media only screen and (max-width: 921px) {
    .header-type-banner .ms-banner-section {
        min-height: 220px;
    }
}

/* Адаптивный размер заголовков по количеству символов */
/* Все h1 заголовки по умолчанию 75px */
h1.ms-title,
.ms-banner-section h1.ms-title,
.ms-main-title {
    font-size: 75px;
}

/* Длинные заголовки (≥25 символов) - 50px */
.ms-h1-small,
h1.ms-h1-small,
.ms-banner-section h1.ms-h1-small,
.ms-main-title.ms-h1-small {
    font-size: 50px;
}

.header-type-banner .ms-banner-section h1.ms-h1-small {
    font-size: 50px;
}

.ms-banner-section .ms-banner-actions {
    margin-top: 1.25rem;
}

@media (max-width: 921px) {

    h1.ms-title,
    .ms-banner-section h1.ms-title,
    .ms-main-title {
        font-size: 55px;
    }

    .ms-h1-small,
    h1.ms-h1-small,
    .header-type-banner .ms-banner-section h1.ms-h1-small,
    .ms-main-title.ms-h1-small {
        font-size: 45px;
    }
}

@media (max-width: 544px) {

    h1.ms-title,
    .ms-banner-section h1.ms-title,
    .ms-main-title {
        font-size: 45px;
    }

    .ms-h1-small,
    h1.ms-h1-small,
    .header-type-banner .ms-banner-section h1.ms-h1-small,
    .ms-main-title.ms-h1-small {
        font-size: 36px;
    }
}


/*ARCHIVE*/

.ms-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
    gap: 20px;
    margin-top: 20px;
}

.term-phonebook .ms-posts-grid {
    display: grid;
}


@media (max-width: 921px) {
    .ms-posts-grid {
        gap: 15px;
    }
}


/*Лежачие карточки постов ms-posts-grid-2*/

.ms-posts-grid.ms-posts-grid-2,
body:not(.term-phonebook) .ms-posts-grid:has(.ms-post-card-2) {
    grid-template-columns: 1fr;
}

.ms-posts-grid-2 .ms-post-card:not(.ms-vacancy-tender-card) {
    display: grid;
    grid-template-columns: 30% 70%;
}

.ms-posts-grid-2 .ms-staff-card {
    flex-direction: row;
    max-width: 100%;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 8px;
    gap: 20px;
    border-radius: 8px;
    padding: 10px 15px 15px;
}

.ms-posts-grid-2 .ms-post-card-title a,
.ms-post-card-2 .ms-post-card-title a {
    color: var(--ms-primary);
}

.ms-posts-grid-2 h2.ms-post-card-title,
.ms-post-card-2 .ms-post-card-title {
    border-bottom: 1px solid lightgrey !important;
    padding-bottom: 10px;
}

.ms-posts-grid-2 .ms-post-card-meta,
.ms-post-card-2 .ms-post-card-meta {
    display: none;
}



/*ARCHIVE Search Section*/
.ms-search-container {
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    position: relative;
    top: -50px;
    z-index: 2;
    margin-bottom: -40px;
}

@media screen and (max-width: 921px) {
	.ms-search-container {
		padding: 20px;
	}
}

.ms-search-container--archive {
	width: calc(100% - 20px);
	top: -60px;
}

.ms-search-container input.ms-search-input {
    height: 55px;
    border: 1px solid var(--ms-primary);
    border-radius: 15px;
}

.ms-search-container .ms-icon-wrap .icon {
    color: var(--ms-primary);
    width: 1.4em;
    height: 1.4em;
}

/*ARCHIVE Tax Filter*/
.ms-tax-filter-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    width: 100%;
    display: flex;
    margin: 0px 0 30px 0;
}

.ms-tax-filter-wrap::-webkit-scrollbar {
    display: none;
}

@media (max-width: 921px) {
    .ms-tax-filter-wrap {
        margin: 0 0 20px 0;
    }
}

.ms-tax-filter {
    display: flex;
    overflow: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 auto;
    padding: 0 10px;
    list-style: none;
    white-space: nowrap;
    width: max-content;
}

.ms-tax-filter a {
    display: block;
    padding: 8px 16px;
    background: #eee;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.ms-tax-filter span.active {
    display: block;
    padding: 8px 16px;
    transition: background 0.3s;
    border-radius: 20px;
}

.ms-tax-filter a.active,
.ms-tax-filter a:hover,
.ms-tax-filter span.active {
    background: var(--ms-primary, #1f2839);
    color: #fff;
}

/*ARCHIVE Before Content*/
.ms-archive-before-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.ms-archive-desc {
    /* text-align: center; */
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

/* .ms-archive-desc ul {
    text-align: start;
} */

/*ARCHIVE Post Card*/
.ms-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Убеждаемся, что phonebook-card также имеет начальное состояние анимации */
.ms-post-card.ms-phonebook-card,
article.ms-phonebook-card {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.ms-post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ms-child-services-grid .ms-post-card {
    opacity: 1;
    transform: translateY(0);
}

.ms-post-card a {
    display: flex;
    flex-direction: column;
}

.ms-post-card.ms-animated,
.ms-staff-card.ms-animated,
.ms-post-card.ms-phonebook-card.ms-animated,
article.ms-phonebook-card.ms-animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.ms-post-card-meta {
    color: var(--ms-grey);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-event-card-date:after {
	display: none;
}

.ms-post-card:not(.ms-post-card-2) .ms-post-meta {
	flex-direction: column;
	gap: 0px;
	align-items: start;
	padding: 10px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid lightgrey;
	width: 100%;
}

@media only screen and (max-width: 768px) {
	.ms-post-card:not(.ms-post-card-2) .ms-post-meta {
		gap: 5px;
		padding: 0 0 5px 0;
		margin-bottom: 5px;
		border-bottom: 1px solid lightgrey;
		width: 100%;
	}
}

.ms-post-card .ms-post-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ms-post-card-thumb-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* Общий оверлей для иконок на превью (видео — play, галерея — image) */
.ms-post-card-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ms-post-card-thumb-overlay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-post-card-thumb-overlay-icon {
	z-index: 1;
}

.ms-post-card-thumb-overlay-icon .icon {
    color: white;
}

/* Видео: затемнённый фон + круг с иконкой play */
.ms-post-card-thumb-overlay--video {
    background: rgba(0, 0, 0, 0.3);
}

.ms-post-card-thumb-overlay--video .ms-post-card-thumb-overlay-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.ms-post-card-thumb-overlay--video .ms-post-card-thumb-overlay-icon .icon {
    width: 24px;
    height: 24px;
    fill: #333;
}

/* Галерея: иконка по центру с тенью */
.ms-post-card-thumb-overlay--gallery .ms-post-card-thumb-overlay-icon {
    width: 48px;
    height: 48px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.ms-post-card-thumb-overlay--gallery .ms-post-card-thumb-overlay-icon .icon {
    width: 100%;
    height: 100%;
}

/* Карточка галереи: контент выезжает снизу при наведении, лейбл категории */
.ms-post-card--gallery .ms-post-card-thumb-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ms-post-card--gallery .ms-post-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    z-index: 2;
}

.ms-post-card--gallery .ms-post-card-content .ms-post-card-title,
.ms-post-card--gallery .ms-post-card-content .ms-post-card-date {
    color: inherit;
}

.ms-post-card--gallery .ms-post-card-content .ms-post-card-date {
    opacity: 0.9;
}

.ms-post-card--gallery .ms-post-card-content .ms-post-card-read-more {
    color: rgba(255, 255, 255, 0.95);
    margin-top: 4px;
}

.ms-post-card--gallery:hover .ms-post-card-content {
    transform: translateY(0);
}

.ms-post-card--gallery .ms-post-card-term {
    z-index: 3;
	top: 0;
	bottom: auto;
}

/* Планшет и мобильный: контент галереи всегда виден (нет hover) */
@media (max-width: 1024px) {
    .ms-post-card--gallery .ms-post-card-content {
        transform: translateY(0);
    }
}

.ms-post-card .ms-post-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    object-fit: cover;
}


.ms-post-card:hover .ms-post-card-thumb img {
    transform: scale(1.05);
}

.ms-post-card-content {
    padding: 10px 15px 15px 15px;
    width: 100%;
}

.ms-post-card-term {
    background-color: var(--ms-primary);
    display: inline;
    padding: 0 7px;
    color: white;
    border-radius: 3px 0 0 0;
    position: absolute;
    bottom: 0;
    right: 0;
}

h2.ms-post-card-title {
    margin: 0;
    border-bottom: 0px solid var(--ms-primary) !important;
    padding-bottom: 0;
    font-size: 20px;
}

.ms-post-card-title a {
    color: var(--ms-text);
}

.ms-post-card .ms-post-card-excerpt {
    margin: 5px 0;
    color: var(--ms-text);
}

.ms-post-card-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ms-post-card-author img {
    border-radius: 50%;
    height: 20px;
    width: 20px;
}

.ms-post-card-date {
    color: var(--ms-grey);
    font-size: 12px;
    margin-top: 3px;
}

.ms-post-card-read-more a {
    color: var(--ms-primary);
}

@media only screen and (max-width: 544px) {
    .ms-post-card {
        display: grid;
        grid-template-columns: 35% 65%;
    }

    .ms-post-card--gallery {
        display: block;
    }

    .ms-post-card a {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .ms-post-card--gallery .ms-post-card-thumb-link {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .ms-post-card .ms-post-card-thumb-link {
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .ms-post-card .ms-post-card-thumb {
        margin: 5px 0;
        border-radius: 5px;
        overflow: hidden;
    }

    .ms-post-card-content {
        padding: 10px;
    }

    .ms-post-card-title {
        font-size: 18px !important;
        margin-top: 0;
    }

    .ms-post-card-term {
        padding: 0 3px;
        bottom: 0px;
        right: 0px;
        font-size: 12px;
        line-height: normal;
    }

    .ms-post-card-meta {
        margin: 3px 0;
    }

    .ms-post-card-meta div {
        font-size: 12px !important;
        line-height: 1em !important;
    }

    .ms-post-card-author img {
        height: 15px;
        width: 15px;
    }

    .ms-post-card .ms-post-card-excerpt {
        max-height: 35px;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.2em;
    }

    .ms-post-card-read-more {
        display: none;
    }
}

/*Post Card 2*/
article.ms-post-card-2,
.ms-post-card-2 article.ms-post-card,
.ms-posts-grid-2 article.ms-post-card {
    border-left: 3px solid var(--ms-primary);
    padding: 10px;
    border-radius: 4px;
    transition: box-shadow 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    align-items: stretch;
}

.rtl article.ms-post-card-2,
.rtl .ms-post-card-2 article.ms-post-card,
.rtl .ms-posts-grid-2 article.ms-post-card {
    border-left: 0px solid var(--ms-primary);
    border-right: 3px solid var(--ms-primary);
}

.ms-post-card-2 .ms-post-card-excerpt {
    margin: 0;
}

.ms-post-card-2 .ms-post-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-post-card-2 .ms-post-card-label {
    display: inline-flex;
    align-self: flex-start;
    background: var(--ms-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-n, "Noto Sans Hebrew", sans-serif);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    line-height: 1em;
}

.ms-post-card-2 .ms-post-card-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ms-post-card-2 .ms-post-card-title {
    border-bottom: 1px solid lightgrey !important;
    padding-bottom: 10px;
}

body.rtl article.ms-post-card-2,
body.rtl .ms-post-card-2 article.ms-post-card {
    border-left: none;
    border-right: 3px solid var(--ms-primary);
}




/*Departments Grid - используем глобальные стили*/

.ms-section-child-departments {
    margin-top: 40px;
    padding-top: 20px;
}

.ms-department-card {
    opacity: 1;
}

/* .ms-department-card:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

.ms-department-title {
    color: var(--grey);
}



/*ARCHIVE Pagination*/
.ms-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 20px;
    color: var(--ms-grey);
}

.ms-posts-section .ms-pagination {
	margin-top: 40px;
}

.ms-pagination .page-numbers {
    padding: 10px;
}

.ms-pagination a {
    color: var(--ms-text);
}

.ms-pagination a:hover {
    background-color: #efefef;
}

.ms-pagination a:hover {
    color: var(--ms-text);
}

/* Active/current page in pagination */
.ms-pagination .page-numbers.current,
.ms-pagination span.current {
    background-color: var(--ms-primary, #0066cc);
    color: #ffffff;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.ms-pagination .page-numbers.current:hover,
.ms-pagination span.current:hover {
    background-color: var(--ms-primary, #0066cc);
    color: #ffffff;
}

@media only screen and (max-width: 921px) {
	.ms-pagination {
		margin-bottom: 40px;
	}		
}

.ms-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*POST*/
.ms-banner-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.ms-post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ms-post-author img {
    border-radius: 50%;
    height: 20px;
    width: 20px;
}

.ms-post-date {
    color: var(--ms-grey);
}

.ms-excerpt-box,
blockquote {
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 40px;
    z-index: 2;
    font-size: 20px;
    background: rgb(from var(--ms-primary) r g b / 0.06);
    background: color-mix(in srgb, var(--ms-primary) 6%, transparent);
    border-inline-start: 4px solid var(--ms-primary);
    padding-inline-start: clamp(16px, 2vw, 24px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

/* Внутренние элементы */
.ms-excerpt-box p,
blockquote p {
    margin-block: .5em;
    color: var(--ms-text-muted);
}

.ms-excerpt-box p:first-child,
blockquote p:first-child {
    margin-block-start: 0;
}

.ms-excerpt-box p:last-child,
blockquote p:last-child {
    margin-block-end: 0;
}


@media only screen and (max-width: 921px) {
    .ms-post-meta {
        margin: 3px 0;
    }

    .ms-post-meta div {
        font-size: 12px !important;
        line-height: 1em !important;
    }
}

@media only screen and (max-width: 768px) {
	main ol,
	main ul {
		margin: 0 20px 20px 0;
	}
}

/* .rtl main blockquote {
    border-right: 5px solid rgba(0, 0, 0, 0.05);
    border-left: 0px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    font-style: italic;
    margin: 0 0 1.5em;
    font-size: 1.1em;
    line-height: inherit;
    position: relative;
} */

main .post li {
    margin: 10px 0;
}

main .post figure:has(img) {
    margin-bottom: 1.5em;
}

main .post figure img {
    text-align: center;
}

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

    main .post figure:has(img), main .post figure img {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
}

.comment-form-cookies-consent {
    gap: 10px;
}

/*POST Table of Content*/
.ms-toc {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 2rem 0;
    border-radius: 6px;
}

.ms-toc-icon {
    transition: transform 0.3s ease;
    display: inline-flex;
}

.ms-toc-rotated .icon {
    transform: rotate(180deg);
}

.ms-toc-list {
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
}

.ms-toc-list .ms-toc-item:first-child {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #efefef;
}

.ms-toc-item {
    margin: 0.25rem 0;
}

.ms-toc-item a {
    color: var(--ms-text);
}

.ms-toc-item a:hover {
    color: var(--ms-accent);
}

.ms-toc-title {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    margin: 0 20px;
}

li.ms-toc-item.ms-toc-level-2 {
    font-weight: 500;
    margin: 10px 40px;
}

li.ms-toc-item.ms-toc-level-3 {
    margin: 5px 60px;
}

@media only screen and (max-width: 921px) {
    .ms-toc {
        padding: 10px;
    }

    .ms-toc-title {
        margin: 5px 10px;
    }

    li.ms-toc-item.ms-toc-level-2 {
        margin: 10px 20px;
    }

    li.ms-toc-item.ms-toc-level-3 {
        margin: 5px 0 5px 40px;
    }
}

/*POST Share*/
.ms-post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* 	justify-content: center; */
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.ms-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #f2f2f2;
    transition: background-color 0.2s;
}

.ms-share-link:hover {
    background-color: #e0e0e0;
}

.ms-share-link .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.ms-section-related-posts {
    margin-top: 40px;
    padding-top: 20px;
    /* 	border-top: 1px solid color-mix(in srgb, var(--ms-primary) 10%, white); */
}


/*SEARCH Live Search*/
.ms-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0;
}

.ms-search-input-wrap {
    width: 100%;
}

input.ms-search-input {
    width: 100%;
    background-color: #fff;
    color: var(--ms-grey);
    border-radius: 20px;
    padding: 5px 20px;
    border: 1px solid var(--ms-grey);
    font-size: 18px;
}

input.ms-search-input:focus,
input.ms-search-input:focus-visible {
    background-color: #fff;
}

input.ms-search-input:not(:placeholder-shown) {
    background-color: #fff;
}

.ms-banner-section input.ms-search-input {
    background-color: #fff0;
    color: white !important;
    border: 1px solid white;
}

.ms-banner-section input.ms-search-input:not(:placeholder-shown) {
    background-color: #fff0;
}

input.ms-search-input::placeholder {
    opacity: 1;
    font: inherit;
    font-size: 18px;
    color: var(--ms-grey);
}

.ms-banner-section input.ms-search-input::placeholder {
    color: white;
}

.ms-icon-wrap {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-inline: 10px;
    cursor: pointer;
    right: 0;
    left: auto;
    z-index: 1;
}

.ms-icon-wrap .icon {
    color: var(--ms-grey);
}

.ms-banner-section .ms-icon-wrap .icon {
    color: white;
}

.rtl .ms-icon-wrap {
    left: 0;
    right: auto;
}

.ms-search-wrap .ms-icon-button {
    padding: 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggle clear icon visibility for inputs.
 * JS adds/removes `has-text` class on `.ms-icon-wrap` depending on input value.
 * This keeps the clear "x" hidden until the user types something.
 */
.ms-icon-wrap .icon.icon-clear {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.2s;
}

.ms-icon-wrap.has-text .icon.icon-clear {
    display: block;
}

.ms-icon-wrap.has-text .icon.icon-search {
    display: none;
}

/* Make clear icon hover match the simple-search clear button feel. */
.ms-icon-wrap .ms-icon-button:hover .icon.icon-clear {
    color: #000;
}

.ms-search-clear {
    position: absolute;
    inset-inline-end: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    right: 40px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--ms-grey);
    padding: 0.25rem;
    transition: color 0.2s;
    z-index: 2;
}

.ms-search-clear .icon.icon-clear {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

.ms-banner-section .ms-search-clear {
    color: white;
}

.rtl .ms-search-clear {
    left: 40px;
    right: auto;
}

.ms-search-clear:hover {
    color: black;
}

.ms-search-input::-webkit-search-cancel-button {
    display: none;
}

.ms-live-search-results {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 100%;
    z-index: 999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-block-start: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ms-live-search-results.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.ms-live-search-results-inner {
    display: flex;
    flex-direction: column;
    padding-inline: 5px;
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
    gap: 20px;
    overflow-x: hidden;
    margin-top: 0;
}

/* .ms-live-search-item-wrapper .ms-staff-card {
	flex-direction: row;
	max-width: 100%;
	gap: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 10px 15px 15px 15px;
} */

.ms-no-results {
    color: black;
    padding: 10px;
}

.ms-search-view-all {
    text-align: center;
    background-color: var(--ms-primary);
    border-radius: 5px;
}

.ms-search-view-all a {
    color: white;
    width: 100%;
    display: block;
    padding: 2px 5px 5px 5px;
}

.ms-live-search-no-results {
    padding: 1rem;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.ms-loading-spinner {
    display: block;
    margin: 20px auto;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--ms-primary, #004952);
    border-radius: 50%;
    animation: ms-spin 0.8s linear infinite;
}

@keyframes ms-spin {
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 768px) {
    .ms-live-search-results-inner {
        gap: 15px;
    }

    .ms-live-search-results-inner .ms-search-card {
        gap: 10px;
    }

    .ms-search-content {
        padding: 0;
    }

    .ms-search-excerpt {
        font-size: 14px;
        margin-bottom: 0;
    }

    .ms-read-more {
        font-size: 14px;
    }

    .ms-search-content h3 {
        margin-bottom: 5px;
    }

    .ms-search-excerpt {
        max-height: calc(1.4em * 2);
        /* 2 строки */
    }
}

/*Search Minimal*/
.ms-live-search-results-inner:has(.ms-search-result-minimal) {
    gap: 0 !important;
}

.ms-search-result-minimal {
    padding: 15px;
    border-bottom: 1px solid lightgrey;
}

.ms-search-result-minimal:first-child {
    padding-top: 0;
}

.ms-search-result-minimal .ms-search-title {
    margin-bottom: 5px;
}

.ms-read-more {
    color: var(--ms-primary);
}

/*COMPONENTS*/
.ms-contacts {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 9px;
    margin: 0;
}

.ms-contacts,
.ms-contacts a {
    color: var(--ms-text);
}

.ms-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-contact-item p {
	margin: 0
}

.ms-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ms-contacts,
.ms-contacts a {
    margin: 0;
    color: var(--ms-text);
}

.ms-search-result-item-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: start;
}

.ms-search-label {
    font-size: 10px;
    background-color: var(--ms-primary);
    color: white;
    padding: 1px 3px;
    line-height: 1.3;
    width: auto;
    border-radius: 3px;
    white-space: nowrap;
}

/*COMPONENTS Up Button*/
.ms-up-button {
    position: fixed;
    bottom: 20px;
    margin-inline-start: 20px;
    z-index: 999;
    /* background: var(--ms-primary);
    border-radius: 15px; */
    width: 48px;
    height: 48px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.ms-up-button .icon {
    width: 25px;
    height: 25px;
    color: white;
}

body.sticky-scrolled .ms-up-button {
    opacity: 0.5;
    pointer-events: auto;
}

body.sticky-scrolled .ms-up-button:hover {
    opacity: 1;
}

@media only screen and (max-width: 768px) {
    .ms-up-button {
        bottom: 80px;
        margin-inline-start: 10px;
    }
}

/*COMPONENTS Spinner*/
.ms-loading-spinner {
    display: block;
    margin: 20px auto;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--ms-primary, #004952);
    border-radius: 50%;
    animation: ms-spin 0.8s linear infinite;
}

@keyframes ms-spin {
    to {
        transform: rotate(360deg);
    }
}


/*Other*/
.wp-block-image[data-fancybox] {
    cursor: pointer;
}

button.ma-active-filter-remove {
    width: 7px;
    height: 7px;
    mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNSIgaGVpZ2h0PSI2IiB2aWV3Qm94PSIwIDAgNSA2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yLjUgMy42Mzg3OEwwLjYzNjg4MiA1Ljg3NDUyQzAuNTY3MTczIDUuOTU4MTcgMC40Nzg0NTQgNiAwLjM3MDcyMiA2QzAuMjYyOTkxIDYgMC4xNzQyNzEgNS45NTgxNyAwLjEwNDU2MyA1Ljg3NDUyQzAuMDM0ODU0MSA1Ljc5MDg3IDAgNS42ODQ0MSAwIDUuNTU1MTNDMCA1LjQyNTg2IDAuMDM0ODU0MSA1LjMxOTM5IDAuMTA0NTYzIDUuMjM1NzRMMS45Njc2OCAzTDAuMTA0NTYzIDAuNzY0MjU4QzAuMDM0ODU0MSAwLjY4MDYwOCAwIDAuNTc0MTQ0IDAgMC40NDQ4NjdDMCAwLjMxNTU4OSAwLjAzNDg1NDEgMC4yMDkxMjUgMC4xMDQ1NjMgMC4xMjU0NzVDMC4xNzQyNzEgMC4wNDE4MjQ5IDAuMjYyOTkxIDAgMC4zNzA3MjIgMEMwLjQ3ODQ1NCAwIDAuNTY3MTczIDAuMDQxODI0OSAwLjYzNjg4MiAwLjEyNTQ3NUwyLjUgMi4zNjEyMkw0LjM2MzEyIDAuMTI1NDc1QzQuNDMyODMgMC4wNDE4MjQ5IDQuNTIxNTUgMCA0LjYyOTI4IDBDNC43MzcwMSAwIDQuODI1NzMgMC4wNDE4MjQ5IDQuODk1NDQgMC4xMjU0NzVDNC45NjUxNSAwLjIwOTEyNSA1IDAuMzE1NTg5IDUgMC40NDQ4NjdDNSAwLjU3NDE0NCA0Ljk2NTE1IDAuNjgwNjA4IDQuODk1NDQgMC43NjQyNThMMy4wMzIzMiAzTDQuODk1NDQgNS4yMzU3NEM0Ljk2NTE1IDUuMzE5MzkgNSA1LjQyNTg2IDUgNS41NTUxM0M1IDUuNjg0NDEgNC45NjUxNSA1Ljc5MDg3IDQuODk1NDQgNS44NzQ1MkM0LjgyNTczIDUuOTU4MTcgNC43MzcwMSA2IDQuNjI5MjggNkM0LjUyMTU1IDYgNC40MzI4MyA1Ljk1ODE3IDQuMzYzMTIgNS44NzQ1MkwyLjUgMy42Mzg3OFoiIGZpbGw9IndoaXRlIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3N2Zz4=') no-repeat center/contain;
    background: #fff;
}

.ma-select-empty {
    padding: 6px 15px;
    text-align: center;
}

.magazine__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 32px 0;
}

.magazine-card {
    display: flex;
    flex-direction: column;
}

.magazine__title {
    font-weight: 500;
    font-size: 14px;
}

.magazine-card__image img {
    width: 100%
}

@media (width < 1024px) {
    .magazine__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (width < 768px) {
    .magazine__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width < 400px) {
    .magazine__grid {
        gap: 24px 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}











/*Page Sections*/

.ms-search-main-container {
    margin: auto;
    margin-bottom: 30px;
    width: 100%;
    max-width: 700px;
}

.ms-search-main-containe input.ms-search-input {
    height: 45px;
}

.ms-icon-arrow {
    width: 20px;
    height: 20px;
    /* color not set: inherits from parent so fill: currentColor follows link/context */
}

.ms-icon-arrow use {
    fill: currentColor;
}

.ms-back-link {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 1;
	font-size: 18px;
    color: black;
}

.ms-back-link .ms-icon-arrow {
    height: 10px;
    color: inherit;
    color: #515151;
    flex-shrink: 0;
    transform: none; /* По умолчанию не переворачиваем */
}

/* Переворачиваем стрелку только на RTL */
[dir="rtl"] .ms-back-link .ms-icon-arrow,
.rtl .ms-back-link .ms-icon-arrow,
html[dir="rtl"] .ms-back-link .ms-icon-arrow,
body.rtl .ms-back-link .ms-icon-arrow {
    transform: scaleX(-1) !important;
}

/* Явно указываем, что на LTR стрелка не переворачивается */
[dir="ltr"] .ms-back-link .ms-icon-arrow,
html[dir="ltr"] .ms-back-link .ms-icon-arrow,
html:not([dir="rtl"]) .ms-back-link .ms-icon-arrow,
body:not(.rtl) .ms-back-link .ms-icon-arrow {
    transform: none !important;
}

.header-type-banner .ms-back-link .ms-icon-arrow {
    color: white;
}

.ms-back-link:hover {
    opacity: 1;
}



.ms-nav-panel {
    min-height: 55px;
    display: flex;
    align-items: center;
}

/* Стили для новых SVG иконок стрелок */
/* .ma-swiper-btn .ms-icon-arrow {
    color: var(--ms-primary);
    stroke: currentColor;
} */

.ms-staff-btns {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    margin-top: 45px;
    flex-wrap: wrap;
}


.ma-news-card-link .ms-icon-arrow {
    width: 15px;
    /* opacity: 0.5; */
}

/*Section BG*/

.ms-section-light-grey {
    background: #F7F7F7;
}

.ms-section-light-gradient {
    background: linear-gradient(90deg,
            color-mix(in srgb, var(--ms-primary) 20%, transparent) 0%,
            color-mix(in srgb, var(--ms-primary) 5%, transparent) 100%);
}

.ms-section-dark-gradient {
    background: linear-gradient(90deg, var(--ms-primary) 0%, color-mix(in srgb, var(--ms-primary) 80%, black) 100%);
}

.ms-section-dark-gradient .ms-title {
    color: white;
}

.ms-section-dark-gradient .ms-title:before {
    background: white;
}


.ms-section-dark-gradient .ma-news-card-date,
.ms-section-dark-gradient .ma-news-card-link,
.ms-section-dark-gradient .ms-icon-arrow {
    color: white;
}

.ms-section-dark-gradient .icon-bg use {
    fill: #8ce0ff;
}

.ms-section-dark-gradient .icon-bg {
    opacity: 0.04;
}

/* Dark section pagination: see global-styles.css .ms-section-dark-gradient .ma-swiper-pagination */





/*Child Page*/

.ms-section-child-bg {
    position: relative;
    background-image: url('/wp-content/uploads/2025/10/child-bg-min.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ms-section-child-bg .childe-bg-element figure {
    margin: 0;
}

.ms-section-child-bg .childe-bg-element {
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.ms-section-child-bg .bg-elephant {
    right: 0;
}

.ms-section-child-bg .bg-giraffe {
    left: 0;
}

@media (max-width: 921px) {
    .ms-section-child-bg .childe-bg-element {
        top: auto;
        bottom: 0;
		max-width: 100px;
    }
	
	.ms-section-child-bg {
	padding-bottom: 100px;		
}
}


/* .ms-service-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 33px;
} */

.ms-service-card {
    padding: 15px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: .5s !important;
    display: flex;
    flex-direction: column;
    /* justify-content: top; */
    align-items: center;
    gap: 15px;
    min-height: 160px;
}

/* Универсальная иконка с использованием --ms-primary */
.ms-service-card-icon {
    width: 39px;
    height: 38px;
    flex-shrink: 0;
}

.ms-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: white;
}

/* Стили для кликабельных карточек (ссылок) */
a.ms-service-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    /* display: block; */
}

a.ms-service-card:hover {
    text-decoration: none;
}

a.ms-service-card:focus {
    outline: 2px solid var(--ms-primary);
    outline-offset: 2px;
}

.ms-service-card-title {
    color: var(--ms-primary);
    margin: 0 !important;
    text-align: center;
}

.ms-service-card-subtitle {
    margin: -5px 0 0 0;
    color: #666;
    text-align: center;
}

.ms-service-card-btn {
    padding: 5px;
    margin-top: auto;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: .5s;
    justify-content: center;
}

.ms-service-card-btn:hover {
    color: white;
}

/* Кнопка внутри кликабельной карточки - предотвращаем всплытие события */
a.ms-service-card .ms-service-card-btn {
    pointer-events: none; /* Кнопка не перехватывает клик, клик идет на карточку */
}


/* ===== СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ NAVIGATION LINKS ===== */
.ma-section-test .ms-service-cards {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    grid-gap: 23px;
}

.ma-section-test .ms-service-card {
    border: 1px solid var(--ms-primary);
    box-sizing: border-box;
    gap: 10px;
    align-items: center;
}

.ma-section-test .ms-service-card-btn {
    font: 400 16px/1 var(--font-n);
}

.ma-swiper .ms-service-card {
    gap: 15px;
    min-height: 200px;
    height: auto;
    padding: 20px;
}

.ma-swiper .ms-service-card-btn {
    padding: 10px;
    font-size: 16px;
}

/*Staff*/

.single-staff .ms-section {
    padding-bottom: 0;
}

.ms-staff-info {
    display: flex;
    gap: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ms-primary);
}

@media only screen and (max-width: 921px) {
	.ms-staff-info {
		gap: 20px;
	}
}

@media only screen and (max-width: 768px) {
	.ms-staff-info {
		flex-direction: column;
	}
}

.ms-staff-single__info h1 {
    margin: -10px 0 5px 0;
    color: var(--ms-primary);

}

.ms-staff-header {
    border-bottom: 1px solid color-mix(in srgb, var(--ms-primary) 10%, white);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.ms-staff-ditails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-staff-single__role,
.ms-staff-single__specialization,
.ms-staff-single__department {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 18px;
}

.ms-staff-single__info {
    width: 100%;
}

.ms-staff-single__role strong,
.ms-staff-single__specialization strong,
.ms-staff-single__department strong {
    color: var(--ms-primary);
    min-width: 80px;
}

.ms-staff-single__image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
}

.ms-staff-single__photo {
    width: 280px;
}


/* Responsive */
@media only screen and (max-width: 768px) {

    .ms-staff-single__role,
    .ms-staff-single__specialization,
    .ms-staff-single__department {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .ms-staff-single__role strong,
    .ms-staff-single__specialization strong,
    .ms-staff-single__department strong {
        min-width: auto;
    }

    .ms-staff-single__photo {
        max-width: 250px;
    }
}


/*Staff Grid*/
/* .ms-staff {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.ms-staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-bottom: 40px;
    margin-top: 0px;
} */


/*Staff Card*/
.ms-staff-card {
    padding: 25px 15px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0px 0px 20px 0px #00000026;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: auto;
    /* max-width: 243px; */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.swiper .ms-staff-card {
	opacity: 1;
}

/* Staff slider: no fade-in lift — cards stay static */
.ma-swiper-main-staf .ms-staff-card {
	opacity: 1;
	transform: none;
}


@media only screen and (max-width: 768px) {
	.ms-staff-card {
		padding: 15px 15px 25px 15px;
	}
}

.ms-post-card-row .ms-staff-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #f6f6f6;
    border-radius: 15px;
    padding: 12px 18px;
    transition: 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-shadow: 0px 0px 0px 0px #00000026;
}

/*   
  .ms-staff-grid .ms-staff-card {
    width: 100%;
    max-width: 100%;
  } */

.ms-staff-arrow,
.ms-staff-arrow svg {
    transition: 0.2s ease;
}

.ms-staff-card:hover .ms-staff-arrow {
    background: var(--ms-primary);
}

.ms-staff-card:hover .ms-staff-arrow svg {
    fill: #fff;
    color: white;
}

.ms-staff-img-container {
    position: relative;
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    margin: 0 auto 10px auto;
}

.ms-staff-grid .ms-staff-img-container {
    width: 118px;
    height: 120px;
}

.ms-staff-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.ms-staff-img-container svg {
    position: absolute;
    width: 110%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ms-staff-grid a:hover .ms-title {
    color: var(--ms-primary) !important;
}

.ms-staff-card .ms-title {
    margin-bottom: 0;
    width: calc(100% - 20px);
}

.rtl .ms-staff-arrow {
	left: 10px;
	right: auto;
}

.ms-staff-content {
    width: 100%;
    /* height: 100%; */
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 5px;
}

.ms-staff-meta-wrapper {
	display: flex;
	gap: 5px;
    width: calc(100% - 20px);
}



.ms-staff-meta {
    display: flex;
    flex-direction: column;
    justify-content: start;
    /* width: calc(100% - 35px); */
}

.ms-staff-grid .ms-staff-card {
    gap: 20px;
}

.ms-title {
    width: 100%;
}

.ms-staff-meta {
    width: calc(100% - 15px);
    height: 100%;
}

.ms-staff-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.rtl .ms-staff-arrow {
    left: 20px;
    right: auto;
}

.ma-font-card-title {
    font: 700 26px/1 var(--font-m);
}

.ma-font--blue {
    color: var(--ms-primary);
}

.ma-font--grey {
    color: #565656;
}

.ms-staff-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid var(--ms-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.ms-staff-arrow svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: var(--ms-primary);
}

body:not(.rtl) .ms-staff-arrow {
    rotate: 180deg;
}


/* Section About*/


.ms-section-about > .ms-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ms-section-about .ms-grid-column:nth-child(1) figure,
  .ms-section-about .ms-grid-column:nth-child(1) img {
    height: 100%;
  }

.ms-section-about .ms-grid-column:nth-child(1) figure,
.ms-section-about .ms-grid-column:nth-child(1) img {
    object-fit: cover;
}

.ms-section-about img {
    border-radius: 10px;
}

.ms-section-about .ms-grid-column {
    flex-direction: column;
}

.ms-section-about,
.ms-section-about * {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    color: white;
}

.ms-section-about>.ms-container {
    display: flex;
}

.ms-section-about .ms-head {
    padding: 0;
}

.ms-section-about p {
    font-size: 26px;
    padding: 0 20px;
}

.ms-section-about .ms-grid-column {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    height: 100%;
    padding: 20px 10px;
}

.ms-section-about figure, .ms-section-about img {
	height: 100%;
}

/*GLOBAL Forms*/

fieldset input,
fieldset select,
fieldset textarea, .choices__inner {
    border-radius: 10px !important;
    border: 1px solid color-mix(in srgb, var(--ms-primary) 50%, white) !important;
}

.choices__inner {
	padding: 3px 15px;
}

.rtl .frm-fluent-form .choices[data-type *= select-one]:after {
	right: auto;
	left: 11px;
}

fieldset input:focus,
fieldset select:focus,
fieldset textarea:focus,
.choices__inner:focus,
fieldset input:focus-visible,
fieldset select:focus-visible,
fieldset textarea:focus-visible,
.choices__inner:focus-visible
 {
    border-color: var(--ms-primary) !important;
    outline: none;
    /* чтобы убрать стандартную синюю рамку браузера */
}

fieldset button {
    width: 100% !important;
    padding: 10px !important;
}

.ms-starred-text {
    color: var(--ms-primary);
}


.ma-select-choice .icon.icon-close {
    fill: currentColor;
    stroke-width: 0;
}

.ma-select-choice {
    padding: 10px;
    gap: 10px;
}

.tax-services-category .ms-title {
    color: var(--ms-text);
}


.ms-header ul.sub-menu a {
    font-size: 16px !important;
    color: var(--ms-text) !important;
    font-weight: 500;
}


main a {
    color: var(--ms-primary);
}



/*Post Meta*/
.ms-post-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.ms-post-meta>* {
    position: relative;
}

.ms-post-meta>*:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.1);
}


body.header-type-banner .ms-post-meta>*:not(:last-child)::after {
    background-color: white;
}

.ms-post-card.ms-vacancy-tender-card {
	display: flex;
}

.ms-vacancy-tender-card-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ms-vacancy-tender-card-status-dot.status-dot-open {
    background-color: #4caf50;
}

.ms-vacancy-tender-card-status-dot.status-dot-close {
    background-color: #f44336;
}

.ms-post-meta-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.ms-banner-section .ms-post-meta-item {
	align-items: center;
}

body:not(.header-type-banner) .ms-post-meta-label {
    font-weight: 600;
    color: var(--grey, #565656);
}

body:not(.header-type-banner) .ms-post-meta-value {
    color: var(--grey, #565656);
}

#main .ms-post-meta-label {
    font-weight: 600;
    color: var(--grey, #565656);
}

/* RTL Support */
body.rtl .ms-post-meta>*:not(:last-child)::after {
    right: auto;
    left: -12px;
}

.ms-banner-section .ms-post-meta {
    margin-top: 20px;
    font-size: 16px;
}

@media only screen and (max-width: 544px) {
	.ms-post-meta {
		flex-direction: column;
		align-items: start;
		gap: 10px;
	}

	body.header-type-banner .ms-post-meta > *:not(:last-child)::after {
		background-color: transparent;
	}
}

/* .ms-search-icon-button svg {
	color: white;
} */
/* header nav {
	width: 100%;
} */
/* .ms-header-section-center {
	min-width: 0;
} */

.main-nav {
    width: 100%;
}

@media only screen and (max-width: 768px) {
	.ma-main-nav--grid2x .ma-main-nav-circles {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.slideout-secondary-menu {
    display: block !important;
    color: white;
}

.slideout-secondary-menu a {
    color: white;
    text-align: center;
    padding: 5px;
}

/* =========================
   Группа кнопок
   ========================= */
.ms-buttons-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
}

.ms-buttons-group .ma-result-list-item {
    justify-content: center;
}

@media only screen and (max-width: 921px) {
    .ms-buttons-group {
        flex-wrap: wrap;
        gap: 0px;
    }
}


/* =========================
   Грид карточек
   ========================= */
/* Базовый грид */
.ms-grid {
    display: flex;
    gap: 10px;
    width: 100%;
}

.ms-grid-2 {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.ms-grid-2 > * {
	flex: 0 0 calc((100% - 20px) / 2);
	max-width: calc((100% - 20px) / 2);
}

/* Вариант на 3 колонки */
.ms-grid.ms-grid-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.ms-grid.ms-grid-3 > * {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
}

.ms-grid.ms-grid-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.ms-grid.ms-grid-4 > * {
    flex: 0 0 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
}

@media only screen and (max-width: 921px) {
	.ms-grid.ms-grid-3 > *,
	.ms-grid.ms-grid-4 > * {
		flex: 0 0 calc((100% - 40px) / 3);
		max-width: calc((100% - 40px) / 3);
	}
}

@media only screen and (max-width: 768px) {
	.ms-grid.ms-grid-3 > *,
	.ms-grid.ms-grid-4 > * {
		flex: 0 0 calc((100% - 20px) / 2);
		max-width: calc((100% - 20px) / 2);
	}
}


/* 
@media only screen and (max-width: 541px) {
		.ms-grid.ms-grid-3, .ms-grid.ms-grid-4  {
		grid-template-columns: repeat(1, 1fr);
		gap: 10px;
	}
} */



/* =========================
   Сетка сотрудников
   ========================= */
   .ms-section.ms-staff-grid-2  {
	overflow: visible;
}

   
.ms-staff-grid-2 .ms-title {
    margin: 0;
}

/* =========================
   Карточка
   ========================= */
.ms-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ms-staff-grid-2 .ms-card {
    border: 0;
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
}

.ms-staff-grid-2 .ms-card p {
    font-size: 16px;
    line-height: 1.2em;
}

.ms-staff-grid-2 .ms-staff-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px !important;
    padding: 20px 10px;
    text-align: center;
}

.ms-staff-grid-2 .ms-card p {
	color: var(--ms-text);
}




.ms-card:where(:hover, :focus-within) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.ms-card p {
    margin: 0;
}

.ms-card-header .ms-title {
    margin: 0;
    border-bottom: 1px solid grey;
    padding-bottom: 5px;
}


/* =========================
   Изображение 16:9
   ========================= */
.ms-card-thumb {
    position: relative;
    display: block;
    inline-size: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    min-height: 150px;
}

.ms-card-thumb a {
    display: block;
    inline-size: 100%;
    block-size: 100%;
}

.ms-card-thumb img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}


/* =========================
   Кишורים / подкатегории
   ========================= */
.ms-card-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.ms-subcat {
    display: inline-block;
    text-decoration: none;
    padding: 0 20px;
    width: 100%;
}

.ms-subcat:where(:hover, :focus-visible) {
    background: #eef4f6;
    border-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
}


/* =========================
   Нגישות / фокус
   ========================= */
.ms-card :where(a, button) {
    outline: none;
}

.ms-card :where(a, button):focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 73, 82, 0.25);
}


/* =========================
   Респонсивность
   ========================= */
@media (max-width: 768px) {
    /* .ms-grid {
        flex-direction: column;
    } */

    .ms-card {
        padding: 12px;
    }
}


/* =========================
   Отступы вокруг контента
   ========================= */
.ms-post-content,
.ms-section-related-posts {
    padding: 0;
}

@media only screen and (max-width: 768px) {
	.ms-section-related-posts {
		margin-top: 0px;
	}
}














/* Глобальные стили для таблиц в контенте */
/* #main table,
main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

#main table td,
main table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

#main table td p,
main table td p {
    margin: 0;
}

#main table td p:not(:last-child),
main table td p:not(:last-child) {
    margin-bottom: 0.5em;
} */

/* RTL поддержка */
body.rtl #main table td,
body.rtl main table td {
    text-align: right;
}

/* Специфичные стили для .site-main table */
.site-main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    border: 0;
    margin: 1.5em 0;
}

.site-main table td {
    padding: 10px 15px;
    border: 0;
    vertical-align: top;
    background-color: #f2f2f259;
    font-size: 16px;
}

.site-main table td p {
    margin: 0;
}

.site-main table td p:not(:last-child) {
    margin-bottom: 0.5em;
}

.site-main thead {
    background-color: var(--ms-primary);
    color: white;
}

.site-main tbody tr:nth-child(odd) td {
    background-color: color-mix(in srgb, var(--ms-primary) 7%, transparent);
}

.site-main .wp-block-table td,
.site-main .wp-block-table th {
    border: 0 !important;
}

/* RTL поддержка для .site-main */
body.rtl .site-main table td {
    text-align: right;
}

/* Адаптивность */
@media (max-width: 768px) {
    #main table,
    .site-main table,
    main table {
        font-size: 0.9em;
        display: block;
        overflow-x: auto;
    }

    #main table td,
    .site-main table td,
    main table td {
        padding: 8px 10px;
    }
}




/* 
.ms-service-cards {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
}

.ms-service-cards.ms-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ms-service-cards.ms-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}



.ms-service-cards .ma-result-list-item {
    display: flex;
    width: 100%;
    align-items: center;
    min-height: 50px;
    color: var(--ms-primary);
    font-weight: 600;
    padding: 20px 10px;
    border: 1px solid var(--ms-primary);
    border-radius: 15px;
    text-decoration: none;
    transition: .3s;
}

.ms-service-cards .ma-result-list-item:hover {
    background-color: var(--ms-primary);
    color: white;
}

@media (max-width: 1024px) {
    .ms-service-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ms-service-cards.ms-grid-3,
    .ms-service-cards.ms-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ms-container .ms-service-cards {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .ms-service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .ms-service-cards.ms-grid-3,
    .ms-service-cards.ms-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .ms-service-card {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ms-service-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .ms-service-cards.ms-grid-3,
    .ms-service-cards.ms-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
}

.ms-grid-4 .ma-service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
} */



.ms-section-dark-gradient .ma-swiper-btn .icon {
    color: white;
    z-index: 9999;
}

symbol.ms-icon-arrow {
    color: unset !important;
}

button.js-load-more {
	margin-top: 40px;
	min-width: 150px;
}

.ma-helpful-swiper {
    max-width: 1112px;
    margin-left: auto;
    margin-right: auto;
    /* overflow: hidden; */
    padding-left: 16px;
    padding-right: 16px;
}



.ma-helpful-swiper [aria-disabled="true"] {
    display: none;
}


/*Fluent Form*/

.ff-message-success {
	background-color: green;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 20px;
	font-weight: bold;
}

.ff-message-success p {
	margin: 0;
}



.ma-head {
	margin-bottom: 0px;
}

.ms-staff-section .ma-swiper-main-staf .swiper,
.ms-staff-section .ma-swiper-main-staf {
    overflow: visible
}



/* Files section — последняя секция перед префутером */
.ms-files-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ms-file-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 15px;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border-radius: 15px;
	border: 1px solid lightgrey;
	transition: .5s
}

.ms-file-link:hover {
	background: color-mix(in srgb, var(--ms-primary, #1f2839) 5%, #fff);
	border-color: var(--ms-primary, #1f2839);
	color: var(--ms-primary, #1f2839);
}

.ms-file-link:focus-visible {
	outline: 2px solid var(--ms-primary, #1f2839);
	outline-offset: 2px;
}

.ms-file-link__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.ms-file-link__title {
	margin: 0;
}

.ms-file-link__desc {
	color: var(--ms-text);
}

.ms-file-link__icon {
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
}

.ms-contacts-popup-trigger {
	margin-top: 40px !important;
}


ul.swiper-wrapper {
	margin: 0;
}

.swiper-slide:has(.ma-news-card),
.swiper-slide:has(.ma-video-card)
{
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

    .ma-swiper-main-news .swiper-slide-active,
    .video-swiper .swiper-slide-active {
        opacity: 1;
}


/* До 544px: 1 карточка видима */
@media (width < 544px) {
    .ma-swiper-main-news .ma-news-card.swiper-slide-active,
    .video-swiper .ma-video-card.swiper-slide-active {
        opacity: 1 !important;
    }
}

/* От 544px до 768px: 2 карточки видимы */
@media (width >= 544px) and (width < 768px) {
    .ma-swiper-main-news .swiper-slide-active,
    .ma-swiper-main-news .swiper-slide-next,
    .video-swiper .swiper-slide-active,
    .video-swiper .swiper-slide-next {
        opacity: 1 !important;
    }
}

/* От 768px до 921px: 3 карточки видимы (для video-swiper) */
@media (width >= 768px) and (width < 921px) {
    .video-swiper .swiper-slide-active,
    .video-swiper .swiper-slide-next,
    .video-swiper .swiper-slide-next+* {
        opacity: 1 !important;
    }
}

/* От 768px: 3 карточки видимы (для ma-swiper-main-news) */
@media (width >= 768px) {
    .ma-swiper-main-news .swiper-slide-active,
    .ma-swiper-main-news .swiper-slide-next,
    .ma-swiper-main-news .swiper-slide-next+* {
        opacity: 1 !important;
    }
}

/* От 921px: 4 карточки видимы (для video-swiper) */
@media (width >= 921px) {
    .video-swiper .swiper-slide-active,
    .video-swiper .swiper-slide-next,
    .video-swiper .swiper-slide-next+*,
    .video-swiper .swiper-slide-next+*+* {
        opacity: 1 !important;
    }
}