.acf-osvita-hero {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    margin-bottom: 40px;
    overflow: hidden;
    background: #ffffff;
    color: #15161f;
}

.acf-osvita-hero.alignwide,
.acf-osvita-hero.alignfull {
    border-radius: 0;
}

.acf-osvita-hero:not(.alignfull) {
    border-radius: 8px;
}

.acf-osvita-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -3;
    width: min(43vw, 720px);
    min-width: 500px;
    pointer-events: none;
}

.acf-osvita-hero__photo {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        var(--osvita-hero-image, linear-gradient(135deg, #dfe7ea, #f5f6f2));
    background-position: center;
    background-size: cover;
    clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 84%);
}

.acf-osvita-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #ffffff;
}

.acf-osvita-hero::before {
    position: absolute;
    top: -1px;
    right: 45%;
    bottom: -1px;
    z-index: -1;
    width: 24vw;
    max-width: 360px;
    min-width: 190px;
    content: "";
    background: #ffffff;
    transform: skewX(-18deg);
    transform-origin: top right;
}

.acf-osvita-hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    z-index: -1;
    width: 52vw;
    height: 120px;
    content: "";
    background: #ffffff;
    clip-path: polygon(0 36%, 100% 100%, 0 100%);
}

.acf-osvita-hero__inner {
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    min-height: inherit;
    margin: 0 auto;
    padding: 90px 0 96px;
}

.acf-osvita-hero__content {
    width: min(820px, 68%);
}

.acf-osvita-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 22px;
    padding: 7px 14px;
    border: 1px solid rgba(21, 22, 31, 0.2);
    border-radius: 999px;
    background: rgba(255, 182, 0, 0.08);
    color: #ffb600;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.acf-osvita-hero__title {
    max-width: 900px;
    margin: 0 0 18px;
    color: #15161f !important;
    font-size: clamp(50px, 5.6vw, 84px);
    font-weight: 800;
    line-height: 1.04;
}

.acf-osvita-hero__description {
    max-width: 780px;
    margin: 0 0 48px;
    color: #15161f;
    font-size: clamp(25px, 2.5vw, 36px);
    font-weight: 300;
    line-height: 1.32;
}

.acf-osvita-hero__actions {
    display: none;
}

.acf-osvita-hero__panel {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(180px, 0.95fr) minmax(120px, 0.7fr) auto;
    align-items: center;
    width: min(900px, 100%);
    min-height: 150px;
    padding: 28px 0 28px 48px;
    border-radius: 14px;
    background: rgba(247, 246, 245, 0.96);
    box-shadow: 0 22px 60px rgba(21, 22, 31, 0.12);
}

.acf-osvita-hero__detail {
    position: relative;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 8px 30px;
}

.acf-osvita-hero__detail:not(:first-child)::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 74px;
    content: "";
    background: #15161f;
    transform: translateY(-50%) skewX(-18deg);
}

.acf-osvita-hero__label {
    display: block;
    color: #ffb600;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.acf-osvita-hero__detail strong {
    display: block;
    color: #15161f;
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.18;
}

.acf-osvita-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    margin-right: -68px;
    padding: 16px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.acf-osvita-hero__button:hover {
    transform: translateY(-2px);
}

.acf-osvita-hero__button--primary {
    gap: 28px;
    min-width: 210px;
    background: #ffb600;
    color: #ffffff !important;
}

.acf-osvita-hero__button--primary:hover {
    background: #f2aa00;
}

.acf-osvita-hero__button--secondary {
    min-height: 48px;
    margin: 10px 20px 0 0;
    border: 1px solid rgba(134, 188, 37, 0.55);
    background: #ffffff;
    color: #15161f !important;
}

.acf-osvita-hero__button--secondary:hover {
    background: #86bc25;
    color: #ffffff !important;
}

.acf-osvita-hero__button-arrow {
    font-size: 22px;
    line-height: 1;
}

.acf-osvita-hero__schedule {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(900px, 100%);
    margin-top: 18px;
}

.acf-osvita-hero__schedule-row {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid rgba(21, 22, 31, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.acf-osvita-hero__schedule-row span {
    color: #15161f;
    font-size: 14px;
    font-weight: 700;
}

.acf-osvita-hero__schedule-row b {
    color: #15161f;
    font-size: 16px;
}

@media (max-width: 1100px) {
    .acf-osvita-hero__content {
        width: min(760px, 74%);
    }

    .acf-osvita-hero__panel {
        grid-template-columns: minmax(160px, 1fr) minmax(160px, 0.9fr) auto;
    }

    .acf-osvita-hero__detail:nth-of-type(3) {
        display: none;
    }
}

@media (max-width: 900px) {
    .acf-osvita-hero {
        min-height: auto;
    }

    .acf-osvita-hero__media {
        position: relative;
        width: 100%;
        min-width: 0;
        height: 330px;
        margin-left: auto;
        order: 2;
    }

    .acf-osvita-hero__photo {
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    }

    .acf-osvita-hero::before,
    .acf-osvita-hero::after {
        display: none;
    }

    .acf-osvita-hero__inner {
        display: block;
        width: min(100% - 32px, 720px);
        padding: 64px 0 46px;
    }

    .acf-osvita-hero__content {
        width: 100%;
    }

    .acf-osvita-hero__panel {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
        padding: 22px;
    }

    .acf-osvita-hero__detail {
        padding: 14px 0;
    }

    .acf-osvita-hero__detail:not(:first-child)::before {
        top: 0;
        width: 100%;
        height: 1px;
        transform: none;
    }

    .acf-osvita-hero__detail:nth-of-type(3) {
        display: grid;
    }

    .acf-osvita-hero__button {
        width: 100%;
        min-height: 56px;
        margin: 14px 0 0;
    }

    .acf-osvita-hero__schedule {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .acf-osvita-hero__inner {
        width: min(100% - 28px, 720px);
        padding: 48px 0 34px;
    }

    .acf-osvita-hero__media {
        height: 260px;
    }

    .acf-osvita-hero__eyebrow {
        margin-bottom: 16px;
    }

    .acf-osvita-hero__title {
        font-size: 42px;
    }

    .acf-osvita-hero__description {
        margin-bottom: 30px;
        font-size: 22px;
    }
}
