/*
Theme Name: Hello Elementor Child
Theme URI: http://example.com/hello-elementor-child/
Description: Child theme for Hello Elementor.
Template: hello-elementor
*/

.elementor-element.elementor-element-63b6f54.header-color.animated-fast.e-flex.e-con-boxed.e-con.e-parent.elementor-sticky.animated.fadeInDown.elementor-sticky--active.elementor-section--handles-inside.elementor-sticky--effects {
    top: 0 !important;
}


.custom-swiper-button-next,
.custom-swiper-button-prev {
    cursor: pointer;
}
.swiper-section .elementor-swiper-button-next,
.swiper-section .elementor-swiper-button-prev {
    display: none !important;
}

button.category-item {
    border: none;
    background-color: transparent !important;
    color: rgb(194, 190, 167, .5) !important;
    font-weight: 400 !important;
}
button.category-item.active {
    color: var(--e-global-color-text) !important;
    background-color: #607247 !important;
}
#posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding-top: 60px;
    border-top: 1px solid rgb(255, 255, 255, 0.2);
}
@media (max-width: 1024px) {
    #posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    #posts-container {
        grid-template-columns: 1fr;
    }
}
.post-item img.thumbnail {
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 20px;
    width: 100%;
    height: auto;
}
.post-item>h3.card-heading {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    color: #fff;
    line-height: normal;
}
.post-item .date {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    color: rgb(255, 255, 255, .5);
}
.post-item {
    position: relative;
}
.post-item .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 20px;
    padding: 2px 5px;
    font-size: 14px;
}
.polza-bani{
    color: #fff;
    background-color: #833ebf;
}
.sovety-po-uhodu-za-kozhej{
    color: #000;
    background-color: #c2bea7;
}
.recepty-bannyh-napitkov{
    color: #fff;
    background-color: #607247;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.pagination-link {
    border: 1px solid #c2bea7;
    height: 40px;
    display: flex;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    align-content: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #c2bea7;
    cursor: pointer;
}
span.pagination-link.next,
span.pagination-link.prev {
    display: flex;
    align-items: center;
    width: unset;
    height: unset;
    border-radius: 25px;
    padding: 0 10px;
}
span.pagination-link.current {
    background-color: #607247;
    border: none;
}



/* Styles for Contact Form 7 */
div[data-wpcf7-id="1261"] form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #c2bea7;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}
div[data-wpcf7-id="1261"] .form label {
    width: 100%;
    height: 100%;
}
input.wpcf7-form-control.wpcf7-text{
    background-color: transparent;
    color: #c2bea7;
    border: 1px solid #c2bea7;
    border-radius: 8px;
    padding: 16px;
}
input.wpcf7-form-control.wpcf7-text::placeholder {
    color: #c2bea7;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

div[data-wpcf7-id="1261"] form  .sub-form_wrapper{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border: 1px solid #c2bea7;
    border-radius: 8px;
    padding: 16px;
}
.sub-form_wrapper .num_head{
    grid-column: span 2;
}
.sub-form_wrapper .time_head{
    grid-column: span 1;
}
p:has(span[data-name="select-246"]) {
    grid-column: span 2;
}

.input_wrapper .increment,
.input_wrapper .decrement {
    display: block;
    padding: 11px;
    height: fit-content;
    line-height: 1;
    background-color: #c2bea7;
    border-radius: 4px;
    cursor: pointer;
}
.input_wrapper .increment p,
.input_wrapper .decrement p{
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1rem;
    color: #000;
    margin: 0;
    aspect-ratio: 1;
    width: 1rem;
    justify-content: center;
    cursor: pointer;
}
.input_wrapper {
    display: flex;
    gap: 10px;
}
.input_wrapper, .time_wrapper {
    grid-row: span 1;
    grid-column: span 1;
    display: flex;
}
.time_wrapper p {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}
.time_wrapper p label {
    display: flex;
    align-items: center;
    margin-top: 8px;
    gap: 5px;
}
.input_wrapper input.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-number, .time_wrapper .fake-time{
    appearance: textfield;
    text-align: center;
    width: 60px;
    border: none;
    border-radius: 8px;
    color: #fff;
    background-color: #424040;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    cursor: not-allowed;
    pointer-events: none;
}
.time_wrapper .fake-time{
    padding: 8px 0;
}
.input_wrapper input.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-number::-webkit-outer-spin-button,
.input_wrapper input.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* input[type='time']{
    border: none;
    border-radius: 8px;
    color: #fff;
    background-color: #424040;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    padding: 6px 0;
    width: fit-content;
    text-align: center;
    margin-top: 5px;
}
input[type='time']::-webkit-calendar-picker-indicator {
    filter: invert(1);
}
label:has(input[type='time']) {
    display: flex;
    gap: 5px;
    align-items: center;
    width: fit-content !important;
}
input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
}
.time_wrapper p {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin: 0;
} */
.sub-form_wrapper select.wpcf7-form-control.wpcf7-select {
    background-color: transparent;
    color: #c2bea7;
    border: 1px solid #c2bea7;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}
.sub-form_wrapper select.wpcf7-form-control.wpcf7-select option {
    background-color: #424040;
    color: #c2bea7;
}
p:has(span[data-name="acceptance-162"]) br{
    display: none;
}
p:has(span[data-name="acceptance-162"]){
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 21px;
}
label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
}
input[type="checkbox"] {
    accent-color: #c2bea7;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    border: none;
    width: 100%;
    border-radius: 12px;
    color: #000;
    font-weight: 400;
    font-family: 'Manrope';
}
.quantity_container {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

#cn-close-notice {
	display: none !important;
}

@media (max-width: 768px) {
    div[data-wpcf7-id="1261"] form .sub-form_wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
    .sub-form_wrapper .time_head,
    .sub-form_wrapper .num_head{
        grid-column: span 1;
    }
    .quantity_container{
        grid-column: span 1;
        grid-row: span 2;
        flex-direction: column;
    }
    p:has(span[data-name="select-246"]) {
        grid-column: span 1;
        display: flex;
        align-items: center;
        height: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }
    .sub-form_wrapper select.wpcf7-form-control.wpcf7-select {
        padding: 7px 10px;
    }
    .time_wrapper p label {
        display: flex;
        align-items: center;
        margin-top: 5px;
        gap: 5px;
    }
    span.wpcf7-form-control-wrap[data-name="select-246"] {
        width: 100%;
    }
}


.rest-menu__tab-panel {
	display: none;
}
.rest-menu__tab-panel.active {
	display: block;
}

.rest-menu__tabs-nav {
	display: flex;
	justify-content: center;
	gap: 20px;
}

button.rest-menu__tabs-nav-item  {
	background-color: transparent !important;
	border-color: var( --e-global-color-accent );
	color: var( --e-global-color-accent ) !important;
}

button.rest-menu__tabs-nav-item.active {
	background-color: #607247 !important;
	border: none;
	color: #FFF !important;
}

.rest-menu__tabs-content {
	margin-top: 20px;
}

.rest-menu__section {
	margin-bottom: 40px;
	margin-top: 80px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.rest-menu__section-name {
	display: block;
	color: #FFF;
	font-size: 48px;
	font-family:"Viaoda Libre", Sans-serif;
	line-height: 1.3;
}

.rest-menu__section-position {
	display: flex;
	align-items: center;
	padding: 20px 0;
	color: #FFF;
	border-bottom: 1px solid #343434;
}

.rest-menu__section-position-left {
	flex: 1;
}

.rest-menu__section-position-left-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.rest-menu__section-position-country {
	margin-bottom: 5px;
	font-size: 13px;
	letter-spacing: 2px;
	color: #888;
}

.rest-menu__section-position-compound {
	font-size: 14px;
	color: #888;
}

.rest-menu__section-position-right {
	display: flex;
	flex: 1;
	justify-content: flex-end;
}

.rest-menu__section-position-grammage {
	font-style: italic;
	font-size: 14px;
	margin-right: 40px;
}

.rest-menu__section-position-price {
	font-size: 18px;
	font-weight: 500;
}

.rest-menu__section-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-auto-rows: 10px; /* базовый шаг для masonry */
	
}

.rest-menu__section-images .image-wrapper {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
}

.rest-menu__section-images .image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.rest-menu__section-images .image-wrapper img {
    display: block;
    width: 100%;
    border-radius: 0;
	height: 100%;
	object-fit: cover;
}

.rest-menu__section-label {
	position: absolute;
	left:0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
    align-items: flex-end;
    padding: 10px;
	color: #FFF;
	font-weight: 500;
	font-size: 14px;
	z-index: 100;
}



/* Задаём разную высоту через grid-row */
.rest-menu__section-images .image-wrapper:nth-child(1) {
    grid-row: span 25; /* высокое */
}

.rest-menu__section-images .image-wrapper:nth-child(2) {
    grid-row: span 18; /* среднее */
}

.rest-menu__section-images .image-wrapper:nth-child(3) {
    grid-row: span 22; /* высокое */
}

.rest-menu__section-images .image-wrapper:nth-child(4) {
    grid-row: span 24; /* низкое */
}

.rest-menu__section-images .image-wrapper:nth-child(5) {
    grid-row: span 20; /* среднее */
}

.rest-menu__section-images .image-wrapper:nth-child(6) {
    grid-row: span 17; /* среднее */
}

.rest-menu__pdf {
	display: flex;
	justify-content: center;
}

.rest-menu__pdf .button {
	border: 1px solid var( --e-global-color-accent );
	padding: 15px 30px;
	border-radius: 10px;
}


.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.75);
	z-index: 999999
}

.popup__container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.popup__content {
	position: relative;
	padding: 0 10px;
	max-width: 90%;
    width: 100%;
    max-height: 90%;
    height: 100%;
}

.popup__image {
	display: flex;
	width: 100%;
	height: 100%;
}

.popup__image img {
	width: 100%;
	object-fit: contain;
}

.popup__close {
	cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    height: 60px;
    width: 60px;
    background: #C2BEA7;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
	z-index: 9999;
}

.popup__close:hover {
	opacity: 1;
}



@media (max-width: 768px) {
    .rest-menu__section-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        grid-auto-rows: 8px;
    }
	.rest-menu__section-images .image-wrapper:nth-child(5) {
		    grid-row: span 26;
	}
}

@media (max-width: 480px) {
    .rest-menu__section-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        grid-auto-rows: 6px;
    }
}

@media (max-width: 420px) {
	.rest-menu__section-position-right {
		flex-direction: column-reverse;
		align-items: flex-end;
	}
	.rest-menu__section-position-grammage {
		margin-right: 0;
		margin-top: 5px;
	}
}