/* ==========================================================
   HOME 2026 — ОБРАЩЕНИЕ ДИРЕКТОРА
   Макет Figma 1920: фон 1920x600, фото 568x645, текст 818x492.
   ========================================================== */

.home2026-director,
.home2026-director * {
    box-sizing: border-box;
}

.home2026-director {
    position: relative;
    width: 100%;
    padding: 64px 0 72px;
    background: #fff;
    color: #161c23;
    font-family: "Montserrat", Arial, sans-serif;
}

.home2026-director__container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

.home2026-director__heading {
    margin: 0 0 30px;
    color: #111820;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

/* Размеры из макета Figma 1920 px.
   Для меньшего viewport пропорции задаются через vw, без JS. */
.home2026-director__body {
    position: relative;
    display: grid;
    grid-template-columns: min(568px, 29.583333vw) min(818px, 42.604167vw);
    align-items: center;
    justify-content: center;
    column-gap: min(80px, 4.166667vw);
    height: min(645px, 33.59375vw);
    padding: 0;
    background: transparent;
    isolation: isolate;
}

/* Независимый фоновый слой — ВСЯ ширина viewport, строго 600 px в макете.
   Фото выступает над и под фоном на (645 - 600) / 2 = 22.5 px. */
.home2026-director__body::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: min(600px, 31.25vw);
    background: #f8f8f8;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home2026-director__photo-wrap {
    position: relative;
    z-index: 1;
    width: min(568px, 29.583333vw);
    height: min(645px, 33.59375vw);
    margin: 0;
}

.home2026-director__photo-wrap::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    bottom: auto;
    left: auto;
    width: 10px;
    height: min(600px, 31.25vw);
    transform: translateY(-50%);
    background: #1768c4;
}

.home2026-director__photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home2026-director__message {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(818px, 42.604167vw);
    height: min(492px, 25.625vw);
    min-width: 0;
    padding: 0;
    color: #1c232c;
    font-size: clamp(9px, min(12px, .625vw), 12px);
    font-weight: 400;
    line-height: 1.38;
}

.home2026-director__greeting {
    margin: 0 0 min(20px, 1.041667vw);
    color: #111820;
    font-size: clamp(12px, min(17px, .885417vw), 17px);
    font-weight: 700;
    line-height: 1.3;
}

.home2026-director__message p {
    margin: 0 0 min(13px, .677083vw);
}

.home2026-director__message p strong {
    font-weight: 700;
}

.home2026-director__signature {
    margin: auto 0 0 !important;
    text-align: right;
}

/* Mobile and tablet — independent layout. Desktop geometry above is unchanged. */
@media (max-width: 991px) {
    .home2026-director {
        padding: 44px 0 56px;
        overflow: hidden;
    }

    .home2026-director__heading {
        margin-bottom: 28px;
        font-size: 24px;
    }

    .home2026-director__body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 28px;
        width: 100%;
        height: auto;
        padding: 0 20px 32px;
    }

    .home2026-director__body::before {
        z-index: 0;
        top: 24px;
        left: 50%;
        width: 100vw;
        height: calc(100% - 24px);
        transform: translateX(-50%);
    }

    .home2026-director__photo-wrap {
        flex: none;
        width: min(100%, 390px);
        height: auto;
        aspect-ratio: 568 / 645;
        margin: 0 auto;
    }

    .home2026-director__photo-wrap::before {
        top: 24px;
        right: -9px;
        bottom: 0;
        left: auto;
        width: 9px;
        height: auto;
        transform: none;
    }

    .home2026-director__photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .home2026-director__message {
        display: flex;
        flex-direction: column;
        width: min(100%, 650px);
        height: auto;
        min-height: 0;
        margin: 0;
        font-size: 15px;
        line-height: 1.55;
        overflow-wrap: break-word;
    }

    .home2026-director__greeting {
        margin-bottom: 16px;
        font-size: 19px;
        line-height: 1.3;
    }

    .home2026-director__message p {
        margin-bottom: 15px;
    }

    .home2026-director__signature {
        margin: 16px 0 0 !important;
        font-size: 13px;
        line-height: 1.5;
        text-align: right;
    }
}

@media (max-width: 575px) {
    .home2026-director {
        padding: 34px 0 44px;
    }

    .home2026-director__heading {
        margin-bottom: 24px;
        font-size: 23px;
    }

    .home2026-director__body {
        gap: 25px;
        padding: 0 16px 28px;
    }

    .home2026-director__photo-wrap {
        width: min(100%, 350px);
    }

    .home2026-director__message {
        font-size: 15px;
        line-height: 1.55;
    }

    .home2026-director__greeting {
        font-size: 18px;
    }
}

@media (max-width: 390px) {
    .home2026-director__body {
        padding-left: 14px;
        padding-right: 14px;
    }
}
