/** Start Widget */
.custom-stat-widget {
    text-align: left;
    line-height: normal;
}

.custom-stat-widget-title {
    margin-bottom: 24px;
}

.custom-stat-widget-icon {
    display: flex;
    align-items: center;
}

.custom-stat-widget-description {
    line-height: normal;
}

.custom-stat-widget > div {
    display: flex;
    align-items: center;
    gap: 0 16px;
}

.custom-stat-widget-icon svg {
    width: 34px;
    height: 34px;
}

/** Services */

.custom-services-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

/* Классы для разных кол-во колонок */
.custom-services-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.custom-services-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.custom-service-item {
    background: #F0F0F0;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.custom-service-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-content {
    padding: 20px;
    height: 100%;
    display: grid;
}

.service-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3em;
    color: #000;
}

.service-description {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #333;
    line-height: 1.5em;
}

.service-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #000;
    text-decoration: none;
    font-size: 0.95em;
    color: #000;
    transition: background 0.2s ease, color 0.2s ease;
    width: fit-content;
    height: fit-content;
}

.service-button:hover {
    background: #000;
    color: #fff;
}

/** Servies Icon */

.custom-icon-title-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
}

.custom-icon-title-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-icon-title-widget__icon {
    margin-bottom: 10px;
    transition: color 0.3s ease-in-out;
}

.custom-icon-title-widget__title {
    margin: 0;
    transition: color 0.3s ease-in-out;
}

/** Projects */

.custom-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.custom-project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-project-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-project-card__content {
    padding: 15px;
}

.custom-project-card__title {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.custom-project-card__category {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.custom-project-card__description {
    font-size: 0.95em;
    color: #333;
}

.custom-pagination {
    margin-top: 20px;
    text-align: center;
}

.custom-pagination a, .custom-pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #f0f0f0;
    color: #000;
    border-radius: 4px;
    text-decoration: none;
}

.custom-pagination .current {
    background: #0044cc;
    color: #fff;
}

/** Home Slider */

/* Контейнер слайдера */
.home-swiper-slider-widget {
    position: relative;
    width: 100%;
    height: 100%;
    /* max-height: 919px; */
    overflow: hidden;
}

/* Общие стили слайдера */
.home-swiper {
    width: 100%;
    height: 100%;
    /* max-height: 919px; */
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.home-swiper .swiper-wrapper {
    display: flex;
    height: 100%;
    padding: 0 !important;
}

.home-swiper > .container {
    position: absolute;
    bottom: 125px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0 12px;
}

/* Изображения на слайде */
.home-swiper .swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-swiper img {
    width: 100%;
    height: 100%; /* Обеспечиваем 100% высоту */
    object-fit: cover; /* Обеспечиваем растягивание без сохранения пропорций */
    object-position: center;
    max-height: 919px;
    filter: brightness(0.5);
}


/* Текст на слайде */
.home-slide-text {
    position: absolute;
    bottom: 142px;
    color: #fff;
    font-size: 72px;
    line-height: normal;
    font-weight: 400;
    max-width: 60%;
    text-align: left;
}

/* Кнопки переключения слайдов */
.home-swiper .home-swiper-button-prev.swiper-button-prev,
.home-swiper .home-swiper-button-next.swiper-button-next {
    position: relative!important;
    bottom: 0!important;
    width: 44px!important;
    height: 44px!important;
    color: #fff!important;
    border: 1px solid white!important;
    border-radius: 50%!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    z-index: 10!important;
    cursor: pointer!important;
    transition: background 0.3s ease!important;
}

.home-swiper-button-prev {
    right: 0!important;
}

.home-swiper-button-next {
    right: 0!important;
}

.home-swiper-button-prev:hover,
.home-swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Счетчик слайдов */
.home-swiper-counter {
    color: #fff;
    font-size: 44px;
    font-weight: 400;
    line-height: normal;
    z-index: 10;
    text-align: left;
    margin-right: 48px;
    font-family: 'Inter', sans-serif;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .home-slide-text {
        font-size: 18px; /* Уменьшаем текст на слайде */
        max-width: 80%;
    }

    .home-swiper-button-prev,
    .home-swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .home-swiper-counter {
        top: auto;
        bottom: 10px; /* Перемещаем счетчик вниз */
        right: 10px;
    }
}


/* Burger Menu */

.burger-menu-widget {
    position: relative;
}

.burger-menu-toggle {
    color: #000;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 25px;
    border-radius: 5px;
    background: transparent;
}

.burger-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: #fff;
    color: #333;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    padding: 20px;
}

.burger-menu-overlay.active {
    right: 0;
    box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);
}

.burger-menu-close {
    background: none;
    color: #000;
    border: none;
    font-size: 40px;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    padding: 0;
}

.menu-primary-menu-container > ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px 0;
}

.menu-primary-menu-container > ul a {
    color: #121645;
    transition: all 3s linear;
    font-size: 20px;
    line-height: normal;
}

.menu-primary-menu-container > ul a:hover {
    color: #0111A2;
}

/* Custom Background Block */

.custom-block {
    position: relative;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    min-height: 990px;
    max-height: 990px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 175px;
}

.custom-block-heading {
    color: #fff;
    font-size: 62px;
    line-height: normal;
    font-weight: 400;
    max-width: 85%;
    text-align: left;
    margin: 0 0 50px;
}

.custom-block-buttons {
    display: flex;
    gap: 15px;
}

.custom-button {
    background-color: var(--e-global-color-primary);
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    fill: #fff;
    color: #fff;
    border-radius: 48px 48px 48px 48px;
    padding: 16px 24px 16px 24px;
    transition: all .3s;
}

.custom-button:hover {
    background-color: #022F96C7;
    color: #fff;
}

.custom-button:active {
    color: #fff;
}