/*
Theme Name: Funfair Child
Template:   funfair
Theme URI: https://themeforest.net/user/awaiken
Description: Funfair Child Theme
Author: Awaiken Themes
Author URI: https://awaikenthemes.com/
Version: 1.0.0
Text Domain: funfair-child
*/

.topcontacts {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    color: #00012C;
    font-size: 14px;
}
.topcontacts i {
    margin-right: 6px;
    color: #f26f30;
}
.topcontacts a {
    color: #00012C;
}
.topcontacts .headerphone, .topcontacts .headermail {
    white-space: nowrap;
}

#ekit-megamenu-header-menu {
    /*background: #1fd4efa3;*/
    background-color: #EECEA9;
    border-radius: 5px;
}

.ata-site-logo .wp-caption {
    display: flex;
    align-items: center;
}
.ata-site-logo .wp-caption a {
    width: 103px;
    display: inline-block;
    margin-right: 10px;
}
.ata-caption-width {
    white-space: nowrap;
}
.page-header {
    padding: 275px 0 35px;
}
.image-block {
    background-position: 50% 0%;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(https://burkhan-project.ru/wp-content/uploads/2026/07/back2.jpg) !important;
}
.image-block .jarallax-container {
    display: none
}

.twae-description {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.twae-description img {
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}
.twae-description p {
    margin-bottom: 0 !important;
}
.tlimg {
    flex: 0 0 20%; /* запрещаем сжатие и растяжение */
}

.tlimg img {
    width: 100%;  /* картинка растянется на 20% родителя */
    height: auto; /* сохраняем пропорции */
    display: block; /* убираем лишний отступ снизу */
}
#menu-header-menu > li.current-menu-item > a {
    color: #ff5300;
}
.post-entry blockquote p {
    color: #ffffff;
}
.title1 {
    max-width: 600px !important;
    margin: 0 auto !important;
}
.float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}
.elementskit-navbar-nav .elementskit-submenu-panel > li > a {
    color: #ffffff;
}
.ekit-template-content-footer, .ekit-template-content-footer h3 {
    color: #ffffff !important;
}
.ekit-template-content-footer ul {
    list-style: none;
}
.lang-item {
    list-style: none;
    text-align: right;
}
.lang-item img {
    width: 22px !important;
    height: auto !important;
}
.e-n-tabs-content .e-con-inner {
    padding-top: 0;
}
.e-n-tab-title-text {
    color: #fff;
}
/*button.e-n-tab-title[aria-selected=false] {
   background-color: #d9997a !important;
}*/
.elementor-widget-n-tabs .e-n-tab-title {
    background-color: #d9997a !important;
}
.elementor-widget-n-tabs .e-n-tab-title[aria-selected="true"] {
    background-color: #f26f30 !important;
}

/* Делаем все таблицы на сайте прокручиваемыми */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

.table-wrap table {
    width: 100%;
    min-width: 600px; /* Минимальная ширина, при которой появляется скролл */
}

.calendar-table, .calendar-table li {
    font-size: 15px !important;
    font-weight: normal !important;
}
.post-entry ul li {
    font-size: 16px !important;
    font-weight: normal !important;
}
/* По умолчанию скрываем мобильную версию, показываем десктопную */
.header-desktop {
    display: block;
}

.header-mobile {
    display: none;
}
.header-desktop .elementor-widget-funfair-site-logo {
    width: 300px;
}
.header-desktop .main-header h1 {
    white-space: nowrap;
}

/* При ширине до 1024px включительно */
@media (max-width: 1024px) {
    .header-desktop {
        display: none;
    }
    
    .header-mobile {
        display: block;
    }
    .hero-title {
        /*margin-top: 145px;*/
        margin-top: 272px;
    }
    .page-header {
        padding: 335px 0 35px;
    }
}
.header-mobile .topcontacts {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
/* меняем вывод флагов языков на буквы */
/* Скрываем изображения в обоих пунктах */
.lang-item-en img,
.lang-item-ru img {
    display: none;
}

/* Добавляем текстовые метки через псевдоэлементы */
.lang-item-en a::before {
    content: "EN";
}

.lang-item-ru a::before {
    content: "РУ";
}

/* Опционально: стилизуем текст, чтобы он выглядел как кнопка */
.lang-item a {
    font-weight: bold;
    text-decoration: none;
    padding: 4px 8px 1px;
    border-radius: 4px;
    background: #f0f0f0;
    transition: background 0.3s;
}

.lang-item a:hover {
    background: #ddd;
}

/* Если нужно убрать пустое пространство от изображений */
.lang-item a {
    display: inline-block;
    line-height: 1;
}
.top-contact-wrapper {
    z-index: 0;
}
.ata-site-logo-img {
    height: 120px !important;
    width: 120px !important;
}
.logos {
    position: absolute;
    top: 267px;
    z-index: 1;
    left: -270px;

}
.header-desktop .headerlogos {
    width:300px;
}
.header-desktop .headerlogos .e-con-full {
    max-width: 100%;
}

/*.headerlogos img {
    height: auto;
    width: auto;
        max-width: fit-content;

}*/
.elementor-widget-wp-widget-polylang {
    width:36px !important;
    height: 21px !important;
    flex-grow: unset;
}
.elementor-widget-wp-widget-polylang ul {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}
.elementor-element-aefefa7 .e-text-path::after {
    content: '';
    position: absolute; /* ← Будет позиционироваться относительно .e-text-path, 
                            если у него нет position, то относительно .elementor-element-aefefa7 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        z-index: 20;
    /* Ссылка будет вести на #, но нужно перенаправить */
    cursor: pointer;
}

/* Только если .e-con является непосредственным потомком .header-mobile */
.header-mobile > .e-con {
    width: 100% !important;
}
.header-mobile .ata-site-logo-img {
    height: 80px !important;
    width: 80px !important;
}
.header-mobile .logo2 {
    width: 80px !important;
    flex: none;
}
.header-desktop .logo2 {
    width: 80px !important;
    flex: none;
}
.team-item {
    width: calc(50% - 20px);
}
.team .elementskit-box-header {
    width: 250px;
    margin-right: 14px;
}
.team .elementskit-box-header img {
    border-radius: 5px;
}
.team .elementskit-info-box-title {
    font-size: 20px;
}
.elementskit-accordion .elementskit-card-body ul {
    list-style-position: inside;
}
.elementskit-accordion .elementskit-card-body a {
    text-decoration: underline;
}

.runtext-container .holder a {
    cursor: default;
    pointer-events: none;
}
.runtext-container .text-container a:before {
    content: '';
    height: 30px;
    width: 30px;
    display: inline-block;
    margin-right: 25px;
    background-image: url(https://burkhan-project.ru/wp-content/uploads/2026/06/icon-sparkle.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border-radius: unset;
    position: absolute;
    left: 7px;
    top: -9%;
}
.runtext-container .holder a {
    display: inline-block;
    font-family: "Outfit", Sans-serif;
    font-weight: 600;
    padding-left: 70px; 
    position: relative;
}