/**
 * Главная страница
 */

#wpadminbar {
    display: none;
}

html {
    margin-top: 0 !important;
}

.energo-hero {
    padding: 70px 0;
}

.energo-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 39px;
}

.energo-hero__content {
    max-width: 860px;
}

@media (max-width: 767.98px) {
    .energo-hero__cta {
        width: 100%;
        max-width: 100%;
    }
}

.energo-hero__video {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-color: var(--energo-line);
    background-image: url('../img/home/hero-video.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--energo-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* Services */
.energo-services {
    background: var(--energo-section-alt);
    padding: 70px 0;
}

.energo-services__heading {
    margin: 0 0 40px;
}

.energo-services__viewport {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.energo-services__slider {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.energo-services__slider .swiper-wrapper {
    box-sizing: border-box;
}

.energo-services__slide {
    height: auto;
    box-sizing: border-box;
}

.energo-services__nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* < 992px: слайдер; >= 992px: сетка без Swiper */
@media (min-width: 992px) {
    .energo-services__viewport {
        gap: 0;
    }

    .energo-services__slider {
        overflow: visible;
    }

    .energo-services__slider .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, auto));
        gap: 12px;
        transform: none !important;
        width: 100% !important;
    }

    .energo-services__slide {
        width: auto !important;
        margin: 0 !important;
        height: auto;
    }

    .energo-services__slide:nth-child(1) {
        grid-column: 1 / span 4;
        grid-row: 1 / span 2;
    }

    .energo-services__slide:nth-child(2) {
        grid-column: 5 / span 4;
        grid-row: 1;
    }

    .energo-services__slide:nth-child(3) {
        grid-column: 9 / span 4;
        grid-row: 1;
    }

    .energo-services__slide:nth-child(4) {
        grid-column: 5 / span 4;
        grid-row: 2;
    }

    .energo-services__slide:nth-child(5) {
        grid-column: 9 / span 4;
        grid-row: 2;
    }

    .energo-services__slide .energo-services__card {
        min-height: 340px;
        height: 100%;
    }

    .energo-services__nav {
        display: none;
    }
}

.energo-services__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: var(--energo-text);
    color: var(--energo-white);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.energo-services__nav-btn .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.energo-services__nav-btn:hover:not(.swiper-button-disabled) {
    background: var(--energo-blue);
    color: var(--energo-white);
}

.energo-services__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.energo-services__title {
    font-weight: 700;
    font-size: 38px;
    line-height: 1.25;
    color: var(--energo-text);
    margin: 0 0 40px;
}

.energo-services__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 340px;
    background: var(--energo-white);
    border-radius: var(--energo-radius-lg);
    overflow: hidden;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 992px) {
    .energo-services__card:hover {
        box-shadow: 0 20px 48px rgba(18, 18, 20, 0.12);
        transform: translateY(-2px);
    }
}

.energo-services__card--featured {
    background: var(--energo-text);
    color: var(--energo-bg);
}

.energo-services__card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    padding-bottom: 10px;
    overflow-wrap: anywhere;
}

.energo-services__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.energo-services__list li {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: inherit;
}

.energo-services__card--featured .energo-services__list li {
    color: var(--energo-bg);
}

.energo-services__list-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--energo-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.15s ease-in-out;
}

.energo-services__card--featured .energo-services__list-link {
    color: var(--energo-bg);
}

.energo-services__list-link:hover {
    color: var(--energo-blue);
}

.energo-services__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--energo-text);
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.2s ease-in-out;
}

.energo-services__more .icon {
    width: 14px;
    height: 12px;
    fill: var(--energo-blue);
    transition: transform 0.2s ease-in-out;
}

.energo-services__more:hover .icon {
    transform: translateX(3px);
}

.energo-services__more:hover {
    color: var(--energo-blue);
}

.energo-services__more--light {
    color: var(--energo-bg);
}

.energo-services__more--light:hover {
    color: var(--energo-blue);
}

.energo-services__more img {
    display: block;
    flex-shrink: 0;
}

.energo-services__card-media {
    flex-shrink: 0;
    height: 130px;
    overflow: hidden;
    line-height: 0;
}

.energo-services__card-media--featured {
    height: 277px;
}

.energo-services__card-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.energo-services__card-media--crop img {
    object-position: center bottom;
}

@media (max-width: 991.98px) {
    .energo-services__card--featured {
        min-height: 0;
    }

    .energo-services__title {
        font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.375rem);
    }
}

@media (max-width: 991.98px) {
    .energo-services {
        overflow-x: clip;
    }

    .energo-services .container {
        overflow: hidden;
    }

    .energo-services__viewport {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .energo-services__slider {
        overflow: hidden;
        margin: 0;
    }

    .energo-services__slide {
        width: 100% !important;
        max-width: 100%;
    }

    .energo-services__slide .energo-services__card {
        min-height: 0;
        height: 100%;
    }

    .energo-services__slide .energo-services__card-body {
        padding: 20px;
        padding-bottom: 10px;
    }

    .energo-services__slide .energo-services__card-media,
    .energo-services__slide .energo-services__card-media--featured {
        height: 163px;
        margin-top: auto;
    }

    .energo-services__slide .energo-services__card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
    }

    .energo-services__slide .energo-services__card--featured {
        background: var(--energo-white);
        color: var(--energo-text);
    }

    .energo-services__slide .energo-services__card--featured .energo-services__list li,
    .energo-services__slide .energo-services__card--featured .energo-services__list-link {
        color: var(--energo-text);
    }

    .energo-services__slide .energo-services__card--featured .energo-services__list-link:hover {
        color: var(--energo-blue);
    }

    .energo-services__slide .energo-services__card--featured .energo-services__more--light {
        color: var(--energo-text);
    }

    .energo-services__slide .energo-services__card--featured .title-h4.text-white {
        color: var(--energo-text);
    }

    .energo-services__slide .energo-services__card-media,
    .energo-services__slide .energo-services__card-media--featured {
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .energo-services {
        padding: 48px 0;
    }

    .energo-services__heading {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 1.2;
    }
}

.energo-hero__play {
    border: none;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--energo-blue);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.energo-hero__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.energo-hero__play:focus-visible {
    outline: 2px solid var(--energo-blue);
    outline-offset: 4px;
}

/* Hero video modal */
body.hero-video-modal-open {
    overflow: hidden;
}

.hero-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hero-video-modal:not([hidden]) {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.hero-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 20, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.hero-video-modal__dialog {
    position: relative;
    width: 100%;
    max-width: min(960px, 100%);
    background: var(--energo-text);
    border-radius: var(--energo-radius-lg);
    box-shadow: 0 24px 60px rgba(18, 18, 20, 0.28);
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-video-modal.is-open .hero-video-modal__dialog {
    transform: translateY(0) scale(1);
}

.hero-video-modal__header {
    display: flex;
    justify-content: flex-end;
    padding: 12px;
}

.hero-video-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--energo-white);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-video-modal__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-video-modal__body {
    padding: 0 16px 16px;
}

.hero-video-modal__player,
.hero-video-modal__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: calc(var(--energo-radius-lg) - 4px);
    overflow: hidden;
}

.hero-video-modal__video,
.hero-video-modal__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-video-modal .plyr {
    width: 100%;
    height: 100%;
}

@media (max-width: 767.98px) {
    .energo-hero {
        padding: 40px 0 48px;
    }

    .energo-hero__inner {
        gap: 39px;
    }

    .energo-hero__title {
        margin-bottom: 20px;
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-hero__lead {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.35;
    }

    .energo-hero__cta {
        margin-bottom: 0;
    }

    .energo-hero__video {
        min-height: 200px;
        border-radius: var(--energo-radius-lg);
    }

    .hero-video-modal {
        padding: 16px 12px;
    }

    .hero-video-modal__body {
        padding: 0 8px 8px;
    }
}

.energo-intro {
    padding-bottom: 20px;
}

.energo-intro__panel {
    background: var(--energo-white);
    border-radius: var(--energo-radius-lg);
    box-shadow: 0 24px 60px rgba(18, 18, 20, 0.08), 0 0 0 1px var(--energo-line);
}

.energo-intro__title {
    font-weight: 700;
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
    line-height: 1.25;
    color: var(--energo-text);
    margin-bottom: 1rem;
}

.energo-intro__lead {
    font-size: 18px;
    line-height: 1.45;
    color: var(--energo-muted);
    margin-bottom: 1.5rem;
}

.energo-intro__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.energo-intro__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--energo-text);
    margin-bottom: 12px;
}

.energo-intro__item:last-child {
    margin-bottom: 0;
}

.energo-intro__bullet {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--energo-blue);
}

.energo-intro__figure {
    text-align: center;
}

.energo-intro__img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio */
.energo-portfolio {
    background: var(--energo-section-alt);
    padding: 70px 0;
}

.energo-portfolio__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 33px;
}

.energo-portfolio__title {
    margin: 0;
}

.energo-portfolio__nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.energo-portfolio__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: var(--energo-text);
    color: var(--energo-white);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.energo-portfolio__nav-btn .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.energo-portfolio__nav-btn:hover:not(.swiper-button-disabled) {
    background: var(--energo-blue);
    color: var(--energo-white);
}

.energo-portfolio__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.energo-portfolio__lead {
    margin: 0 0 33px;
    max-width: 1300px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--energo-text);
}

.energo-portfolio__slider {
    overflow: hidden;
    margin-bottom: 33px;
    width: 100%;
    max-width: 100%;
}

.energo-portfolio__slide {
    width: 420px;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.energo-portfolio__card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
    min-height: 480px;
    padding: 20px 20px 30px;
    background: var(--energo-white);
    border-radius: var(--energo-radius-lg);
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

a.energo-portfolio__card {
    cursor: pointer;
}

.energo-portfolio__media {
    position: relative;
    flex-shrink: 0;
    border-radius: var(--energo-radius-md);
    overflow: hidden;
}

.energo-portfolio__media--placeholder {
    background: var(--energo-line);
}

.energo-portfolio__media img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.energo-portfolio__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--energo-text);
    background: var(--energo-bg);
    border-radius: 5px;
}

.energo-portfolio__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

.energo-portfolio__location {
    display: flex;
    align-items: center;
    gap: 15px;
}

.energo-portfolio__location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: var(--energo-blue);
    background: rgba(0, 140, 230, 0.1);
}

.energo-portfolio__location-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-text);
}

.energo-portfolio__card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-portfolio__meta {
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid var(--energo-bg);
    border-bottom: 1px solid var(--energo-bg);
}

.energo-portfolio__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 0 15px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-text);
}

.energo-portfolio__meta-row dt,
.energo-portfolio__meta-row dd {
    margin: 0;
}

.energo-portfolio__meta-row dd {
    flex-shrink: 0;
    text-align: right;
}

.energo-portfolio__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.energo-portfolio__more {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--energo-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.energo-portfolio__more .icon {
    width: 14px;
    height: 12px;
    fill: var(--energo-blue);
    transition: all 0.2s ease-in-out;
    opacity: 0;
}

a.energo-portfolio__card:hover .energo-portfolio__more,
a.energo-portfolio__card:focus-visible .energo-portfolio__more {
    color: var(--energo-blue);
}

a.energo-portfolio__card:hover .energo-portfolio__more .icon,
a.energo-portfolio__card:focus-visible .energo-portfolio__more .icon {
    opacity: 1;
    transform: translateX(3px);
}

.energo-portfolio__status {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 20px;
    background: rgba(226, 226, 227, 0.5);
}

.energo-portfolio__status--progress {
    background-color: #fdf0cf;
    color: #894b00;
}

.energo-portfolio__status--done {
    background-color: #ddf6e6;
    color: #008236;
}

.energo-portfolio__all {
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--energo-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.energo-portfolio__all:hover {
    color: var(--energo-blue);
}

.energo-portfolio .energo-portfolio__nav {
    display: none;
}

.energo-portfolio.is-slider-active .energo-portfolio__nav {
    display: flex;
}

.energo-portfolio:not(.is-slider-active) .energo-portfolio__swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.energo-portfolio:not(.is-slider-active) .energo-portfolio__slide {
    width: 100%;
    max-width: none;
}

@media (min-width: 768px) {
    .energo-portfolio:not(.is-slider-active) .energo-portfolio__swiper .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .energo-portfolio:not(.is-slider-active) .energo-portfolio__swiper .swiper-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .energo-portfolio {
        padding: 48px 0;
    }

    .energo-portfolio__head {
        margin-bottom: 24px;
    }

    .energo-portfolio__lead {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .energo-portfolio__card {
        min-height: 0;
    }
}

/* Advantages */
.energo-advantages {
    padding: 70px 0;
    background: var(--energo-bg);
}

.energo-advantages__heading {
    margin-bottom: 40px;
}

.energo-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.energo-advantages__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 60px;
    min-height: 298px;
    padding: 30px;
    border-radius: var(--energo-radius-md);
    background: var(--energo-white);
    box-sizing: border-box;
}

.energo-advantages__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.energo-advantages__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-advantages__text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--energo-text);
}

.energo-advantages__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(0, 140, 230, 0.1);
}

.energo-advantages__icon-img {
    display: block;
    width: 27px;
    height: 27px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Десктоп: шахматный порядок (4 колонки, инверсия на каждом чётном ряду) */
@media (min-width: 1200px) {

    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 1),
    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 3),
    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 6),
    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 8) {
        background: rgba(0, 140, 230, 0.1);
    }

    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 1) .energo-advantages__icon,
    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 3) .energo-advantages__icon,
    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 6) .energo-advantages__icon,
    .energo-advantages__grid>.energo-advantages__card:nth-child(8n + 8) .energo-advantages__icon {
        background: rgba(255, 255, 255, 0.5);
    }
}

/* Планшет: шахматный порядок (2 колонки) */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .energo-advantages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .energo-advantages__grid>.energo-advantages__card:nth-child(4n + 1),
    .energo-advantages__grid>.energo-advantages__card:nth-child(4n + 4) {
        background: rgba(0, 140, 230, 0.1);
    }

    .energo-advantages__grid>.energo-advantages__card:nth-child(4n + 1) .energo-advantages__icon,
    .energo-advantages__grid>.energo-advantages__card:nth-child(4n + 4) .energo-advantages__icon {
        background: rgba(255, 255, 255, 0.5);
    }
}

/* Мобильные: горизонтальная лента карточек */
@media (max-width: 767.98px) {
    .energo-advantages {
        padding: 48px 0;
        overflow: hidden;
    }

    .energo-advantages__heading {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-advantages .container {
        overflow: hidden;
    }

    .energo-advantages__grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .energo-advantages__grid::-webkit-scrollbar {
        display: none;
    }

    .energo-advantages__card {
        flex: 0 0 min(310px, calc(100% - 10px));
        min-height: 298px;
        gap: 40px;
        scroll-snap-align: start;
    }

    .energo-advantages__grid>.energo-advantages__card:nth-child(odd) {
        background: rgba(0, 140, 230, 0.1);
    }

    .energo-advantages__grid>.energo-advantages__card:nth-child(odd) .energo-advantages__icon {
        background: rgba(255, 255, 255, 0.5);
    }

    .energo-advantages__grid>.energo-advantages__card:nth-child(even) {
        background: var(--energo-white);
    }
}


/* Trust logos */
.energo-trust {
    padding: 80px 0;
    background: var(--energo-section-alt);
}

.energo-trust__heading {
    margin-bottom: 40px;
}

.energo-trust__slider {
    overflow: hidden;
}

.energo-trust__slide {
    width: 200px;
    height: auto;
}

.energo-trust__card {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 200px;
    height: 100px;
    padding: 12px 16px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--energo-white);
}

.energo-trust__logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.energo-trust__mobile-rows {
    display: none;
}

@keyframes energo-trust-marquee-forward {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes energo-trust-marquee-reverse {
    from {
        transform: translate3d(-50%, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 767.98px) {
    .energo-trust {
        padding: 48px 0;
        overflow: hidden;
    }

    .energo-trust__heading {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 1.2;
        text-align: left;
    }

    .energo-trust__swiper--desktop {
        display: none;
    }

    .energo-trust__mobile-rows {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .energo-trust__marquee {
        overflow: hidden;
        width: 100%;
    }

    .energo-trust__marquee-inner {
        display: flex;
        width: max-content;
        animation: energo-trust-marquee-forward 32s linear infinite;
        will-change: transform;
    }

    .energo-trust__marquee--reverse .energo-trust__marquee-inner {
        animation-name: energo-trust-marquee-reverse;
    }

    .energo-trust__marquee:hover .energo-trust__marquee-inner,
    .energo-trust__marquee:focus-within .energo-trust__marquee-inner {
        animation-play-state: paused;
    }

    .energo-trust__marquee-group {
        display: flex;
        flex-shrink: 0;
        gap: 12px;
        padding-right: 12px;
    }

    .energo-trust__mobile-rows .energo-trust__card {
        flex-shrink: 0;
        width: 120px;
        min-width: 120px;
        height: 60px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    @media (prefers-reduced-motion: reduce) {
        .energo-trust__marquee {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .energo-trust__marquee::-webkit-scrollbar {
            display: none;
        }

        .energo-trust__marquee-inner {
            animation: none;
        }
    }
}

@media (min-width: 768px) {
    .energo-trust__mobile-rows {
        display: none;
    }
}

/* CTA banner */
.energo-cta {
    padding: 70px 0;
    background: var(--energo-bg);
}

.energo-cta__banner {
    overflow: hidden;
    border-radius: var(--energo-radius-lg);
    background: var(--energo-text);
}

.energo-cta__layout {
    display: flex;
    flex-direction: column;
}

.energo-cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    padding: 40px 24px;
    box-sizing: border-box;
}

.energo-cta__title {
    margin: 0;
    margin-bottom: 20px;
    color: var(--energo-bg);
}

.energo-cta__text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-bg);
}

.energo-cta__btn {
    align-self: flex-start;
    gap: 0;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.energo-cta__btn:hover,
.energo-cta__btn:focus-visible {
    background: var(--energo-white);
    color: var(--energo-text);
}

.energo-cta__btn-label {
    transition: color 0.3s ease;
}

.energo-cta__btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 0;
    height: 20px;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.3s ease, margin-left 0.3s ease, opacity 0.3s ease;
}

.energo-cta__btn-arrow .icon {
    width: 14px;
    height: 12px;
    fill: var(--energo-blue);
}

.energo-cta__btn:hover .energo-cta__btn-arrow,
.energo-cta__btn:focus-visible .energo-cta__btn-arrow {
    width: 20px;
    margin-left: 10px;
    opacity: 1;
}

.energo-cta__media {
    min-height: 220px;
    height: 100%;
}

.energo-cta__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .energo-cta__layout {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .energo-cta__content {
        min-height: 356px;
        padding: 60px;
    }

    .energo-cta__media {
        min-height: 356px;
    }

    .energo-cta__media img {
        min-height: 356px;
    }
}

@media (max-width: 767.98px) {
    .energo-cta {
        padding: 48px 0;
    }

    .energo-cta__content {
        min-height: 0;
        padding: 32px 24px 24px;
    }

    .energo-cta__title {
        font-size: 24px;
        line-height: 1.25;
    }

    .energo-cta__text {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .energo-cta__btn {
        width: 100%;
        max-width: 100%;
    }

    .energo-cta__media {
        min-height: 0;
    }

    .energo-cta__media img {
        min-height: 162px;
        height: 162px;
    }
}



/* Geography map */
.energo-geography {
    padding: 100px 0;
    background: var(--energo-bg);
}

.energo-geography__title {
    margin: 0;
}

.energo-geography__subtitle {
    margin: 0;
    max-width: 720px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-geography__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin: 0;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
}

.energo-geography__stat {
    padding: 20px;
    border-radius: var(--energo-radius-md);
    background: var(--energo-white);
}

.energo-geography__stat-value {
    margin: 0 0 8px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--energo-blue);
}

.energo-geography__stat-label {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-geography__map-wrap {
    width: 100%;
}

.energo-geography__map {
    position: relative;
    width: 100%;
    border-radius: var(--energo-radius-lg);
    overflow: hidden;
}

.energo-geography__map-image {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.energo-geography__markers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.energo-geography__marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
}

.energo-geography__marker-dot {
    display: block;
    width: 25px;
    height: 25px;
    border: 3px solid var(--energo-white);
    border-radius: 50%;
    background: var(--energo-blue);
    box-shadow: 0 4px 12px rgba(0, 140, 230, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.energo-geography__marker:hover .energo-geography__marker-dot,
.energo-geography__marker:focus-visible .energo-geography__marker-dot,
.energo-geography__marker.is-active .energo-geography__marker-dot {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0, 140, 230, 0.45);
}

.energo-geography__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translate(calc(-50% + var(--tooltip-shift-x, 0px)), 0);
    z-index: 5;
    width: min(240px, calc(100vw - 48px));
    max-width: calc(100vw - 32px);
    padding: 20px;
    border-radius: var(--energo-radius-md);
    background: var(--energo-white);
    box-shadow: 0 12px 40px rgba(18, 18, 20, 0.12);
    box-sizing: border-box;
}

.energo-geography__tooltip.is-below {
    bottom: auto;
    top: calc(100% + 14px);
}

.energo-geography__tooltip.is-floated {
    bottom: auto;
    z-index: 10;
    transform: none;
}

.energo-geography__map.is-tooltip-active,
.energo-geography__map-wrap.is-tooltip-active {
    overflow: visible;
}

.energo-geography__tooltip[hidden] {
    display: none !important;
}

.energo-geography__tooltip-head {
    margin-bottom: 15px;
}

.energo-geography__tooltip-region {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-text);
}

.energo-geography__tooltip-city {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    color: var(--energo-dark);
}

.energo-geography__tooltip-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--energo-muted);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--energo-line);
}

.energo-geography__tooltip-meta-label {
    font-weight: 500;
}

.energo-geography__tooltip-meta-value {
    font-weight: 600;
}

.energo-geography__tooltip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.energo-geography__tooltip-link:hover {
    color: var(--energo-blue);
}

.energo-geography__tooltip-link--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.energo-geography__tooltip-link .icon {
    fill: var(--energo-dark);
    transition: 0.2s ease;
}

.energo-geography__tooltip-link:hover .icon {
    fill: var(--energo-blue);
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .energo-geography__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .energo-geography {
        padding: 48px 0;
    }

    .energo-geography__subtitle {
        font-size: 16px;
    }

    .energo-geography__stat-value {
        font-size: 22px;
    }
}

/* Contacts */
.energo-contacts {
    padding: 70px 0;
    background: var(--energo-bg);
}

.energo-contacts__heading {
    margin: 0;
}

.energo-contacts__info-card {
    height: 100%;
    padding: 20px;
    border-radius: var(--energo-radius-md);
    background: var(--energo-white);
    box-sizing: border-box;
}

.energo-contacts__info-card--dark {
    background: var(--energo-text);
}

.energo-contacts__info-card--dark .energo-contacts__info-label {
    color: var(--energo-bg);
}

.energo-contacts__info-inner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.energo-contacts__info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    color: var(--energo-blue);
    background: rgba(0, 140, 230, 0.1);
}

.energo-contacts__info-card--dark .energo-contacts__info-icon {
    background: rgba(0, 140, 230, 0.1);
}

.energo-contacts__info-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.energo-contacts__info-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(73, 75, 80, 0.5);
}

.energo-contacts__info-value {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--energo-text);
}

.energo-contacts__info-value--link {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--energo-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.energo-contacts__info-value--link:hover {
    color: var(--energo-blue);
}

.energo-contacts__info-value--link:hover {
    opacity: 0.85;
}

.energo-contacts__addresses {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.energo-contacts__address-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: var(--energo-radius-md);
    background: var(--energo-white);
}

.energo-contacts__address-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    color: var(--energo-blue);
    background: rgba(0, 140, 230, 0.1);
}

.energo-contacts__address-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.energo-contacts__address-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(73, 75, 80, 0.5);
}

.energo-contacts__address-text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-contacts__map-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.energo-contacts__map-link:hover {
    text-decoration: underline;
}

.energo-contacts__requisites {
    font-size: 16px;
}

.energo-contacts__requisites--disabled {
    opacity: 0.55;
    pointer-events: none;
}

.energo-contacts__map {
    overflow: hidden;
    border: 2px solid #e2e2e3;
    border-radius: var(--energo-radius-lg);
}

.energo-contacts__map img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.energo-contacts__map-widget {
    position: relative;
    width: 100%;
    min-height: 480px;
}

.energo-contacts__map-widget iframe {
    display: block;
    width: 100%;
    min-height: 480px;
    border: 0;
}

.energo-contacts__map-widget>div {
    width: 100%;
}

@media (max-width: 767.98px) {
    .energo-contacts {
        padding: 48px 0;
    }

    .energo-contacts__heading {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-contacts__info-row {
        margin-bottom: 24px !important;
        --bs-gutter-y: 20px;
    }

    .energo-contacts__info-row>[class*='col-'] {
        width: 100%;
    }

    .energo-contacts__addresses {
        margin-bottom: 24px;
        gap: 20px;
    }

    .energo-contacts__map-widget {
        min-height: 320px;
    }

    .energo-contacts__map-widget iframe {
        min-height: 320px;
    }
}

/* Главная: общие отступы секций по макету */
@media (max-width: 767.98px) {

    .energo-home .energo-portfolio,
    .energo-home .energo-geography {
        padding: 48px 0;
    }

    .energo-home .energo-portfolio__title,
    .energo-home .energo-geography__title {
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-home .energo-portfolio {
        overflow-x: clip;
    }

    .energo-home .energo-portfolio .container {
        overflow: hidden;
    }

    .energo-home .energo-portfolio__slide {
        width: 100% !important;
        max-width: 100%;
    }

    .energo-home .energo-portfolio__card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .energo-home .energo-portfolio__all {
        display: none;
    }

    .energo-home .energo-geography__header {
        margin-bottom: 24px;
    }

    .energo-home .energo-geography__stats {
        margin-bottom: 24px;
        gap: 20px;
    }

    .energo-home .energo-geography__map {
        min-height: 0;
    }
}