/* =========================================================
   ЛьвДУВС — Hero 10/10
   Версія концепції: 2026-11
   Версія шаблону: 0.7.164
   ========================================================= */

/*
 * Hero реалізований як окремий модуль Joomla.
 *
 * ВАЖЛИВО:
 * цей файл НЕ стилізує глобальну шапку.
 * Геометрією header керує тільки header.css.
 */


/* =========================================================
   1. Home-only
   ========================================================= */

.is-home-page .lvduvs-breadcrumbs {
    display: none;
}


/* =========================================================
   2. Hero shell
   ========================================================= */

.lvduvs-hero {
    position: relative;

    z-index: 1;

    overflow: hidden;

    background:
        #04192b;

    color:
        var(--lvduvs-paper);

    isolation: isolate;
}


.lvduvs-hero > div,
.lvduvs-hero .mod-custom {
    min-height: inherit;
}


.lvduvs-hero-scene {
    position: relative;

    overflow: hidden;

    min-height:
        calc(
            100svh - 5.45rem
        );

    isolation: isolate;
}


/* =========================================================
   3. Background environment
   ========================================================= */

.lvduvs-hero-scene__media {
    position: absolute;

    z-index: -1;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


.lvduvs-hero-scene__image {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 73% 32%,
            rgb(74 162 208 / 19%),
            transparent 31rem
        ),
        radial-gradient(
            circle at 18% 82%,
            rgb(222 178 87 / 6%),
            transparent 25rem
        ),
        linear-gradient(
            112deg,
            #021421 0%,
            #041d31 38%,
            #07324f 72%,
            #05253e 100%
        );
}


/*
 * Ледь помітний рисунок університетської будівлі.
 *
 * Використовуємо вже наявний PNG із fullscreen-меню,
 * тому не додаємо зайвий графічний файл.
 */
.lvduvs-hero-scene__architecture {
    position: absolute;

    right:
        clamp(
            13rem,
            20vw,
            22rem
        );

    bottom: 12%;

    width:
        min(
            43vw,
            45rem
        );

    aspect-ratio:
        600 / 356;

    background:
        url("../images/navigation/lvduvs-menu-building.png")
        center bottom /
        contain
        no-repeat;

    opacity: 0.09;

    filter:
        sepia(0.35)
        saturate(0.55)
        brightness(1.1);

    transform:
        scale(1.08);

    transform-origin:
        bottom right;
}


/*
 * Дуже спокійні фонові стрічки.
 */
.lvduvs-hero-scene__ribbon {
    position: absolute;

    right: -12%;

    width: 58%;

    border-radius: 50%;

    transform:
        rotate(-11deg);

    transform-origin:
        center;

    opacity: 0.24;
}


.lvduvs-hero-scene__ribbon--blue {
    top: 6%;

    height: 18%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgb(57 127 172 / 34%),
            rgb(75 155 202 / 16%),
            transparent
        );
}


.lvduvs-hero-scene__ribbon--gold {
    right: -10%;

    bottom: 19%;

    height: 3.6%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgb(222 178 87 / 0%),
            rgb(222 178 87 / 16%),
            rgb(222 178 87 / 28%),
            transparent
        );

    filter:
        blur(0.6px);
}


.lvduvs-hero-scene__veil {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgb(2 20 33 / 14%) 0%,
            transparent 58%,
            rgb(2 20 33 / 17%) 100%
        ),
        linear-gradient(
            to bottom,
            rgb(2 20 33 / 5%) 0%,
            transparent 51%,
            rgb(2 20 33 / 58%) 100%
        );
}


/* =========================================================
   4. Main inner grid
   ========================================================= */

.lvduvs-hero-scene__container {
    position: relative;

    display: grid;

    width: 100%;

    max-width: none;

    box-sizing: border-box;

    padding-inline:
        clamp(
            1rem,
            4vw,
            5rem
        );

    min-height:
        calc(
            100svh - 5.45rem
        );

    grid-template-rows:
        auto
        auto;

    align-content: start;

    margin-inline: auto;

    padding-top:
        clamp(
            5.6rem,
            6.1vw,
            6.8rem
        );

    padding-bottom:
        clamp(
            1.4rem,
            2.7vw,
            2.4rem
        );
}


.lvduvs-hero-scene__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.52fr)
        minmax(18rem, 0.48fr);

    gap:
        clamp(
            3.5rem,
            6vw,
            6.6rem
        );

    align-items: start;

    padding-inline: 0;
}


.lvduvs-hero-scene__primary {
    min-width: 0;

    max-width: 64rem;
}


/* =========================================================
   5. Slogan
   ========================================================= */

.lvduvs-hero-scene__title {
    display: grid;

    max-width: 67rem;

    margin: 0;

    font-family:
        "Inter Tight",
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 0.96;

    text-wrap: balance;
}


.lvduvs-hero-scene__title-top {
    display: block;

    color:
        rgb(255 255 255 / 96%);

    font-size:
        clamp(
            2.2rem,
            3.45vw,
            4.05rem
        );

    font-weight: 720;

    letter-spacing: -0.045em;

    text-transform: uppercase;
}


.lvduvs-hero-scene__title-accent {
    display: block;

    margin-top: 0.28em;

    color:
        rgb(222 178 87 / 100%);

    background:
        linear-gradient(
            180deg,
            #f0cf85 0%,
            #dfb65d 46%,
            #c9973f 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    font-size:
        clamp(
            3.25rem,
            5.15vw,
            5.95rem
        );

    font-weight: 760;

    letter-spacing: -0.012em;

    word-spacing: 0.13em;

    text-transform: uppercase;
}


.lvduvs-hero-scene__lead {
    max-width: 34rem;

    margin:
        clamp(
            1.55rem,
            2.5vw,
            2.15rem
        )
        0
        0;

    color:
        rgb(255 255 255 / 82%);

    font-size:
        clamp(
            1.04rem,
            1.34vw,
            1.24rem
        );

    font-weight: 430;

    line-height: 1.55;
}


/* =========================================================
   6. Required registration actions
   ========================================================= */

.lvduvs-hero-scene__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    margin-top: 2.25rem;
}


.lvduvs-hero .lvduvs-button {
    display: inline-flex;

    min-height: 4.35rem;

    align-items: center;

    justify-content: space-between;

    gap: 1.4rem;

    padding:
        0.85rem
        1.45rem;

    border:
        1px solid
        transparent;

    border-radius: 1.15rem;

    font-family:
        "Inter Tight",
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size:
        clamp(
            0.82rem,
            0.94vw,
            0.98rem
        );

    font-weight: 700;

    line-height: 1.18;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color
        var(--lvduvs-transition-fast),

        border-color
        var(--lvduvs-transition-fast),

        color
        var(--lvduvs-transition-fast),

        transform
        var(--lvduvs-transition-fast),

        box-shadow
        var(--lvduvs-transition-fast);
}


.lvduvs-hero .lvduvs-button:first-child {
    width:
        min(
            25.6rem,
            100%
        );
}


.lvduvs-hero .lvduvs-button:nth-child(2) {
    width:
        min(
            23rem,
            100%
        );
}


.lvduvs-hero .lvduvs-button:hover {
    transform:
        translateY(-2px);
}


.lvduvs-hero .lvduvs-button--primary {
    border-color:
        rgb(218 173 82 / 88%);

    background:
        linear-gradient(
            180deg,
            #e9c874 0%,
            #d8aa50 100%
        );

    color:
        #071f36;

    box-shadow:
        0
        0.55rem
        1.6rem
        rgb(0 0 0 / 10%);
}


.lvduvs-hero .lvduvs-button--primary:hover {
    border-color:
        rgb(255 255 255 / 88%);

    background:
        rgb(255 255 255 / 96%);

    color:
        #071f36;
}


.lvduvs-hero .lvduvs-button--secondary {
    border-color:
        rgb(255 255 255 / 28%);

    background:
        rgb(4 26 43 / 35%);

    color:
        var(--lvduvs-paper);

    backdrop-filter:
        blur(12px);
}


.lvduvs-hero .lvduvs-button--secondary:hover {
    border-color:
        rgb(222 178 87 / 72%);

    background:
        rgb(255 255 255 / 8%);

    color:
        rgb(222 178 87 / 100%);
}


.lvduvs-button__arrow {
    flex: 0 0 auto;

    font-size: 1.12rem;

    font-weight: 450;

    transition:
        transform
        var(--lvduvs-transition-fast);
}


.lvduvs-button:hover
.lvduvs-button__arrow {
    transform:
        translate(
            0.12rem,
            -0.1rem
        );
}


/* =========================================================
   7. Spotlight / Information center
   ========================================================= */

.lvduvs-hero-spotlight {
    width:
        min(
            100%,
            21.8rem
        );

    justify-self: end;

    align-self: start;

    margin-top: 1.25rem;

    padding:
        clamp(
            1.55rem,
            2vw,
            1.95rem
        );

    border:
        1px solid
        rgb(255 255 255 / 17%);

    border-radius:
        1.55rem;

    background:
        linear-gradient(
            150deg,
            rgb(43 94 126 / 30%),
            rgb(8 38 61 / 58%)
        );

    box-shadow:
        0
        1.25rem
        3.5rem
        rgb(0 0 0 / 12%);

    backdrop-filter:
        blur(18px);
}


.lvduvs-hero-spotlight__status {
    display: inline-flex;

    align-items: center;

    gap: 0.52rem;

    color:
        rgb(222 178 87 / 100%);

    font-size: 0.74rem;

    font-weight: 760;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.lvduvs-hero-spotlight__status::before {
    width: 0.46rem;
    height: 0.46rem;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        rgb(222 178 87 / 100%);

    box-shadow:
        0
        0
        0
        0.32rem
        rgb(222 178 87 / 10%);

    content: "";
}


.lvduvs-hero-spotlight__label {
    margin:
        clamp(
            2rem,
            3vw,
            2.7rem
        )
        0
        0.72rem;

    color:
        rgb(255 255 255 / 60%);

    font-size: 0.82rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.lvduvs-hero-spotlight__title {
    margin: 0;

    color:
        var(--lvduvs-paper);

    font-size:
        clamp(
            1.3rem,
            1.6vw,
            1.75rem
        );

    font-weight: 720;

    line-height: 1.13;

    letter-spacing: -0.03em;

    text-wrap: balance;
}


.lvduvs-hero-spotlight__link {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    margin-top: 1.65rem;

    padding-top: 1rem;

    border-top:
        1px solid
        rgb(255 255 255 / 17%);

    color:
        rgb(255 255 255 / 90%);

    font-size: 0.82rem;

    font-weight: 650;

    line-height: 1.4;

    text-decoration: none;

    transition:
        color
        var(--lvduvs-transition-fast),

        border-color
        var(--lvduvs-transition-fast);
}


.lvduvs-hero-spotlight__link:hover {
    border-color:
        rgb(222 178 87 / 46%);

    color:
        rgb(222 178 87 / 100%);
}


/* =========================================================
   8. Audience routes
   ========================================================= */

.lvduvs-hero-routes {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    margin-top:
        clamp(
            3.6rem,
            7vh,
            4.7rem
        );

    overflow: hidden;

    border:
        1px solid
        rgb(255 255 255 / 21%);

    border-radius:
        1.25rem;

    background:
        rgb(2 20 34 / 33%);

    backdrop-filter:
        blur(10px);
}


.lvduvs-hero-routes a {
    position: relative;

    display: grid;display: grid;

    min-width: 0;

    min-height: 9rem;

    align-content: center;

    padding:
        1.25rem
        clamp(
            1.15rem,
            2vw,
            1.85rem
        );

    border-right:
        1px solid
        rgb(255 255 255 / 11%);

    color:
        var(--lvduvs-paper);

    text-decoration: none;

    transition:
        background-color
        var(--lvduvs-transition-base),

        transform
        var(--lvduvs-transition-base);
}


.lvduvs-hero-routes a:last-child {
    border-right: 0;
}


.lvduvs-hero-routes a:hover {
    z-index: 1;

    background:
        rgb(255 255 255 / 7%);

    transform:
        translateY(-0.16rem);
}


.lvduvs-hero-routes__icon {
    display: block;

    width: 2.45rem;
    height: 2.45rem;

    margin-bottom: 0.78rem;

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}


/* Вступнику — академічна шапочка */
.lvduvs-hero-routes__icon--applicants {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23DEB257' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.5 16 5l12.5 6.5L16 18 3.5 11.5Z'/%3E%3Cpath d='M8.5 14.1v7.1c4.7 3.5 10.3 3.5 15 0v-7.1'/%3E%3Cpath d='M28.5 11.5v8'/%3E%3Ccircle cx='28.5' cy='21.5' r='1.2'/%3E%3C/svg%3E");
}


/* Здобувачу освіти — група */
.lvduvs-hero-routes__icon--students {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23DEB257' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='10' r='4'/%3E%3Ccircle cx='21' cy='9' r='3.3'/%3E%3Cpath d='M4.5 25v-3.2c0-4 3.3-7.3 7.5-7.3s7.5 3.3 7.5 7.3V25'/%3E%3Cpath d='M18.2 15.2c1-.7 2.1-1.1 3.4-1.1 3.4 0 6.1 2.7 6.1 6.1V25'/%3E%3C/svg%3E");
}


/* Науковцю — книга */
.lvduvs-hero-routes__icon--research {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23DEB257' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7.5c4.2-1.4 8-1.1 11.5 1.1v17c-3.5-2.2-7.3-2.5-11.5-1.1v-17Z'/%3E%3Cpath d='M27.5 7.5c-4.2-1.4-8-1.1-11.5 1.1v17c3.5-2.2 7.3-2.5 11.5-1.1v-17Z'/%3E%3C/svg%3E");
}


/* Працівнику — портфель */
.lvduvs-hero-routes__icon--staff {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23DEB257' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='9' width='24' height='17' rx='2'/%3E%3Cpath d='M11 9V6.5h10V9M4 15.5h24M13 15.5v3h6v-3'/%3E%3C/svg%3E");
}


.lvduvs-hero-routes strong {
    overflow-wrap: anywhere;

    font-size:
        clamp(
            1.08rem,
            1.25vw,
            1.34rem
        );

    font-weight: 720;

    line-height: 1.22;
}


.lvduvs-hero-routes small {
    margin-top: 0.38rem;

    color:
        rgb(255 255 255 / 58%);

    font-size: 0.72rem;

    line-height: 1.4;
}


/* =========================================================
   9. Focus
   ========================================================= */

.lvduvs-hero a:focus-visible {
    outline:
        2px solid
        rgb(222 178 87 / 100%);

    outline-offset:
        4px;
}


/* =========================================================
   10. Tablet
   ========================================================= */

@media (max-width: 1100px) {


    .lvduvs-hero-scene {
        min-height: auto;
    }


    .lvduvs-hero-scene__container {
        width: 100%;

        min-height: auto;

        margin-inline: auto;

        padding-top: 4.25rem;
        padding-bottom: 2rem;
    }


    .lvduvs-hero-scene__layout {
        grid-template-columns: 1fr;

        gap: 2.6rem;

        padding-inline: 0;
    }


    .lvduvs-hero-spotlight {
        width:
            min(
                100%,
                35rem
            );

        justify-self: start;
    }


    .lvduvs-hero-scene__architecture {
        right: -3rem;

        bottom: 25%;

        width: 58vw;

        opacity: 0.11;
    }


    .lvduvs-hero-routes {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .lvduvs-hero-routes a:nth-child(2) {
        border-right: 0;
    }


    .lvduvs-hero-routes a:nth-child(-n + 2) {
        border-bottom:
            1px solid
            rgb(255 255 255 / 15%);
    }

}


/* =========================================================
   11. Mobile
   ========================================================= */

@media (max-width: 760px) {


    .lvduvs-hero-scene__container {
        width: 100%;

        margin-inline: auto;

        padding-top: 2.5rem;
        padding-bottom: 1.25rem;
    }


    .lvduvs-hero-scene__layout {
        gap: 2rem;

        padding-inline: 0;
    }


    .lvduvs-hero-scene__title-top {
        font-size:
            clamp(
                1.7rem,
                7.5vw,
                2.45rem
            );

        line-height: 1.02;
    }


    .lvduvs-hero-scene__title-accent {
        margin-top: 0.32em;

        font-size:
            clamp(
                2.25rem,
                10vw,
                3.35rem
            );

        line-height: 0.94;
    }


    .lvduvs-hero-scene__lead {
        margin-top: 1.55rem;

        font-size: 0.94rem;
    }


    .lvduvs-hero-scene__actions {
        display: grid;

        gap: 0.75rem;

        margin-top: 1.65rem;
    }


    .lvduvs-hero .lvduvs-button,
    .lvduvs-hero .lvduvs-button:first-child,
    .lvduvs-hero .lvduvs-button:nth-child(2) {
        width: 100%;

        min-height: 3.65rem;

        border-radius: 1rem;
    }


    .lvduvs-hero-spotlight {
        width: 100%;

        padding: 1.3rem;

        border-radius: 1.2rem;
    }


    .lvduvs-hero-spotlight__label {
        margin-top: 1.6rem;
    }


    .lvduvs-hero-scene__architecture {
        right: -6rem;

        bottom: 31%;

        width: 84vw;

        opacity: 0.08;
    }


    .lvduvs-hero-scene__ribbon {
        opacity: 0.23;
    }


    .lvduvs-hero-routes {
        grid-template-columns: 1fr;

        margin-top: 2rem;

        border-radius: 1rem;
    }


    .lvduvs-hero-routes a {
        min-height: 6.25rem;

        border-right: 0;

        border-bottom:
            1px solid
            rgb(255 255 255 / 13%);
    }


    .lvduvs-hero-routes a:last-child {
        border-bottom: 0;
    }

}


/* =========================================================
   12. Narrow mobile
   ========================================================= */

@media (max-width: 420px) {

    .lvduvs-hero-scene__container {
        width: 100%;
    }

    .lvduvs-hero-scene__title-top {
        font-size: 1.55rem;
    }


    .lvduvs-hero-scene__title-accent {
        font-size: 2.08rem;
    }


    .lvduvs-hero .lvduvs-button {
        padding-inline: 0;

        font-size: 0.78rem;
    }


    .lvduvs-hero-spotlight__title {
        font-size: 1.28rem;
    }

}




/* =========================================================
   14. Desktop geometry lock — approved composition
   ========================================================= */

@media (min-width: 1101px) {

    .has-immersive-hero
    .lvduvs-hero-scene__container,
    .is-home-page.has-immersive-hero
    .lvduvs-hero-scene__container {
        width: 100%;

        max-width: none;

    box-sizing: border-box;

    padding-inline:
        clamp(
            1rem,
            4vw,
            5rem
        );

        min-height:
            calc(
                100svh - 5.45rem
            );

        margin-inline: auto;

        padding-top:
            clamp(
                5.6rem,
                6.1vw,
                6.8rem
            );
    }

}


/* =========================================================
   13. Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lvduvs-hero *,
    .lvduvs-hero *::before,
    .lvduvs-hero *::after {
        animation: none !important;

        transition: none !important;
    }


    .lvduvs-hero-routes a:hover,
    .lvduvs-hero .lvduvs-button:hover {
        transform: none !important;
    }

}