/*
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;
}

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

/*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;
}

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

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

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

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

/*GLOBAL Layout Full width*/
body.layout-full .site-main,
body.layout-full .site-main>.ms-section>.ms-container {
  max-width: none;
  padding: 0;
}

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

/* GLOBAL Buttons */
.ms-button {
  overflow: hidden;
  border-radius: 0;
  position: relative;
  z-index: 1;
  min-width: 200px;
  cursor: pointer;
  padding: 10px 20px;
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  line-height: normal;
}

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

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

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

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

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

@media only screen and (max-width: 921px) {
  .ms-button {
    width: 100%;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.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;
}

/*GLOBAL Title Divider*/
.ms-divider::after {
  content: "";
  display: block;
  width: clamp(1%, 50px, 50%);
  height: 3px;
  background: var(--ms-accent);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 15px 0;
}

.ms-divider-center::after {
  margin: 15px auto;
}

@media only screen and (max-width: 1366px) {
  .ms-divider-center-lap::after {
    margin: 15px auto;
  }
}

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

  .ms-divider-center::after,
  .ms-divider-center-mob::after {
    margin: 15px auto 10px auto;
  }
}

/* HEADER */
/* У залогиненного пользователя: сдвигаем на высоту wpadminbar */
.admin-bar.sticky-header .ms-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar.sticky-header .ms-header {
    top: 46px;
  }
}

.ms-header {
  background-color: white;
  box-shadow: 0 0 10px 0 rgba(194, 194, 194, 0.5);
  transition: background-color .5s, box-shadow .5s, transform .5s;
}

.ms-header .ms-container {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 1fr auto;
  align-items: center;
  gap: 20px;
}

.ms-header-section-center {
  justify-content: center;
}

.ms-header-section:not(:has(nav)) {
  padding-top: 5px;
  padding-bottom: 5px;
}

.ms-header-section {
  display: flex;
  align-items: center;
  gap: 40px;
}

.ms-header-section-end {
  justify-content: flex-end;
}

.main-nav .slideout-menu a {
  padding: 10px 5px !important;
}

.main-navigation .main-nav ul li a {
  white-space: nowrap;
}

.main-navigation .main-nav ul .menu-item-has-children a {
  padding-inline-end: 20px !important;
}

.main-navigation .main-nav>ul {
  flex-wrap: nowrap !important;
}

.ms-logo-link {
  display: grid;
  grid-area: 1 / 1;
}

.ms-logo-link img {
  padding: 0;
  transition: height .5s, transform .5s;
  height: 55px;
  width: auto;
  grid-area: 1 / 1;
}

.ms-lang-switcher {
  flex-shrink: 0;
}

.ms-header-button {
  padding: clamp(8px, 2vw, 10px);
  order: 1;
  width: auto;
}

.ms-header-button .icon-phone {
  fill: white;
  stroke: transparent;
  stroke-width: 0;
  color: white;
}

header .ms-header-button,
header .ms-user-icon {
  z-index: 22222;
}

.rtl header .ms-header-button {
    direction: rtl;
}

@media (max-width: 544px) {

  .ms-header-button,
  .sticky-header.sticky-scrolled .ms-header-button {
    padding: 5px 10px !important;
    min-width: auto;
    font-size: 16px;
    gap: 5px;
  }

  .ms-header-button .ms-button-text {
    display: none;
  }

  .ms-header-button,
  .sticky-header.sticky-scrolled .ms-header-button {
    background-color: transparent;
    border: 0px solid;
    border-right: 1px solid lightgray;
    padding: 0 11px 0 0;
  }

  .ms-header-button .icon-phone {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.5;
    color: var(--ms-primary);
  }
}

@media only screen and (max-width: 1024px) {
  .ms-header .ms-container {
    grid-template-columns: 1fr auto 40px;
  }

  .rtl .ms-header .ms-container {
    direction: ltr;
  }

  .ms-header-section {
    gap: 10px;
  }

  .ms-header-section-start {
    order: 1;
    justify-content: start;
  }

  .ms-header-section-center {
    order: 3;
    justify-content: start;
  }

  .ms-header-section-end {
    order: 2;
  }

  .ms-header ul.sub-menu li.menu-item a {
    padding: 10px 0 !important;
  }

  .menu-item-expanded .sub-menu {
    transform: none;
  }

  .ms-header-button {
    order: 0;
  }

  header .ms-social-icons {
    display: none;
  }
}

/* HEADER Sticky Header */
/* .sticky-header .ms-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: 0.5s;
} */

.transparent-header .ms-header {
  position: fixed;
}

.sticky-header.sticky-scrolled .ms-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-header.sticky-scrolled .ms-logo-link img {
  height: 40px;
}

.sticky-header.sticky-scrolled .ms-header-button {
  padding: 5px 20px;
}

/* .sticky-header .ms-hero-section {
  margin-top: 75px;
} */

/* HEADER Transparent Header */
.transparent-header:not(.sticky-scrolled) .ms-header {
  background-image: linear-gradient(180deg,
      color-mix(in srgb, var(--ms-primary) 100%, transparent) 30%,
      color-mix(in srgb, var(--ms-primary) 0%, transparent) 100%);
  background-color: transparent;
}

.transparent-header:not(.sticky-scrolled) .main-nav ul li a,
.transparent-header:not(.sticky-scrolled) .main-nav,
.transparent-header:not(.sticky-scrolled) .ms-header .gp-icon svg {
  color: white;
  fill: white;
}

.transparent-header.sticky-header.sticky-scrolled .main-navigation .menu-toggle,
.transparent-header.sticky-header.sticky-scrolled .main-navigation .menu-bar-items {
  color: white;
  fill: white;
}

body.transparent-header .ms-header {
  box-shadow: none;
}

.transparent-header:not(.sticky-scrolled) .ms-header .icon {
  color: white;
}

/* HEADER Menu */
.ms-header-section-center,
.main-navigation,
.inside-navigation,
.main-nav,
.main-nav li,
.main-nav a {
  height: 100%;
  line-height: 20px !important;
}

.main-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav .dropdown-menu-toggle {
  height: auto !important;
}

.ms-header .menu-item a {
  font-size: 16px;
  color: var(--ms-primary);
  position: relative;
  transition: color 0.5s;
}

.ms-header ul.sub-menu a {
  font-size: 16px;
  color: white !important;
  padding: 10px 20px;
  transition: color 0.5s;
}

.ms-header ul.sub-menu {
  min-width: 300px;
  max-width: 500px;
  width: max-content;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  background-color: color-mix(in srgb, var(--ms-primary) 70%, transparent);
  box-sizing: border-box;
}

.ms-header ul.sub-menu li a {
  white-space: normal;
}


.ms-header .menu-item-expanded ul.sub-menu:has(.menu-item-expanded) {
  max-height: none !important;
}

.ms-header ul.sub-menu li.menu-item,
.ms-header ul.sub-menu li.menu-item a {
  transition: background-color 0.5s, transform 0.5s;
}

.rtl .main-navigation:not(.toggled) ul ul li.sfHover>ul,
.rtl .main-navigation:not(.toggled) ul ul li:hover>ul {
  right: 100%;
  left: auto;
}

.menu-item-has-children a {
  padding-inline-end: 20px !important;
}

.main-nav .menu-item-has-children>a:before {
  content: "";
  width: 16px;
  height: 16px;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSI+CjxwYXRoIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBkPSJNOCAxMmw4IDggOC04Ii8+Cjwvc3ZnPg==") no-repeat center/contain;
  background: currentColor;
  position: absolute;
  top: 50%;
  inset-inline-end: 0px;
  transform: translateY(-36%);
}

.ms-main-header .menu-item-has-children .sub-menu a:before {
  top: 50%;
  inset-inline-end: 20px;
  transform: translate(0, -50%) rotate(-90deg);
}

.rtl .ms-main-header .menu-item-has-children .sub-menu a::before {
  transform: translate(0, -50%) rotate(90deg);
}

.ms-main-header .menu-item-has-children .sub-menu a {
  text-align: start;
  padding: 10px 20px !important;
}

@media (min-width: 1024px) {
  .ms-header ul.sub-menu li.menu-item:hover a {
    transform: translateX(3px);
  }

  .rtl .ms-header ul.sub-menu li.menu-item:hover a {
    transform: translateX(-3px);
  }

  .ms-header ul.sub-menu li.menu-item:hover {
    background-color: var(--ms-primary);
  }

  .ms-header .main-nav>ul>li>a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--ms-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }

  .rtl .ms-header .main-nav>ul>li>a::after {
    transform-origin: right;
  }

  .transparent-header:not(.sticky-scrolled) .ms-header .main-nav>ul>li>a::after {
    background-color: white;
  }

  .ms-header .main-nav>ul>li>a:hover::after,
  .ms-header .main-nav>ul>li>a:focus-visible::after,
  .main-navigation .main-nav ul li.current-menu-item>a::after,
  .main-navigation .main-nav ul li.current_page_item>a::after,
  .main-navigation .main-nav ul li.current-menu-ancestor>a::after {
    transform: scaleX(1);
  }
}

/*HEADER Slideout*/
.ms-burger-button {
  display: none;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.ms-burger-box {
  width: 30px;
  height: 24px;
  position: relative;
  display: inline-block;
}

.ms-burger-inner,
.ms-burger-inner::before,
.ms-burger-inner::after {
  height: 2px;
  position: absolute;
  width: 100%;
  background-color: var(--ms-primary);
  border-radius: 3px;
  transition: all 0.4s ease;
  left: 0;
  right: 0;
  display: block;
}

.ms-burger-inner {
  top: 50%;
  margin-inline-start: 5px;
}

.ms-burger-inner::before,
.ms-burger-inner::after {
  content: "";
  left: 7px;
  right: auto;
}

.transparent-header:not(.sticky-scrolled) .ms-burger-inner,
.transparent-header:not(.sticky-scrolled) .ms-burger-inner::before,
.transparent-header:not(.sticky-scrolled) .ms-burger-inner::after {
  background-color: white;
}

.ms-burger-inner::before {
  top: -10px;
}

.ms-burger-inner::after {
  bottom: -10px;
}

.ms-burger-button.open .ms-burger-inner {
  background-color: transparent;
}

.ms-burger-button.open .ms-burger-inner::before {
  transform: rotate(45deg);
  top: 0;
}

.ms-burger-button.open .ms-burger-inner::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.slideout-menu-open .ms-main-header .ms-header-section-center,
.slideout-menu-open .ms-main-header .ms-header-section-start {
  position: relative;
  z-index: 22222;
}

.slideout-menu-open .ms-burger-inner::before,
.slideout-menu-open .ms-burger-inner::after {
  background: #fff !important;
}

@media (max-width: 1024px) {
  .ms-burger-button {
    display: inline-flex;
    align-items: center;
    justify-content: end;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: color-mix(in srgb, var(--ms-primary) 95%, transparent);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.slideout-menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.slideout-menu-open .ms-header .icon {
	color: white;
}

@media (max-width: 1024px) {
  #site-navigation {
    display: none;
  }

  .ms-lang-switcher {
    display: none;
  }
}

.slideout-navigation .ms-lang-switcher {
  display: block;
}

.slideout-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  background-color: color-mix(in srgb, var(--ms-primary) 95%, transparent);
}

body.slideout-menu-open .slideout-navigation {
  transform: translateX(0);
}

.main-navigation .inside-navigation {
  align-items: flex-start;
  height: 100%;
  flex-direction: column;
  padding: 80px 20px 40px 20px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  transition: .5s;
}

.sticky-scrolled .main-navigation .inside-navigation {
  padding-top: 70px;
}

/*HEADER Slideout Menu*/
.main-nav {
  width: 100%;
}

.slideout-menu {
  flex-direction: column;
}

.slideout-menu>li {
  border-bottom: 1px solid #FFFFFF26;
  width: 100%;
}

.slideout-menu>.menu-item-has-children>a {
  position: relative;
  width: 100%;
}

.slideout-menu>.menu-item-has-children>a:after {
  content: '' !important;
  width: 1em !important;
  height: 1em !important;
  mask: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzMwIDUxMiIgYXJpYS1oaWRkZW49InRydWUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjFlbSIgaGVpZ2h0PSIxZW0iPjxwYXRoIGQ9Ik0zMDUuOTEzIDE5Ny4wODVjMCAyLjI2Ni0xLjEzMyA0LjgxNS0yLjgzMyA2LjUxNEwxNzEuMDg3IDMzNS41OTNjLTEuNyAxLjctNC4yNDkgMi44MzItNi41MTUgMi44MzJzLTQuODE1LTEuMTMzLTYuNTE1LTIuODMyTDI2LjA2NCAyMDMuNTk5Yy0xLjctMS43LTIuODMyLTQuMjQ4LTIuODMyLTYuNTE0czEuMTMyLTQuODE2IDIuODMyLTYuNTE1bDE0LjE2Mi0xNC4xNjNjMS43LTEuNjk5IDMuOTY2LTIuODMyIDYuNTE1LTIuODMyIDIuMjY2IDAgNC44MTUgMS4xMzMgNi41MTUgMi44MzJsMTExLjMxNiAxMTEuMzE3IDExMS4zMTYtMTExLjMxN2MxLjctMS42OTkgNC4yNDktMi44MzIgNi41MTUtMi44MzJzNC44MTUgMS4xMzMgNi41MTUgMi44MzJsMTQuMTYyIDE0LjE2M2MxLjcgMS43IDIuODMzIDQuMjQ5IDIuODMzIDYuNTE1eiI+PC9wYXRoPjwvc3ZnPg==') no-repeat center/contain;
  background-color: currentColor !important;
  position: absolute !important;
  top: 50%;
  inset-inline-end: 4px !important;
  bottom: auto !important;
  flex: 0 0 1em;
  transform: translateY(-50%) !important;
  left: auto !important;
}

.slideout-menu .menu-item-expanded>a:after {
  transform: scale(1, -1) translateY(50%) !important;
}

.slideout-menu>.menu-item-has-children>a:after {
  display: none;
}

.slideout-menu>li>a {
  justify-content: start;
  color: #fff !important;
}

.slideout-navigation .sub-menu {
  display: block !important;
  position: static !important;
  align-items: flex-start !important;
  max-height: 0;
  transition: .2s;
  text-align: initial !important;
  overflow: hidden !important;
  float: none;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: unset !important;
  padding-inline-start: 16px;
  height: 100%;
  width: 100% !important;
  max-width: 100% !important;
}

.slideout-navigation .sub-menu a {
  background: transparent !important;
}

.slideout-navigation .slideout-menu .menu-item-expanded .sub-menu {
  transform: translateY(-12px);
}


/*HEADER Slideout Botom*/
.slideout-navigation__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding: 20px;
  gap: 20px;
  width: 100%;
}

.slideout-navigation .ms-social-icons {
  display: flex;
  margin: auto;
}

/**HEADER Slideout Search*/
.slideout-navigation input.ms-search-input {
  background-color: #ffffff29;
  border: none !important;
  width: 100%;
  color: white;
}

.slideout-navigation .ms-search .icon {
  color: white;
}

/* 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 .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 .ms-container {
	padding-top: 20px;
	padding-bottom: 20px;
	position: relative;
	display: flex;
	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;
}

@media (max-width: 1024px) {
	.ms-footer-copyright .ms-container {
		flex-direction: column-reverse;
		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 20px 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;
}

@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;
}
/* 
.ms-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--ms-primary);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
}

.ms-back-button:hover {
  transform: translateX(-3px);
  color: var(--ms-accent);
}

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

.ms-back-button .icon {
  width: 24px;
  height: 24px;
}

.ms-banner-excerpt {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
  color: inherit;
}

.ms-banner-image-wrapper {
  width: 100%;
  margin-top: 20px;
}

.ms-banner-image-wrapper .ms-banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media only screen and (max-width: 921px) {
  .ms-banner-excerpt {
    margin-top: 10px;
    font-size: 14px;
  }

  .ms-banner-image-wrapper {
    margin-top: 15px;
  }
} */


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

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

/* .header-type-banner .ms-banner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--ms-primary);
  opacity: 0.5;
  z-index: 1;
} */

.header-type-banner .ms-banner-section .ms-container {
  position: relative;
  z-index: 2;
}

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

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

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

/*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 li 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 li a.active,
.ms-tax-filter li a:hover {
  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;
  max-width: 1000px;
  margin: auto;
}

/*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;
}

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

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

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

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

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

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

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

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

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

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

.ms-post-card .ms-post-card-excerpt {
  margin: 10px 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);
}

@media only screen and (max-width: 544px) {
  .ms-post-card a {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

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

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

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

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

  .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 {
    margin: 5px 0;
    max-height: 35px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2em;
  }

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

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

.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);
}

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

/*POSTS GRID - Cards as Links*/
/* Ссылки для ms-post-item-2 */
.ms-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .ms-post-link:hover {
  transform: translateY(-2px);
} */

.ms-post-link:focus {
  outline: 2px solid var(--ms-accent);
  outline-offset: 2px;
}

/* .ms-post-link .ms-post-item {
  height: 100%;
} */

/* Кликабельные карточки для ms-post-item-1 (попап) */
.ms-post-item-1.ms-post-quick-view {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ms-post-item-1.ms-post-quick-view:hover {
  transform: translateY(-2px);
}

.ms-post-item-1.ms-post-quick-view:focus {
  outline: 2px solid var(--ms-accent);
  outline-offset: 2px;
}

.ms-post-item-1.ms-post-quick-view:focus-visible {
  outline: 2px solid var(--ms-accent);
  outline-offset: 2px;
}


.ms-img-wrapper:empty {
  background-color: #f0f0f0;
  min-height: 150px;
}





/*QUICK VIEW POPUP*/
.ms-quick-view-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ms-quick-view-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ms-quick-view-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.ms-quick-view-container {
  position: relative;
  z-index: 1;
  max-width: 90%;
  width: 900px;
  max-height: 90vh;
  background: var(--ms-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
	border: 5px solid var(--ms-blue)
}

.ms-quick-view-popup.is-open .ms-quick-view-container {
  transform: scale(1);
}


.ms-quick-view-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
	max-width: 900px;
  overflow: hidden;
	padding: 0;
}

.ms-quick-view-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  flex-shrink: 0;
	max-height: 350px;
}

.ms-quick-view-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Quick View Popup - Кнопка закрытия */
.ms-quick-view-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}


.ms-quick-view-close:focus {
  outline: 2px solid var(--ms-accent);
  outline-offset: 2px;
}

.ms-quick-view-close .icon {
  width: 24px;
  height: 24px;
  color: white;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}


.ms-quick-view-text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ms-quick-view-title {
  margin:  20px 0 !important;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.ms-quick-view-content-text {
  font-size: 16px;
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ms-accent) rgba(0, 0, 0, 0.1);
}

.has-large-font-size {
	margin: 0;
}


.ms-quick-view-content-text img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}





/* Спиннер поверх всего попапа */
.ms-quick-view-popup.is-loading::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  border: 4px solid rgba(243, 243, 243, 0.3);
  border-top: 4px solid var(--ms-accent);
  border-radius: 50%;
  animation: ms-quick-view-spin 0.8s linear infinite;
  z-index: 10000;
  pointer-events: none;
}

@keyframes ms-quick-view-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .ms-quick-view-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .ms-quick-view-text {
    padding: 20px;
  }
  
  .ms-quick-view-title {
    font-size: 24px;
  }
  
  .ms-quick-view-content-text {
    font-size: 14px;
  }
  
  .ms-quick-view-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }
}

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

.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-post-content {
  max-width: 900px;
  margin: auto;
}

@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;
  }
}


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

main .post img {
  margin-bottom: 1.5em;
}

.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: 10px 20px;
}

li.ms-toc-item.ms-toc-level-2 {
  font-weight: 500;
  margin: 15px 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;
  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%;
  max-width: 900px;
  margin: 20px auto;
  padding: 0;
}

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

input.ms-search-input {
  width: 100%;
  background-color: #fff;
  color: grey;
  border-radius: 5px;
  border: 1px solid grey;
}

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

input.ms-search-input::placeholder {
  opacity: 1;
  font: inherit;
  color: 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;
}

.ms-icon-wrap .icon {
  color: 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;
}

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

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

.rtl .ms-search-clear {
  left: 35px;
  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: 5px;
  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;
}

.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;
}

.ms-live-search-results-inner .ms-search-card {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  gap: 20px;
  opacity: 1;
}

.ms-search-thumb {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.ms-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  display: block;
}

.ms-search-content {
  min-width: 0;
  overflow: hidden;
}

.ms-search-title,
.ms-search-excerpt,
.ms-search-meta,
.ms-read-more {
  color: var(--ms-text);
  text-align: start;
  overflow-wrap: anywhere;
}

.ms-search-excerpt {
  position: relative;
  overflow: hidden;
  max-height: calc(1.4em * 4);
  /* ПК: 3 строки */
  margin-bottom: 15px;
}

.ms-search-excerpt::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.4em;
  /* примерно одна строка */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.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 строки */
  }
}

/*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-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

/*COMPONENTS Up Button*/
.ms-up-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--ms-primary, #004952);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: scale(0.8);
}

/* RTL поддержка */
.rtl .ms-up-button {
  right: auto;
  left: 20px;
}

.ms-up-button .icon {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 2;
}

/* Показываем кнопку при скролле */
.ms-up-button.is-visible {
  opacity: 0.8;
  pointer-events: auto;
  transform: scale(1);
}

.ms-up-button.is-visible:hover,
.ms-up-button.is-visible:focus {
  opacity: 1;
  transform: scale(1.05);
  background-color: var(--ms-primary-hover, #003a42);
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.ms-up-button:active {
  transform: scale(0.95);
}

/* Мобильные устройства */
@media only screen and (max-width: 768px) {
  .ms-up-button {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }

  .rtl .ms-up-button {
    left: 16px;
  }

  .ms-up-button .icon {
    width: 22px;
    height: 22px;
  }
}

/* Очень маленькие экраны */
@media only screen and (max-width: 480px) {
  .ms-up-button {
    width: 40px;
    height: 40px;
    bottom: 12px;
    right: 12px;
  }

  .rtl .ms-up-button {
    left: 12px;
  }

  .ms-up-button .icon {
    width: 20px;
    height: 20px;
  }
}

/* Улучшенная доступность для фокуса */
.ms-up-button:focus-visible {
  outline: 2px solid var(--ms-primary, #004952);
  outline-offset: 2px;
}

/* Скрываем кнопку, когда она не видна - управляется через JavaScript */

/*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);
  }
}

/*404*/
.error404 .inside-article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 10px !important;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.error404 .inside-article::before {
  content: "404";
  font-weight: bold;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 50vw, 400px);
  color: rgba(0, 0, 0, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.error404 .inside-article .search-form {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Таблицы - горизонтальный скролл на мобильных */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 1em 0;
}

.table-wrapper table {
  min-width: 100%;
  width: auto;
}

/* Для таблиц внутри wp-block-table */
.wp-block-table .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

/* На мобильных устройствах */
@media only screen and (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .table-wrapper table {
    min-width: 600px; /* Минимальная ширина для удобного просмотра */
  }
  
  .wp-block-table .table-wrapper {
    margin: 0 -10px; /* Расширяем на всю ширину с небольшими отступами */
    padding: 0 10px;
  }
}

