/**
 * Main styles
 */
:root :where(.wp-element-button:hover, .wp-block-button__link:hover),
:root :where(.wp-element-button:focus, .wp-block-button__link:focus) {
    background-color: #FF5B3A;
    border-color: #FF5B3A;
    outline-color: transparent;
    outline-offset: unset;
}

:root :where(.wp-element-button:active, .wp-block-button__link:active) {
    background-color: #FF5B3A;
}

:root :where(.wp-block-button.is-style-outline .wp-block-button__link:hover) {
    background-color: #FFE7E2;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
    color: #e03323;
    text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:focus {
    outline-color: transparent;
    outline-offset: unset;
}

/* Site Header */
.wp-block-template-part.header-sticky {
    position: sticky;
    top: 0;
    z-index: 101;
}
@media (min-width: 600px) {
    .admin-bar .wp-block-template-part.header-sticky {
        top: 32px;
    }
}

.wp-block-heading.is-style-divider {
    display: flex;
    align-items: center;
	gap: 5px;
}

.wp-block-heading.is-style-divider:before {
    content: '';
    height: 1px;
    width: 88px;
    background-color: currentColor;
    color: inherit;
    display: inline-flex;
}
.wp-block-heading.is-style-divider:after {
    content: '';
    height: 1px;
    width: 88px;
    background-color: currentColor;
    color: inherit;
    display: inline-flex;
}

.wp-block-heading.is-style-divider.has-text-align-center {
    justify-content: center;
}

/* Buttons */
:root :where(.wp-element-button, .wp-block-button__link) {
    padding-top: 10px;
	padding-right: 20px;
	padding-bottom: 10px;
	padding-left: 20px;
}

.wp-block-buttons .wp-block-button.has-arrow .wp-block-button__link {
  display:inline-flex;
  align-items:center;
  gap:.5em;
}

.wp-block-buttons .wp-block-button.has-arrow .wp-block-button__link:after{
  content:"";
  width:18px;
  height:18px;
  margin-right: -4px;
  margin-bottom: -2px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 19'%3E%3Cpath d='M14.25 8.55591C14.5607 8.55591 14.8125 8.80775 14.8125 9.11841C14.8125 9.42907 14.5607 9.68091 14.25 9.68091H3.75C3.43934 9.68091 3.1875 9.42907 3.1875 9.11841C3.1875 8.80775 3.43934 8.55591 3.75 8.55591H14.25Z' fill='black'/%3E%3Cpath d='M8.60225 3.4707C8.82192 3.25103 9.17799 3.25103 9.39766 3.4707L14.6477 8.7207C14.8673 8.94037 14.8673 9.29644 14.6477 9.51611L9.39766 14.7661C9.17799 14.9858 8.82192 14.9858 8.60225 14.7661C8.38258 14.5464 8.38258 14.1904 8.60225 13.9707L13.4545 9.11841L8.60225 4.26611C8.38258 4.04644 8.38258 3.69037 8.60225 3.4707Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 19'%3E%3Cpath d='M14.25 8.55591C14.5607 8.55591 14.8125 8.80775 14.8125 9.11841C14.8125 9.42907 14.5607 9.68091 14.25 9.68091H3.75C3.43934 9.68091 3.1875 9.42907 3.1875 9.11841C3.1875 8.80775 3.43934 8.55591 3.75 8.55591H14.25Z' fill='black'/%3E%3Cpath d='M8.60225 3.4707C8.82192 3.25103 9.17799 3.25103 9.39766 3.4707L14.6477 8.7207C14.8673 8.94037 14.8673 9.29644 14.6477 9.51611L9.39766 14.7661C9.17799 14.9858 8.82192 14.9858 8.60225 14.7661C8.38258 14.5464 8.38258 14.1904 8.60225 13.9707L13.4545 9.11841L8.60225 4.26611C8.38258 4.04644 8.38258 3.69037 8.60225 3.4707Z' fill='black'/%3E%3C/svg%3E");
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: contain;
}

.scroll-back-to-top.show {
	opacity: 1;
	transform: translateY(0);
}
#scroll-back-up-arrow {
	cursor: pointer !important;
}

.scroll-back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background-color: grey;
	color: #000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	z-index: 4;
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .3s ease, transform .3s ease;
}
.scroll-back-to-top > svg {
    fill: #fff;
    width: 24px;
	height: 24px;
}

.scroll-back-to-top:hover {
    background-color: grey;
}

.wp-block-template-part-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px #0000001a;
    z-index: 101;
}

.admin-bar .wp-block-template-part-header {
    top: 32px;
}

@media (min-width: 600px) {
    .wp-block-template-part-header > .wp-block-group > .wp-block-group > .wp-block-group:last-child {
        flex: auto;
    }
    .wp-block-template-part-header .wp-block-navigation .wp-block-buttons {
        margin-left: auto;
    }
}

/* Columns */
.wp-block-columns.is-style-dividers {
    gap: 0;
}

.wp-block-columns.is-style-dividers > .wp-block-column > .wp-block-group {
    padding-left: 5px;
    padding-right: 5px;
}

@media (min-width: 782px){
    .wp-block-columns.is-style-dividers > .wp-block-column:not(:last-child) {
        border-right: 1px solid #D0D5DD;
    }
    .wp-block-columns.wp-block-columns-reverse {
        flex-direction: row-reverse;
    }
}
@media (max-width: 781px){
    .wp-block-columns.is-style-dividers {
        flex-wrap: wrap;
    }
    .wp-block-columns.is-style-dividers > .wp-block-column {
        flex: 0 0 50%;
        flex-basis: 50% !important;
    }
    .wp-block-columns.is-style-dividers > .wp-block-column > .wp-block-group {
        padding: 10px 5px;
    }
    .wp-block-columns.is-style-dividers > .wp-block-column:nth-child(2) > .wp-block-group,
    .wp-block-columns.is-style-dividers > .wp-block-column:nth-child(4) > .wp-block-group {
        border-left: 1px solid #D0D5DD; 
    }
    .wp-block-columns.is-style-dividers > .wp-block-column:nth-child(3) > .wp-block-group,
    .wp-block-columns.is-style-dividers > .wp-block-column:nth-child(4) > .wp-block-group {
        border-top: 1px solid #D0D5DD; 
    }
}

.wp-block-media-text>.wp-block-media-text__content {
    padding-left: 0;
}

/* Forms */
.baskerville-form.frm_forms {
    border-radius: 24px;
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    padding: 32px;
}
.baskerville-form.frm_forms.with_frm_style input[type=text],
.baskerville-form.frm_forms.with_frm_style input[type=email],
.baskerville-form.frm_forms.with_frm_style input[type=number],
.baskerville-form.frm_forms.with_frm_style select,
.baskerville-form.frm_forms.with_frm_style textarea {
    padding: 12px 16px;
}
.baskerville-form .frm_submit {
    display: flex;
    justify-content: center;
}
.baskerville-form.with_frm_style .frm_submit .frm_button_submit {
    border: 0;
    display: flex;
    padding: 12px 20px;
    border-radius: 50rem;
    background: #E03323;
    /*box-shadow: 0 16px 16px -8px rgba(243, 54, 12, 0.16), 0 4px 4px -4px rgba(225, 66, 22, 0.12);*/
    color: #FFF;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}
.baskerville-form.with_frm_style .frm_submit .frm_button_submit:hover {
    background-color: #FF5B3A;
	border-color: #FF5B3A;
}
.baskerville-form.with_frm_style .frm_form_fields > fieldset:last-child {
    padding-bottom: 0;
}
.baskerville-form.with_frm_style .frm_form_field .frm_error {
    color: #E03323;
}

@media (max-width: 781px) {
    .baskerville-form.frm_forms {
        padding: 24px;
    }
}


.banner-container {
    display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	height: 100px;
	-webkit-user-select: none;
	user-select: none;
}
.banner-feature-lister {
	background-color: #0a0a0a;
	width: 60%;
	min-width: 200px;
	height: 30%;
	border-radius: 10px;
	box-shadow: 0 2px 6px #656565;
	border: 1px solid white;
	display: flex;
	align-items: center;
	padding: 10px;
	font-size: 18px;
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
	position: relative;
	z-index: 2;
}

@media(max-width: 575px) {
    .banner-feature-lister {
        font-size: 14px;
    }
}

.banner-cursor {
	background-color: #fff;
	height: 1em;
	width: 8px;
	margin-left: 1.6px;
	margin-top: 0;
	border-radius: 1px
}

.cursor-blinked {
	background-color: transparent
}


.banner-cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.1em;
  vertical-align: -0.15em;
  background: currentColor;
  opacity: 1;
  animation: blink 1s steps(1, end) infinite;
  margin-left: 2px;
}

@keyframes blink { 0%,50% {opacity:1} 51%,100% {opacity:0} }

/* Custom styles for sections */
@media (max-width: 781px) {
    #solutions > .wp-block-columns > .wp-block-column {
        padding-left: 0;
        padding-right: 0;
    }
    #contact {
        padding-left: 16px;
        padding-right: 16px;
    }
    #contact .baskerville-form.frm_forms {
        padding: 24px;
    }
    .wp-block-navigation__container {
        width: 100% !important;
        gap: 20px !important;
        margin-top: 20px;
    }
    .wp-block-navigation-item {
        width: 100% !important;
    }
    .wp-block-navigation-item > a {
        display: block;
        width: 100%;
        padding: 12px 5px;
    }
    .wp-block-site-logo {
        z-index: 100001;
    }
    .wp-block-navigation__responsive-container.has-modal-open.is-menu-open {
        padding-left:  25px;
        padding-right: 25px;
    }
}


/* Navigation Block */
body .wp-block-navigation__responsive-container-open:not(.always-shown){
  display:block !important;
}
body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){
  display:none !important;
}

@media (min-width:800px){
  body .wp-block-navigation__responsive-container-open:not(.always-shown){
    display:none !important;
  }
  body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){
    display: flex !important;
  }
  body .wp-block-navigation__responsive-container{
    position:static;
    transform:none;
    opacity:1;
  }
}

.wp-block-navigation__responsive-container-open svg{
  display: none !important;
}

.wp-block-navigation__responsive-container-open:before{
  content:"";
  display:inline-flex;
  width:24px;
  height:24px;
  background: currentColor; /* цвет иконки берёт из color кнопки */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='6' width='16' height='2'/%3E%3Crect x='4' y='11' width='16' height='2'/%3E%3Crect x='4' y='16' width='16' height='2'/%3E%3C/svg%3E");
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='6' width='16' height='2'/%3E%3Crect x='4' y='11' width='16' height='2'/%3E%3Crect x='4' y='16' width='16' height='2'/%3E%3C/svg%3E");
          mask-repeat:no-repeat;
          mask-position:center;
          mask-size:contain;
}

/** Baskerville Chart */
.labs-stats-numbers {
  display: flex;
  text-align: center;
}

.labs-stats-numbers > div {
    flex: 1;
    margin-bottom: 1rem;
    padding-left: 5px;
    padding-rigth: 5px;
}

.labs-stats-numbers > div > p {
    font-size: 12px;
    line-height: 1.1;
}

.labs-stats-numbers .labs-stat-number {
  font-size: 50px;
  font-weight: 200;
  margin: 0 0 1rem 0;
  color: var(--wp--preset--color--custom-custom-1);
}

.frontpage-baskerville-graph {
  margin-top: 0;    
}
.frontpage-baskerville-chart {
  margin-top: 0;
  text-align: left;
    max-height: 200px;
}

@media (max-width: 991px) {
  .labs-stats-numbers .labs-stat-number {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
    .labs-stats-numbers {
        flex-wrap: wrap;
    }
    .labs-stats-numbers > div {
        flex: auto;
        width: 100%;
    }
    .labs-stats-numbers .labs-stat-number {
        margin-bottom: 0.5rem;
    }
}
