/* Custom styles for education portal */

/* Блокировка прокрутки при открытом меню */
html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden !important;
    touch-action: none !important;
}

/* =============================================
   МОБИЛЬНОЕ МЕНЮ (выезжает справа)
   ============================================= */

/* Скрываем стандартное меню Elementor на мобильных */
@media (max-width: 1024px) {
    .elementor-nav-menu--dropdown {
        display: none !important;
    }
}

/* Переключение иконки бургер/крестик */
.elementor-menu-toggle .elementor-menu-toggle__icon--close,
.elementor-menu-toggle i.elementor-menu-toggle__icon--close,
.elementor-menu-toggle i.eicon-close {
    display: none !important;
}

.elementor-menu-toggle .elementor-menu-toggle__icon--open,
.elementor-menu-toggle i.elementor-menu-toggle__icon--open,
.elementor-menu-toggle i.eicon-menu-bar,
.elementor-menu-toggle i.vamtam-theme-plus {
    display: inline-block !important;
}

.elementor-menu-toggle.is-active .elementor-menu-toggle__icon--close,
.elementor-menu-toggle.is-active i.elementor-menu-toggle__icon--close,
.elementor-menu-toggle.is-active i.eicon-close {
    display: inline-block !important;
}

.elementor-menu-toggle.is-active .elementor-menu-toggle__icon--open,
.elementor-menu-toggle.is-active i.elementor-menu-toggle__icon--open,
.elementor-menu-toggle.is-active i.eicon-menu-bar,
.elementor-menu-toggle.is-active i.vamtam-theme-plus {
    display: none !important;
}

/* Оверлей */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Панель меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.is-open {
    transform: translateX(0);
}

/* Шапка меню */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.mobile-menu__logo img {
    height: 40px;
    width: auto;
}

.mobile-menu__close {
    width: 32px;
    height: 32px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
    box-shadow: none !important;
}

.mobile-menu__close:hover {
    background: transparent !important;
    background-color: transparent !important;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.mobile-menu__close::before {
    transform: rotate(45deg);
}

.mobile-menu__close::after {
    transform: rotate(-45deg);
}

.mobile-menu__close:hover::before,
.mobile-menu__close:hover::after {
    background: #555;
}

/* Список меню */
.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu__item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu__item:last-child {
    border-bottom: none;
}

/* Ссылки основного уровня */
.mobile-menu__link {
    display: block;
    padding: 16px 24px;
    font-family: 'Kanit', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu__link:hover {
    color: #034c7d;
    background: #f8f9fa;
}

.mobile-menu__link--active {
    color: #034c7d;
    background: linear-gradient(90deg, rgba(3, 76, 125, 0.08) 0%, transparent 100%);
    border-left: 3px solid #034c7d;
}

/* Подменю */
.mobile-menu__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.mobile-menu__submenu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu__submenu li:last-child {
    border-bottom: none;
}

.mobile-menu__submenu a {
    display: block;
    padding: 12px 24px 12px 40px;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu__submenu a:hover {
    color: #034c7d;
    background: #f0f2f5;
}

/* Футер меню */
.mobile-menu__footer {
    padding: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #f8f9fa;
    box-sizing: border-box;
    overflow: hidden;
}

.mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7fa53c 0%, #6b8c32 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 165, 60, 0.3);
    box-sizing: border-box;
}

.mobile-menu__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 165, 60, 0.4);
}

.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.mobile-menu__phone {
    font-size: 18px;
    font-weight: 600;
    color: #034c7d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu__email {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu__phone:hover,
.mobile-menu__email:hover {
    color: #7fa53c;
}

/* Кнопка-бургер */
@media (max-width: 1024px) {
    .elementor-menu-toggle {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #034c7d 0%, #0a5a8a 100%) !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: none !important;
        box-shadow: 0 2px 10px rgba(3, 76, 125, 0.25);
        transition: all 0.3s ease !important;
    }

    .elementor-menu-toggle:hover {
        transform: scale(1.05);
    }

    .elementor-menu-toggle .eicon-menu-bar,
    .elementor-menu-toggle .eicon-close {
        color: #ffffff !important;
        font-size: 18px !important;
    }
}

/* Скрываем мобильное меню на десктопе */
@media (min-width: 1025px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Градиент для заголовка "Мы обучаем профессионалов" */
.elementor-element-fa9088f .elementor-heading-title {
    background: linear-gradient(135deg, #034c7d 0%, #7fa53c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Градиентный текст */
.gradient-text {
    background: linear-gradient(135deg, #034c7d 0%, #7fa53c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Плавная прокрутка при переходе по якорям */
html {
    scroll-behavior: smooth;
}

/* Header "Начать обучение" button hover */
.elementor-element-1e82954 .elementor-button:hover {
    background-color: #0a5a8a !important;
}

.elementor-element-5e63b87 .elementor-button:hover {
    background-color: #0a5a8a !important;
}

.elementor-1350 .elementor-element.elementor-element-5318970 > .elementor-widget-container {
    margin: 15px 0px 0px 0px;
}

.elementor-21 .elementor-element.elementor-element-6099a9d:not(.elementor-motion-effects-element-type-background), .elementor-21 .elementor-element.elementor-element-6099a9d > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: transparent;
    background-image: linear-gradient(180deg, #034c7d -29%, #034c7d 100%);
}

/* Fix for hero section "Award Winning" badge */
.elementor-element-6e760f1 {
    margin-top: -120px !important;
    position: relative;
    z-index: 2;
}

.elementor-element-025a17e {
    background-color: #7fa53c;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.elementor-element-025a17e:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(127, 165, 60, 0.4);
}

.elementor-element-025a17e .elementor-widget-wrap {
    text-align: center;
    padding: 30px !important;
    min-height: 255px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Start Learning Button */
.elementor-element-025a17e {
    position: relative;
    z-index: 10;
}

/* Убираем блокировку кликов с секции изображений которая перекрывает кнопку */
.elementor-element-ac44df3,
.elementor-element-ac44df3 * {
    pointer-events: none !important;
}

.start-learning-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.start-learning-btn:hover {
    transform: scale(1.03);
}

.start-learning-btn__icon {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.start-learning-btn__icon i {
    color: #7fa53c;
    font-size: 24px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.start-learning-btn:hover .start-learning-btn__icon {
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background: #ffffff;
}

.start-learning-btn:hover .start-learning-btn__icon i {
    transform: scale(1.1);
}

.start-learning-btn__text {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.start-learning-btn:hover .start-learning-btn__text {
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

/* Fix for right image mask - SVG embedded as Data URI */
.elementor-21 .elementor-element.elementor-element-a794434:not(.elementor-widget-image) .elementor-widget-container,
.elementor-21 .elementor-element.elementor-element-a794434.elementor-widget-image .elementor-widget-container img,
.elementor-21 .elementor-element.elementor-element-a794434 .header-slider-right .swiper-slide img {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='476' viewBox='0 0 733 476' width='733'%3E%3Cpath d='m815 498c-27.614237 0-50-22.385763-50-50v-95.378049c0-38.659932-31.340068-70-70-70h-98c-27.614237 0-50-22.385762-50-50v-160.621951c0-27.6142375 22.385763-50 50-50h415c27.61424 0 50 22.3857625 50 50v165.378049c0 38.659932 31.34007 70 70 70h98c27.61424 0 50 22.385762 50 50v90.621951c0 27.614237-22.38576 50-50 50z' fill-rule='evenodd' transform='translate(-547 -22)'%3E%3C/path%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='476' viewBox='0 0 733 476' width='733'%3E%3Cpath d='m815 498c-27.614237 0-50-22.385763-50-50v-95.378049c0-38.659932-31.340068-70-70-70h-98c-27.614237 0-50-22.385762-50-50v-160.621951c0-27.6142375 22.385763-50 50-50h415c27.61424 0 50 22.3857625 50 50v165.378049c0 38.659932 31.34007 70 70 70h98c27.61424 0 50 22.385762 50 50v90.621951c0 27.614237-22.38576 50-50 50z' fill-rule='evenodd' transform='translate(-547 -22)'%3E%3C/path%3E%3C/svg%3E") !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-position: top right !important;
    mask-position: top right !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
}

/* Fix for left image mask - SVG embedded as Data URI */
.elementor-21 .elementor-element.elementor-element-b419307 {
    width: 100% !important;
    text-align: left !important;
}

.elementor-21 .elementor-element.elementor-element-b419307 > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-21 .elementor-element.elementor-element-b419307:not(.elementor-widget-image) .elementor-widget-container,
.elementor-21 .elementor-element.elementor-element-b419307.elementor-widget-image .elementor-widget-container img,
.elementor-21 .elementor-element.elementor-element-b419307 .header-slider-left .swiper-slide img {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='519px' height='476px' viewBox='0 0 519 476'%3E%3Ctitle%3Egettyimages-1387685447-2048x2048%3C/title%3E%3Cdefs%3E%3Cpath d='M50,43.5 L469,43.5 C496.614237,43.5 519,65.8857625 519,93.5 L519,254.121951 C519,281.736189 496.614237,304.121951 469,304.121951 L406,304.121951 C367.340068,304.121951 336,335.462019 336,374.121951 L336,469.5 C336,497.114237 313.614237,519.5 286,519.5 L50,519.5 C22.3857625,519.5 1.75926235e-14,497.114237 0,469.5 L0,93.5 C-3.38176876e-15,65.8857625 22.3857625,43.5 50,43.5 Z' id='path-1'%3E%3C/path%3E%3C/defs%3E%3Cg id='Pages' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Home-1-2' transform='translate(-80.000000, -468.000000)'%3E%3Cg id='GettyImages-1387685447' transform='translate(80.000000, 424.500000)'%3E%3Cmask id='mask-2' fill='white'%3E%3Cuse xlink:href='%23path-1'%3E%3C/use%3E%3C/mask%3E%3Cuse id='gettyimages-1387685447-2048x2048' fill='%23B0B1FF' xlink:href='%23path-1'%3E%3C/use%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='519px' height='476px' viewBox='0 0 519 476'%3E%3Ctitle%3Egettyimages-1387685447-2048x2048%3C/title%3E%3Cdefs%3E%3Cpath d='M50,43.5 L469,43.5 C496.614237,43.5 519,65.8857625 519,93.5 L519,254.121951 C519,281.736189 496.614237,304.121951 469,304.121951 L406,304.121951 C367.340068,304.121951 336,335.462019 336,374.121951 L336,469.5 C336,497.114237 313.614237,519.5 286,519.5 L50,519.5 C22.3857625,519.5 1.75926235e-14,497.114237 0,469.5 L0,93.5 C-3.38176876e-15,65.8857625 22.3857625,43.5 50,43.5 Z' id='path-1'%3E%3C/path%3E%3C/defs%3E%3Cg id='Pages' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Home-1-2' transform='translate(-80.000000, -468.000000)'%3E%3Cg id='GettyImages-1387685447' transform='translate(80.000000, 424.500000)'%3E%3Cmask id='mask-2' fill='white'%3E%3Cuse xlink:href='%23path-1'%3E%3C/use%3E%3C/mask%3E%3Cuse id='gettyimages-1387685447-2048x2048' fill='%23B0B1FF' xlink:href='%23path-1'%3E%3C/use%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-position: top left !important;
    mask-position: top left !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
}

.elementor-element.elementor-element-c4ebcb6.elementor-widget.elementor-widget-text-editor {
    margin-bottom: 120px;
}

/* Цвет иконок vamtam-theme */
[class*="vamtam-theme-"]:before {
    color: #7fa53c !important
}

.elementor-column.elementor-col-33.elementor-inner-column.elementor-element.elementor-element-3f2fc5c {
    color: #fff;
}


.elementor-21 .elementor-element.elementor-element-3f2fc5c:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap, .elementor-21 .elementor-element.elementor-element-3f2fc5c > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: #034c7d !important;
    border: 1px solid #7fa53c;
}


.elementor-kit-7 button, .elementor-kit-7 input[type="button"], .elementor-kit-7 input[type="submit"], .elementor-kit-7 .elementor-button {
    background-color: #034c7d;
}




.elementor-1332 .elementor-element.elementor-element-2012204 {
    width: 100px;
    height: auto;
}

.elementor-1332 .elementor-element.elementor-element-2012204 img {
    width: 100px;
    height: auto;
}


.elementor-1143 .elementor-element.elementor-element-2012204 {
    width: 100px;
    height: auto;
}

.elementor-1143 .elementor-element.elementor-element-2012204 img {
    width: 100px;
    height: auto;
}

/* Выравнивание логотипов в одну линию */
.elementor-element-fe30a34 .elementor-widget-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 20px !important;
}

.elementor-element-fe30a34 .elementor-widget-heading {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.elementor-element-fe30a34 .elementor-widget-image {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

.elementor-element-fe30a34 .elementor-widget-image img {
    height: 30px !important;
    width: auto !important;
    max-width: none !important;
    vertical-align: middle !important;
}

/* Hero Image Slider Styles */
.hero-image-slider {
    position: relative;
    aspect-ratio: 1024 / 417;
    overflow: hidden;
    border-radius: 72px;
    border:1px solid var(--e-global-color-vamtam_accent_7);
}

.hero-image-slider .swiper-wrapper {
    transition-timing-function: ease-in-out !important;
}

.hero-image-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-slider .swiper-pagination {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.hero-image-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-image-slider .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.2);
}


@media (min-width: 768px) {
    .elementor-column.elementor-col-100, .elementor-column[data-col="100"] {
        width: 100%;
    }
}

/* Hero section text - white color */
.elementor-21 .elementor-element.elementor-element-49592d4 .elementor-heading-title {
    color: #ffffff !important;
}

/* Shine effect disabled - просто белый текст */
.shine-text {
    color: #ffffff;
}

.elementor-21 .elementor-element.elementor-element-c4ebcb6 .elementor-widget-container p {
    color: #ffffff !important;
}

/* =============================================
   BLIZZARD TEXT ANIMATION (сохранено)
   =============================================
.blizzard-text {
    display: inline;
    line-height: 1.6;
}

.blizzard-letter {
    display: inline-block;
    opacity: 0;
    transform: translate(var(--random-x), var(--random-y)) rotate(var(--random-rotate)) scale(0);
    filter: blur(10px);
    transition: none;
}

.blizzard-text.animate .blizzard-letter {
    animation: blizzardIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes blizzardIn {
    0% {
        opacity: 0;
        transform: translate(var(--random-x), var(--random-y)) rotate(var(--random-rotate)) scale(0);
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}
============================================= */

/* Typewriter Text Animation */
.typewriter-text {
    display: inline;
    line-height: 1.6;
}

.typewriter-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: #ffffff;
    font-weight: 100;
}

.typewriter-letter {
    display: inline;
    animation: typeIn 0.1s ease-out forwards;
}

@keyframes typeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

/* Header navigation menu styles */
.elementor-element-d6e4a7b .elementor-item {
    padding: 10px 0 !important;
    color: #034c7d !important;
}

.elementor-element-d6e4a7b .elementor-item:hover {
    color: #7fa53c !important;
}

.elementor-element-d6e4a7b nav.elementor-nav-menu--main {
    background: #fff !important;
    border-radius: 40px !important;
    padding: 0px 44px !important;
}

.elementor-element-d6e4a7b span.vamtam-nav-text-wrap {
    color: #034c7d !important;
}

/* Logo white glow */
.elementor-element-5318970 img {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)) drop-shadow(0 0 15px rgba(255,255,255,0.6)) drop-shadow(0 0 25px rgba(255,255,255,0.4));
    transition: filter 0.3s ease;
}

.elementor-element-5318970 img:hover {
    filter: drop-shadow(0 0 12px rgba(255,255,255,1)) drop-shadow(0 0 25px rgba(255,255,255,0.8)) drop-shadow(0 0 40px rgba(255,255,255,0.5));
}

/* Button "Направить приглашение" - green background */
.elementor-element-62bf38d .elementor-button {
    background-color: #7fa53c !important;
}

.elementor-element-62bf38d .elementor-button:hover {
    background-color: #6b8c32 !important;
}

.elementor-element-62bf38d [class*="vamtam-theme-"]:before {
    color: #034c7d !important;
}

/* Button "Приступить к обучению" - same style as "Направить приглашение" */
.elementor-element-56e84e0 .elementor-button {
    background-color: #7fa53c !important;
}

.elementor-element-56e84e0 .elementor-button:hover {
    background-color: #6b8c32 !important;
}

.elementor-element-56e84e0 [class*="vamtam-theme-"]:before {
    color: #034c7d !important;
}

/* Header alternating sliders */
.header-slider-left,
.header-slider-right {
    width: 100%;
    overflow: visible;
}

.header-slider-left {
    width: 100%;
    max-width: 100%;
}

.header-slider-right {
    max-width: 100%;
}

.header-slider-left .swiper-slide,
.header-slider-right .swiper-slide {
    width: 100%;
}

.header-slider-left .swiper-slide img,
.header-slider-right .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fix section position after sliders */
.elementor-element-ac44df3 {
    position: relative;
    z-index: 1;
}

/* Fix header slider section height */
.elementor-element-ac44df3 .elementor-container {
    align-items: flex-start !important;
}

.elementor-element-b419307,
.elementor-element-a794434 {
    height: auto !important;
}

.header-slider-left,
.header-slider-right {
    height: auto !important;
}

.header-slider-left .swiper-wrapper,
.header-slider-right .swiper-wrapper {
    height: auto !important;
    align-items: flex-start !important;
}

.header-slider-left .swiper-slide,
.header-slider-right .swiper-slide {
    height: auto !important;
}

.elementor-element-f9bbce0 {
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .elementor-21 .elementor-element.elementor-element-3f2fc5c {
        width: 30%;
    }
}

section.elementor-section.elementor-inner-section.elementor-element.elementor-element-f9bbce0.elementor-section-height-min-height.elementor-section-boxed.elementor-section-height-default {
    margin-bottom: 2vw;
}

/* Invite Modal Styles */
.invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.invite-modal.active {
    opacity: 1;
    visibility: visible;
}

.invite-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 76, 125, 0.85);
    backdrop-filter: blur(5px);
}

.invite-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.invite-modal.active .invite-modal__content {
    transform: translateY(0) scale(1);
}

.invite-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #e8eef3;
    border: none;
    border-radius: 50%;
    color: #034c7d;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invite-modal__close::before,
.invite-modal__close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.invite-modal__close::before {
    transform: rotate(45deg);
}

.invite-modal__close::after {
    transform: rotate(-45deg);
}

.invite-modal__close:hover {
    background: #034c7d;
    transform: scale(1.05);
}

.invite-modal__close:hover::before,
.invite-modal__close:hover::after {
    background: #ffffff;
}

.invite-modal__close:active {
    transform: scale(0.95);
}

.invite-modal__title {
    font-family: 'Kanit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #034c7d;
    margin: 0 0 8px 0;
}

.invite-modal__subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 30px 0;
}

/* Form styles */
.invite-form__group {
    margin-bottom: 20px;
}

.invite-form__group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.invite-form__group input,
.invite-form__group textarea,
.invite-form__group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #ffffff;
}

.invite-form__group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8faf5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23034c7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 50px;
    cursor: pointer;
    border: 2px solid #e8f0e0;
    font-weight: 500;
    color: #333;
}

.invite-form__group select:hover {
    border-color: #7fa53c;
    background-color: #ffffff;
}

.invite-form__group select option {
    padding: 12px 16px;
    background: #ffffff;
    color: #333;
}

.invite-form__group select option:checked {
    background: linear-gradient(135deg, #7fa53c 0%, #6b8c32 100%);
    color: #ffffff;
}

/* Format Selector - красивые карточки выбора */
.format-selector {
    display: flex;
    gap: 12px;
}

.format-selector__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.format-selector__option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px;
    background: #f8faf5;
    border: 2px solid #e8f0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.format-selector__option:hover {
    border-color: #7fa53c;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 165, 60, 0.15);
}

.format-selector__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    color: #034c7d;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.format-selector__icon svg {
    width: 24px;
    height: 24px;
}

.format-selector__text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.25s ease;
}

/* Выбранное состояние */
.format-selector__input:checked + .format-selector__option {
    background: linear-gradient(135deg, #7fa53c 0%, #6b8c32 100%);
    border-color: #7fa53c;
    box-shadow: 0 6px 20px rgba(127, 165, 60, 0.3);
}

.format-selector__input:checked + .format-selector__option .format-selector__icon {
    background: rgba(255, 255, 255, 0.95);
    color: #7fa53c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.format-selector__input:checked + .format-selector__option .format-selector__text {
    color: #ffffff;
}

/* Focus state для accessibility */
.format-selector__input:focus + .format-selector__option {
    outline: 2px solid #034c7d;
    outline-offset: 2px;
}

.invite-form__group select:focus,
.invite-form__group input:focus,
.invite-form__group textarea:focus {
    outline: none;
    border-color: #7fa53c;
    box-shadow: 0 0 0 3px rgba(127, 165, 60, 0.15);
}

.invite-form__group textarea {
    resize: vertical;
    min-height: 80px;
}

/* City suggestions dropdown */
.invite-form__city-wrapper {
    position: relative;
}

.invite-form__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.invite-form__suggestions.active {
    display: block;
}

.invite-form__suggestion {
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 15px;
}

.invite-form__suggestion:hover {
    background: #f0f7e8;
    color: #034c7d;
}

/* Submit button */
.invite-form__submit {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #7fa53c 0%, #6b8c32 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    font-family: 'Kanit', sans-serif;
}

.invite-form__submit:hover {
    background: linear-gradient(135deg, #8fb94a 0%, #7fa53c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 165, 60, 0.35);
}

.invite-form__submit:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .invite-modal__content {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .invite-modal__title {
        font-size: 22px;
    }

    .invite-form__group input,
    .invite-form__group textarea {
        padding: 12px 14px;
        font-size: 16px;
    }
}

/* Certificate Check Modal */
.cert-check-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cert-check-modal.active {
    opacity: 1;
    visibility: visible;
}

.cert-check-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 76, 125, 0.85);
    backdrop-filter: blur(5px);
}

.cert-check-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    text-align: center;
}

.cert-check-modal.active .cert-check-modal__content {
    transform: translateY(0) scale(1);
}

.cert-check-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #e8eef3;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-check-modal__close::before,
.cert-check-modal__close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.cert-check-modal__close::before {
    transform: rotate(45deg);
}

.cert-check-modal__close::after {
    transform: rotate(-45deg);
}

.cert-check-modal__close:hover {
    background: #034c7d;
}

.cert-check-modal__close:hover::before,
.cert-check-modal__close:hover::after {
    background: #ffffff;
}

.cert-check-modal__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #7fa53c 0%, #6b8c32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.cert-check-modal__title {
    font-family: 'Kanit', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #034c7d;
    margin: 0 0 8px 0;
}

.cert-check-modal__subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 25px 0;
}

.cert-check-form__group {
    margin-bottom: 20px;
    text-align: left;
}

.cert-check-form__group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.cert-check-form__group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
}

.cert-check-form__group input:focus {
    outline: none;
    border-color: #7fa53c;
    box-shadow: 0 0 0 3px rgba(127, 165, 60, 0.15);
}

.cert-check-form__submit {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #034c7d 0%, #0a5a8a 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Kanit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cert-check-form__submit:hover {
    background: linear-gradient(135deg, #0a5a8a 0%, #034c7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 76, 125, 0.35);
}

.cert-check-result {
    margin-top: 20px;
}

.cert-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
}

.cert-result--success {
    background: #f0f7e8;
    border: 2px solid #7fa53c;
    color: #4a6b23;
}

.cert-result--success svg {
    color: #7fa53c;
    flex-shrink: 0;
}

.cert-result--error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #b91c1c;
}

.cert-result--error svg {
    color: #ef4444;
    flex-shrink: 0;
}

.cert-result--loading {
    background: #f0f7ff;
    border: 2px solid #034c7d;
    color: #034c7d;
    justify-content: center;
}

.cert-result__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-result__info strong {
    font-size: 15px;
}

.cert-result__info span {
    font-size: 13px;
    opacity: 0.8;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #034c7d;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .cert-check-modal__content {
        padding: 30px 20px;
    }

    .cert-check-modal__title {
        font-size: 22px;
    }
}

/* Brands Carousel Styles */
.brands-carousel-section {
    background: #ffffff;
    padding: 40px 0;
    overflow: hidden;
}

.brands-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.brands-carousel {
    overflow: hidden;
    position: relative;
}

.brands-carousel::before,
.brands-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.brands-carousel::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.brands-carousel__track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollBrands 30s linear infinite;
    width: max-content;
}

.brands-carousel__track:hover {
    animation-play-state: paused;
}

.brands-carousel__slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.brands-carousel__slide img {
    max-height: 60px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brands-carousel__slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .brands-carousel-section {
        padding: 25px 0;
    }

    .brands-carousel__track {
        gap: 40px;
    }

    .brands-carousel__slide img {
        max-height: 45px;
        max-width: 100px;
    }

    .brands-carousel::before,
    .brands-carousel::after {
        width: 50px;
    }
}

/* Inline brands carousel (inside content sections) */
.brands-carousel--inline {
    margin-top: 20px;
    border-radius: 12px;
}

.brands-carousel--inline::before {
    background: linear-gradient(to right, #f9f9f9, transparent);
}

.brands-carousel--inline::after {
    background: linear-gradient(to left, #f9f9f9, transparent);
}

/* Graduation cap icon */
.graduation-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Certificate Section Styles (like news/events block) */
.certificate-section-styled {
    padding: 60px 0;
    min-height: auto !important;
}

.certificate-section-styled .elementor-container {
    align-items: center;
}

.certificate-subtitle {
    font-family: 'Inter Tight', sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #555 !important;
    margin-top: 5px !important;
    letter-spacing: 0.02em !important;
}

.certificate-description {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin: 20px 0 25px 0;
    max-width: 450px;
}

.certificate-description strong {
    color: #7fa53c;
    font-weight: 600;
}

.certificate-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.certificate-btn-primary {
    background: #7fa53c !important;
    color: #ffffff !important;
    border-radius: 18px !important;
    padding: 12px 28px !important;
    transition: all 0.3s ease !important;
}

.certificate-btn-primary:hover {
    background: #6b8f32 !important;
    transform: translateY(-2px);
}

.certificate-btn-secondary {
    background: transparent !important;
    color: #034c7d !important;
    border: 2px solid #034c7d !important;
    border-radius: 18px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
}

.certificate-btn-secondary:hover {
    background: #034c7d !important;
    color: #ffffff !important;
}

.certificate-btn-secondary .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.certificate-btn-secondary svg {
    stroke: #7fa53c;
}

.certificate-btn-secondary:hover svg {
    stroke: #ffffff;
}

.certificate-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.certificate-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.certificate-hr {
    max-width: 1280px;
    margin: 40px auto;
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* Events Carousel Navigation */
.events-carousel-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-right: 10px;
    margin-bottom: 3px;
}

.events-carousel-nav .elementor-swiper-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #034c7d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.events-carousel-nav .elementor-swiper-button:hover {
    background: #0a5a8a;
    transform: scale(1.1);
}

.events-carousel-nav .elementor-swiper-button i {
    font-size: 18px;
}

/* Reviews Section Title */
.reviews-section-title {
    margin-bottom: 5px !important;
}

.reviews-section-title .elementor-heading-title {
    font-family: 'Kanit', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #034c7d;
    line-height: 1.2;
}

.reviews-section-subtitle {
    margin-bottom: 20px !important;
}

.reviews-section-subtitle .elementor-heading-title {
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #555;
    line-height: 1.3;
}

/* Certificate Lightbox Modal */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.certificate-modal.active {
    display: flex;
}

.certificate-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.certificate-modal__image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.certificate-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.certificate-modal__close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .certificate-section-styled .elementor-container {
        flex-direction: column;
    }

    .certificate-section-styled .elementor-col-50 {
        width: 100%;
    }

    .certificate-actions {
        flex-direction: column;
    }

    .certificate-btn-primary,
    .certificate-btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .certificate-image {
        max-width: 300px;
        margin: 20px auto 0;
    }
}

/* =============================================
   МОБИЛЬНАЯ ВЕРСИЯ СЛАЙДЕРОВ В ШАПКЕ
   ============================================= */
@media (max-width: 767px) {
    /* Контейнер слайдеров - делаем относительным для позиционирования */
    .elementor-element-ac44df3 {
        pointer-events: none !important;
    }

    .elementor-element-ac44df3 .elementor-container {
        position: relative !important;
        display: block !important;
    }

    /* Левый слайдер - основной, на всю ширину */
    .elementor-element-ac44df3 .elementor-element-1c83e20 {
        width: 100% !important;
    }

    .elementor-element-ac44df3 .header-slider-left {
        width: 100% !important;
        border-radius: 18px;
        overflow: hidden;
    }

    .elementor-element-ac44df3 .header-slider-left img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    /* Правый слайдер - маленький в правом нижнем углу */
    .elementor-element-ac44df3 .elementor-element-093a95b {
        position: absolute !important;
        bottom: 15px !important;
        right: 15px !important;
        width: 120px !important;
        z-index: 10 !important;
    }

    .elementor-element-ac44df3 .header-slider-right {
        width: 120px !important;
        height: 80px !important;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 2px solid #fff;
    }

    .elementor-element-ac44df3 .header-slider-right .swiper-slide {
        height: 80px !important;
    }

    .elementor-element-ac44df3 .header-slider-right img {
        width: 100% !important;
        height: 80px !important;
        object-fit: cover;
    }
}