/* Page: О компании */

.energo-about-page {
    padding-bottom: 0;
    background: var(--energo-bg);
}

/* Hero */
.energo-about-hero {
    position: relative;
    min-height: 500px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.energo-about-hero__media-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.energo-about-hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: 500px;
    padding: 70px 0;
}

.energo-about-hero__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 644px;
}

.energo-about-hero__title {
    margin: 0;
}

.energo-about-hero__text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-about-hero__btn {
    align-self: flex-start;
}

/* Mission */
.energo-about-mission {
    padding: 0 0 70px;
}

.energo-about-mission__media {
    display: none;
}

.energo-about-mission__card {
    padding: 60px 60px 80px;
    border-radius: 50px;
    background: var(--energo-text);
}

.energo-about-mission__head {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.energo-about-mission__title {
    margin: 0;
    color: var(--energo-bg);
}

.energo-about-mission__line {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--energo-blue);
}

.energo-about-mission__text {
    max-width: 690px;
    margin: 0 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--energo-bg);
}

/* Timeline */
.energo-about-timeline {
    padding: 0 0 70px;
}

.energo-about-timeline__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.energo-about-timeline__title {
    margin: 0;
}

.energo-about-timeline__nav {
    display: flex;
    flex-shrink: 0;
    gap: 15px;
}

.energo-about-timeline__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    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-about-timeline__nav-btn .icon {
    fill: currentColor;
}

.energo-about-timeline__nav-btn:hover:not(:disabled) {
    background: var(--energo-blue);
    color: var(--energo-white);
}

.energo-about-timeline__nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.energo-about-timeline__years {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.energo-about-timeline__year {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--energo-text);
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.energo-about-timeline__year.is-active,
.energo-about-timeline__year:hover {
    opacity: 1;
}

.energo-about-timeline__line-track {
    position: relative;
    margin-bottom: 50px;
}

.energo-about-timeline__line {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--energo-blue);
}

.energo-about-timeline__marker {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--energo-blue);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: left 0.35s ease;
    pointer-events: none;
}

.energo-about-timeline__panel {
    display: none;
}

.energo-about-timeline__panel.is-active {
    display: block;
}

.energo-about-timeline__panel-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.energo-about-timeline__badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(0, 140, 230, 0.2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--energo-blue);
}

.energo-about-timeline__year-label {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: var(--energo-text);
}

.energo-about-timeline__story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.energo-about-timeline__story-media {
    min-height: 365px;
    border-radius: var(--energo-radius-lg);
    overflow: hidden;
    background: #d9d9d9;
}

.energo-about-timeline__story-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 365px;
    object-fit: cover;
}

.energo-about-timeline__story-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.energo-about-timeline__story-text {
    margin: 0;
    max-width: 528px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-about-timeline__highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.energo-about-timeline__highlight {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.energo-about-timeline__highlight-head {
    display: flex;
    align-items: center;
    gap: 23px;
}

.energo-about-timeline__highlight-marker {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--energo-blue);
    box-shadow: 0 0 6.9px rgba(0, 140, 230, 0.8);
}

.energo-about-timeline__highlight-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--energo-text);
}

.energo-about-timeline__highlight-text {
    margin: 0;
    padding-left: 35px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-text);
}

/* Company today */
.energo-about-company {
    padding: 70px 0;
    background: var(--energo-section-alt);
}

.energo-about-company__title {
    margin: 0 0 40px;
}

.energo-about-company__layout {
    display: grid;
    grid-template-columns: minmax(0, 530px) minmax(0, 1fr);
    gap: 71px;
    align-items: start;
}

.energo-about-company__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.energo-about-company__text {
    margin: 0;
    max-width: 530px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-text);
}

.energo-about-company__btn {
    align-self: flex-start;
}

.energo-about-company__chart-wrap {
    min-height: 384px;
}

.energo-about-company__chart {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: 384px;
}

.energo-about-company__chart-label {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--energo-text);
}

.energo-about-company__chart-stage {
    position: relative;
    width: 100%;
}

.energo-about-company__chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.energo-about-company__chart-grid line {
    stroke: #d1d1d3;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.energo-about-company__chart-grid line.is-base {
    stroke-dasharray: none;
}

.energo-about-company__chart-line {
    fill: none;
    stroke: var(--energo-blue);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.energo-about-company__chart-crosshair {
    stroke: var(--energo-text);
    stroke-width: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.energo-about-company__chart-crosshair.is-visible {
    opacity: 1;
}

.energo-about-company__chart-point {
    cursor: pointer;
}

.energo-about-company__chart-point-hit {
    fill: transparent;
    cursor: pointer;
}

.energo-about-company__chart-point-marker {
    fill: var(--energo-white);
    stroke: var(--energo-blue);
    stroke-width: 1;
    transition: fill 0.2s ease;
}

.energo-about-company__chart-point.is-active .energo-about-company__chart-point-marker {
    fill: var(--energo-blue);
}

.energo-about-company__chart-axis-label {
    font-size: 14px;
    font-weight: 500;
    fill: var(--energo-muted);
    opacity: 0.5;
}

.energo-about-company__chart-tooltip {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 89px;
    padding: 10px 20px;
    border-radius: 15px;
    background: var(--energo-dark);
    color: var(--energo-bg);
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity 0.2s ease;
}

.energo-about-company__chart-tooltip[hidden] {
    display: none;
}

.energo-about-company__chart-tooltip-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.5;
}

.energo-about-company__chart-tooltip-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.energo-about-company__chart-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--energo-radius-lg);
}

/* Shared blocks spacing */
.energo-about-page .energo-usluga-reviews {
    padding-bottom: 80px;
}

@media (min-width: 1200px) {
    .energo-about-timeline__years {
        justify-content: space-between;
        overflow-x: visible;
    }
}

@media (max-width: 1199.98px) {
    .energo-about-timeline__year-label {
        font-size: 48px;
    }
}

@media (max-width: 991.98px) {
    .energo-about-hero,
    .energo-about-hero__container {
        min-height: 420px;
    }

    .energo-about-mission__card {
        padding: 40px 30px 50px;
        border-radius: var(--energo-radius-lg);
    }

    .energo-about-mission__text {
        max-width: none;
        margin-left: 0;
    }

    .energo-about-timeline__story,
    .energo-about-company__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .energo-about-company__text {
        max-width: none;
    }

    .energo-about-timeline__story-media {
        min-height: 280px;
    }

    .energo-about-timeline__story-image {
        min-height: 280px;
    }

    .energo-about-timeline__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    /* Hero */
    .energo-about-hero {
        min-height: 0;
        padding-bottom: 0;
    }

    .energo-about-hero__container {
        align-items: flex-start;
        min-height: 0;
        padding: 50px 0 0;
    }

    .energo-about-hero__content {
        gap: 30px;
        max-width: none;
    }

    .energo-about-hero__title {
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-about-hero__btn {
        align-self: stretch;
        width: 100%;
    }

    /* Mission */
    .energo-about-mission {
        padding: 70px 0 0;
    }

    .energo-about-mission__media {
        display: block;
        width: 100%;
        height: 282px;
        background-position: 75%;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .energo-about-mission:has(.energo-about-mission__media) .energo-about-mission__card {
        position: relative;
        z-index: 1;
        margin-top: -30px;
    }

    .energo-about-mission__card {
        padding: 40px;
        border-radius: 40px;
    }

    .energo-about-mission__head {
        gap: 15px;
        margin-bottom: 20px;
    }

    .energo-about-mission__title {
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-about-mission__text {
        font-size: 18px;
    }

    /* Timeline */
    .energo-about-timeline {
        padding: 70px 0;
    }

    .energo-about-timeline__head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 34px;
    }

    .energo-about-timeline__title {
        max-width: 140px;
        font-size: 28px;
        line-height: 1.25;
    }

    .energo-about-timeline__years {
        gap: 30px;
        margin-bottom: 24px;
        overflow: hidden;
    }

    .energo-about-timeline__line-track {
        margin-bottom: 44px;
    }

    .energo-about-timeline__panel-head {
        margin-bottom: 30px;
    }

    .energo-about-timeline__year-label {
        font-size: 48px;
    }

    .energo-about-timeline__story {
        gap: 30px;
    }

    .energo-about-timeline__story-media {
        min-height: 205px;
        border-radius: var(--energo-radius-lg);
    }

    .energo-about-timeline__story-image {
        min-height: 205px;
    }

    .energo-about-timeline__story-text {
        max-width: none;
    }

    /* Company today */
    .energo-about-company {
        padding: 0 0 70px;
        background: transparent;
    }

    .energo-about-company__title {
        margin-bottom: 30px;
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-about-company__layout {
        gap: 70px;
    }

    .energo-about-company__content {
        gap: 30px;
    }

    .energo-about-company__btn {
        align-self: stretch;
        width: 100%;
    }

    .energo-about-company__chart-wrap {
        min-height: 0;
    }

    .energo-about-company__chart {
        gap: 30px;
        min-height: 0;
    }

    .energo-about-company__chart-label {
        font-size: 16px;
    }

    /* Geography */
    .energo-about-page .energo-geography {
        padding: 0 0 70px;
    }

    .energo-about-page .energo-geography__header.mb-40 {
        margin-bottom: 40px !important;
    }

    .energo-about-page .energo-geography__title.mb-20 {
        margin-bottom: 10px !important;
        font-size: 24px;
        line-height: 1.25;
    }

    .energo-about-page .energo-geography__stats.mb-40 {
        margin-bottom: 20px !important;
        gap: 16px;
    }

    .energo-about-page .energo-geography__map {
        min-height: 0;
    }

    /* Advantages */
    .energo-about-page .energo-advantages--about {
        padding: 0 0 70px;
    }

    .energo-about-page .energo-advantages--about .energo-advantages__heading {
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 1.25;
    }

    /* Trust */
    .energo-about-page .energo-trust {
        padding: 50px 0 70px;
    }

    .energo-about-page .energo-trust__heading {
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 1.25;
    }

    /* Reviews */
    .energo-about-page .energo-usluga-reviews {
        padding: 0 0 70px;
    }

    .energo-about-page .energo-usluga-reviews__head {
        flex-direction: row !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 30px;
    }

    .energo-about-page .energo-usluga-reviews__title {
        font-size: 28px;
        line-height: 1.2;
    }

    .energo-about-page .energo-usluga-reviews__lead {
        margin-bottom: 30px;
    }

    .energo-about-page .energo-usluga-reviews__slide {
        width: min(350px, calc(100% - 40px));
    }
}
