/*
 Theme Name:   ergo solutions
 Theme URI:    https://ergosolut.by
 Description:  Дрибинский районный историко-этнографический музей открыт для посетителей с 2004 года. 
 Author:       Bricks
 Author URI:   https://ergosolut.by
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.meropriatia > * {
    display: none;
}

.meropriatia > *:nth-child(-n+3) {
    display: block;
}

.wp-block-list {
    padding-left: 20px;
}
.wp-block-list > li {
    margin-bottom: 10px;
}

ol.wp-block-list {
    list-style-position: inside;
    counter-reset: item;
	
    padding-left: 0px;
}

ol.wp-block-list li {
    counter-increment: item;
    position: relative;
    padding-left: 34px;
	margin-bottom: 15px;
}

ol.wp-block-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #3E2723;
    color: #F6F1E8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    z-index: 1;
}

ol.wp-block-list li::marker {
    content: none;
}




body #clearfy-cookie {
    width: calc(100% - 40px);
    margin: 0 auto 20px;
    max-width: 1080px;
    padding: 20px 30px;
    box-shadow: 0 20px 50px -15px #72757b;
}
body .clearfy-cookie-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
body .clearfy-cookie-container span {
    text-align: left;
    font-size: 14px;
}
body .clearfy-cookie-accept {
    display: block;
    margin: 0px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 100px;
}
@media (max-width: 600px) {
	body .clearfy-cookie-container {
        flex-direction: column;
    }
    body .clearfy-cookie-accept {
        padding: 10px 19px;
        font-size: 15px;
        width: 100%;
    }
	body .clearfy-cookie-container span {
        text-align: center;
        font-size: 12px;
    }
}
.bricks-button {
	cursor: pointer;
}
.all-item:hover img {
    width: 110%!important;
    height: 110%!important;
}

.all-item:hover div:last-child {
	color: var(--bricks-color-pwaxbb);
}

.home header#brx-header {
    position: absolute;
    z-index: 999;
}
.home header#brx-header #brxe-naeoqj {
    background-color: #E8E6DE;
}
.home #brxe-pfdfcq .bricks-nav-menu > li > .brx-submenu-toggle > *, .home  #brxe-pfdfcq .bricks-nav-menu > li > a {
	color: var(--bricks-color-xvxplg) !important;
}
body.home header#brx-header .bvi-widget .bvi-svg-eye, body.home header#brx-header .bvi-shortcode .bvi-svg-eye {
    fill: #e8e6de !important
}
body.home header#brx-header #brxe-pfdfcq .bricks-nav-menu .sub-menu {
	background-color: #e8e6de!important;
}
body.home header#brx-header #brxe-pfdfcq .bricks-nav-menu .sub-menu *  {
	color: var(--bricks-color-xvxplg) !important;
}
body.home header#brx-header #brxe-pfdfcq .bricks-nav-menu a:hover  {
	color: var(--bricks-color-pwaxbb)!important;
}
body.home header#brx-header ul#menu-header-top > li:not(:last-child) {
    border-right: 1px solid var(--bricks-color-xvxplg) !important;
}
body.home header#brx-header .header-text.brxe-text-basic {
    color: #e8e6de;
}
body.home header div#brxe-xwposf svg rect {
    fill: #fffcf6;
}

body.home header div#brxe-xwposf svg path {
    stroke: #3e2723;
}
body.home header .gtranslate_wrapper a {
    color: #e8e6de !important
}


#brxe-hecwlq .bricks-nav-menu {
    gap: 20px 10%;
	flex-wrap: wrap;
    justify-content: space-between;
}
body .bvi-shortcode {
    background: transparent;
    width: max-content;
    padding: 0px;
}
body .bvi-widget, body .bvi-shortcode a, body .bvi-widget a, body .bvi-shortcode {
    color: var(--bricks-color-xvxplg);
    background-color: transparent;
	    font-size: 0px;
}
body .bvi-widget .bvi-svg-eye, body .bvi-shortcode .bvi-svg-eye {
	font-size: 21px!important;
	    margin-top: -3px;
}

body .gtranslate_wrapper a {
    color: var(--bricks-color-xvxplg)!important;
    font-size: 18px !important;
}

ul#menu-header-top {
    justify-content: space-between;
}
ul#menu-header-top > li:not(:last-child) {
    margin-right: 10px;
	padding-right: 10px;
	border-right: 1px solid #F6F1E88C;
}
ul#menu-header-top > li {
	flex-grow: 1;
}
ul#menu-header-top > li ul {
	padding: 20px 0;
}
ul#menu-header-top-2 > li ul {
	padding: 20px 0;
}
.brx-popup .brx-popup-backdrop {
    backdrop-filter: blur(2px);
}


.time-block-text b {
    display: inline-block;
    margin-bottom: 10px;
}
.time-block-text span {
    font-weight: 700;
    color: #3E2723BF;
    margin-bottom: 5px;
    display: inline-block;
}
body .ff-default .ff-el-form-control {
    background-clip: padding-box;
    background-image: none;
    border: 1px solid var(--fluentform-border-color);
    border-radius: 8px;
    color: var(--fluentform-secondary);
    font-family: inherit;
    line-height: 1;
    margin-bottom: 0;
    max-width: 100%;
    padding: 19px 20px;
    transition: border-color .15s 
ease-in-out, box-shadow .15s 
ease-in-out;
    font-size: 16px;
    background: #F6F1E8;
}
body .ff-default .ff-el-input--label label {
    display: inline-block;
    font-weight: 500;
    line-height: inherit;
    margin-bottom: 0;
    color: #F6F1E8;
    font-size: 18px;
    font-family: inherit;
}
body button.ff-btn.ff-btn-submit.ff-btn-md.ff_btn_no_style {
    border: 1px solid #FFFCF6;
    background: transparent;
    text-align: center;
    font-weight: 400;
    font-size: 20px;
    color: var(--bricks-color-oyiqnu);
    font-family: "PT-Serif";
    border-radius: 8px;
    padding: 19px 40px;
    line-height: 1;
    transition: all 0.4s;
}
body button.ff-btn.ff-btn-submit.ff-btn-md.ff_btn_no_style:hover {
	border: 1px solid var(--bricks-color-xvxplg);
    background: var(--bricks-color-xvxplg);
}
body .ff-default .ff-el-form-control:focus {
    border-color: #f6f1e8;
    color: #3e2723;
}
body .ff-el-group.ff-text-center.ff_submit_btn_wrapper {
    margin: 0px;
}

/* Общий стиль блока: прозрачный фон, белый текст */
.ff-el-form-check.ff-el-tc {
  color: #ffffff;
}

.ff-el-form-check.ff-el-tc .ff_t_c {
  color: #f6f1e8;
	font-size: 16px;
	padding-left: 10px;
}

/* Сброс стандартного чекбокса */
.ff-el-form-check.ff-el-tc .ff_tc_checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px!important;
  height: 18px!important;
  border: 1px solid #f6f1e8; 
  border-radius: 4px;
  background: transparent;     
  cursor: pointer;
  position: relative;
	padding: 0px !important;
}

/* Белая галочка в активном состоянии */
.ff-el-form-check.ff-el-tc .ff_tc_checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #f6f1e8; /* белая галочка */
  border-bottom: 2px solid #f6f1e8;
  transform: rotate(45deg);
}

/* Состояние выбранного элемента (класс ff_item_selected от плагина) */
.ff-el-form-check.ff-el-tc.ff_item_selected .ff_tc_checkbox input[type="checkbox"] {
  border-color: #f6f1e8;
  background: transparent;
}
body .fluentform .text-danger {
    color: #e0e0e0;
}


	figure img {
		border-radius: 12px;
	}
.wp-lightbox-overlay .scrim {
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, .5) !important;
}
button.close-button path {
    fill: #fff;
}


body blockquote {
    width: 100%;
    max-width: 1000px;
    border: none;
    padding: 30px 60px;
    background: #E4DED0;
    border-radius: 8px;
    position: relative;
	margin: 40px auto;
}
body blockquote * {
    font-size: clamp(1.125rem, 0.9387rem + 0.6237vw, 1.5rem);
	    font-family: 'PT-Sans';
}
blockquote:before {
    position: absolute;
    content: url(/wp-content/uploads/2025/12/citata.svg);
    top: -10px;
    left: -20px;
}
blockquote:after {
    position: absolute;
    content: url(/wp-content/uploads/2025/12/citata.svg);
    bottom: -10px;
    right: -20px;
	transform: rotate(180deg);
}
div#brxe-guhejw > div {
    background: #E4DED0;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 12px;
}
div#brxe-guhejw > div.brx-open .brxe-kjcuhx svg {
	transform: rotate(180deg);
}
.key-content img {
    max-height: 300px;
    width: auto;
    margin: 0 15px 15px 0;
    border-radius: 12px;
}





.block-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.block-tooltip[data-tooltip]:not([data-tooltip=""]):hover::after,
.block-tooltip[data-tooltip]:not([data-tooltip=""]):hover::before {
    opacity: 1;
    visibility: visible;
}

.block-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    max-width: 130px;
    text-align: center;
}

.block-tooltip::before {
    content: '';
    position: absolute;
	top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}



table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    background: transparent;
    padding: 15px 20px;
	text-align: left;
	font-weight: 400;
	font-size: clamp(1.125rem, 1.0008rem + 0.4158vw, 1.375rem);
}

table tbody td {
    padding: 15px 20px;
}

table tbody tr:nth-child(even) {
    background: #E4DDCF;
}

table tbody tr:nth-child(odd) {
    background: #EEE8DD;
}

table tbody tr:hover {
    background: #D0C9B5 !important;
    transition: background 0.2s ease;
}



















@media (max-width: 600px) {
	div#brxe-guhejw > div {
		margin-bottom: 20px;
		padding: 20px;
		border-radius: 12px;
	}
	
	body blockquote {
    width: 100%;
    max-width: 1000px;
    border: none;
		padding: 30px;
	}
	
	body .ff-default .ff-el-form-control {
    	padding: 14px 15px;
	}
	body button.ff-btn.ff-btn-submit.ff-btn-md.ff_btn_no_style {
    	padding: 17px 20px;
    	width: 100%;
		font-size: 18px;
	}
	body .ff-default .ff-el-input--label label {
		font-size: 16px;
	}
	body .ff-el-form-check.ff-el-tc .ff_t_c {
		font-size: 14px;
	}
	body .fluentform .ff-el-form-check-label .ff-el-form-check-input {
		top: 1px;
	}
	.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
        grid-column: 1;
        grid-row: 2;
        padding: 0px;
        margin-top: 30px;
    }
}


