.heroes {
    background: #3a2a20;
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 3; /* перекрывает about-section (sticky, z=2) при наезде */
}

.heroes .container {
    max-width: 100%;
    padding: 0;
}

.heroes__inner {
    margin-bottom: 150px;
    position: relative;
    display: grid;
    grid-template-columns: 860px 1fr;
    align-items: stretch;
    min-height: 620px;
    gap: 100px;
}

.heroes__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.heroes__main {
    width: 100%;
    min-width: 0;
}

.heroes__slide {
    height: auto;
    min-width: 0;
    padding: 100px 0 0 100px;
    box-sizing: border-box;
}

.heroes__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 48px;
}

.heroes__right {
    position: relative;
    min-width: 0;
}

.heroes__media-main {
    position: absolute;
    width: 100%;
    height: 100%;
}

.heroes__media-main .heroes__media-slide {
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.heroes__title {
    margin: 0;
    font-family: 'Noto Serif Display', serif;
    font-weight: 500;
    font-size: 72px;
    line-height: 80px;
    color: #fff;
}

.heroes__quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: rgba(255, 255, 255, 0.82);
}

.heroes__quote .draw {
    margin-left: 12px;
    font-family: 'Denistina', cursive;
    font-size: 44px;
    line-height: 36px;
    color: #fff;
    letter-spacing: 3%;
}

.heroes__author {
    align-self: flex-end;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.heroes__media {
    position: relative;
    display: grid;
    grid-template-columns: 223px 1fr;
    gap: 16px;
    height: 100%;
    max-height: 960px;
    width: 100%;
}

.heroes__thumbs {
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.heroes__thumb {
    position: relative;
    height: auto;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.25s ease;
}

.heroes__thumb.swiper-slide-thumb-active {
    opacity: 1;
}

.heroes__thumb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.heroes__thumb-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    pointer-events: none;
}

.heroes__thumb-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
}

.heroes__stage {
    height: 100%;
    overflow: hidden;
    max-width: 100%;
}

.heroes__stage-slide {
    height: 100%;
}

.heroes__stage-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
}

.heroes__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
}

.heroes__nav-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 100px 100px 64px;
}

.heroes__nav-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.heroes__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    outline: none;
    background: rgba(96, 96, 96, 0.12);
    transition: background 0.2s ease;
}

.heroes__arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.heroes__person {
    cursor: pointer;
}

.heroes__person-card {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.heroes__person.swiper-slide-thumb-active .heroes__person-card {
    opacity: 1;
}

.heroes__person-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.heroes__person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heroes__person-name {
    font-family: 'Noto Serif Display', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #fff;
}

.heroes__person-work {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.heroes__counter {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Noto Serif Display', sans-serif;
    font-size: 32px;
    line-height: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.heroes__counter-current {
    color: #fff;
}

@media (max-width: 1700px) {
    .heroes__inner {
        grid-template-columns: 1fr 1fr;
    }

    .heroes__slide {
        padding: 20px 0 0 20px;
    }
}

@media (max-width: 1500px) {
    .heroes__content {
        padding: 40px 40px 0;
    }

    .heroes__nav-wrapper {
        padding: 40px 40px 20px;
    }

    .heroes__title {
        font-size: 60px;
        line-height: 72px;
    }
}

@media (max-width: 1200px) {
    .heroes__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .heroes__main {
        order: 1;
    }

    .heroes__right {
        order: 2;
    }

    .heroes__content {
        padding: 60px 40px;
        gap: 28px;
    }

    .heroes__title {
        font-size: 40px;
        line-height: 48px;
    }

    .heroes__media {
        grid-template-columns: 110px minmax(0, 1fr);
        min-height: 0;
    }

    .heroes__nav {
        padding: 24px 40px 40px;
    }
}

@media (max-width: 800px) {
    .heroes__content {
        padding: 40px 20px;
    }

    .heroes__title {
        font-size: 32px;
        line-height: 40px;
    }

    .heroes__quote {
        font-size: 17px;
        line-height: 28px;
    }

    .heroes__media {
        grid-template-columns: 84px minmax(0, 1fr);
        min-height: 0;
    }

    .heroes__nav {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px;
    }

    .heroes__people {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .heroes__counter {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .heroes__media {
        grid-template-columns: 1fr;
        grid-template-rows: 125px minmax(0, 600px);
        height: 100%;
    }

    .heroes__thumbs {
        max-width: 576px;
        width: 100%;
    }

    .heroes__inner {
        padding-bottom: 228px;
        margin-bottom: 50px;
    }

    .heroes__inner.solo {
        padding-bottom: 0;
    }

    .heroes__nav-wrapper {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 0 0 64px;
        max-width: 576px;
        width: 100%;
        flex-direction: column-reverse;
        gap: 24px;
    }

    .heroes__nav-side,
    .heroes__arrow {
        display: none;
    }

    .heroes__counter {
        margin-left: 0;
        padding: 0 20px;
    }

    .heroes__nav {
        padding: 0;
    }

    .heroes__counter-current,
    .heroes__counter-total,
    .heroes__counter-sep {
        font-size: 18px;
        line-height: 24px;
    }

    .heroes__person-avatar {
        height: 64px;
        width: 64px;
    }

    .heroes__person-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .heroes__person-name {
        font-size: 20px;
        line-height: 24px;
    }

    .heroes__person-work {
        font-size: 14px;
        line-height: 20px;
    }

    .heroes__content {
        gap: 24px;
    }

    .heroes__content {
        padding: 64px 20px 40px;
    }

    .heroes__title {
        font-size: 32px;
        line-height: 40px;
    }

    .heroes__quote {
        font-size: 18px;
        line-height: 24px;
        gap: 12px;
    }

    .heroes__slide {
        padding: 0;
    }

    .heroes__author {
        font-size: 14px;
        line-height: 20px;
    }

    .heroes__inner {
        gap: 0px;
    }

    .heroes__media {
        gap: 4px;
    }

    .heroes__nav-wrapper {
        padding: 0 0 80px;
    }

    .heroes__quote div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .heroes__quote .mobile-nowrap {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .heroes__quote div .draw {
        align-self: flex-end;
    }

    .heroes__stage-media {
        object-fit: cover;
    }
}

/* Фиксация секции и перелистывание фото по скроллу — включается только от 1500px
   (логика в script.js через GSAP ScrollTrigger, по образцу #doctorsSection) */
@media (min-width: 1500px) {
    #heroesSection {
        min-height: 100vh;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    #heroesSection .heroes__inner {
        margin-bottom: 0;
        width: 100%;
    }
}