/* Vazhik Academic Hero 1.0.5 — stable full-width layout */
.vazhik-academic-hero,
.vazhik-academic-hero * {
    box-sizing: border-box;
    font-family: inherit !important;
}

.vazhik-academic-hero {
    --vazhik-navy: #0a2f6b;
    --vazhik-blue: #0c7fd3;
    --vazhik-cyan: #24bddd;
    --vazhik-ink: #17365f;
    --vazhik-muted: #526982;

    position: relative;
    isolation: isolate;
    direction: rtl;
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 24px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(ellipse at 12% 72%, rgba(35, 190, 222, .17), transparent 32%),
        radial-gradient(ellipse at 82% 9%, rgba(72, 173, 255, .16), transparent 34%),
        linear-gradient(118deg, #e8f7ff 0%, #f7fbff 47%, #e7f4ff 100%);
    box-shadow: none !important;
}

.vazhik-academic-hero::before,
.vazhik-academic-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}
.vazhik-academic-hero::before {
    width: min(48vw, 650px);
    aspect-ratio: 1;
    left: -11%;
    top: 3%;
    border: 1px solid rgba(30, 173, 220, .18);
    box-shadow: 0 0 0 34px rgba(52, 187, 222, .04), 0 0 0 78px rgba(52, 187, 222, .03);
}
.vazhik-academic-hero::after {
    width: min(32vw, 440px);
    aspect-ratio: 1;
    right: -10%;
    bottom: -38%;
    background: rgba(255,255,255,.48);
    box-shadow: 0 0 0 34px rgba(255,255,255,.2);
}

.vazhik-hero__inner {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: clamp(560px, calc(100vh - 160px), 760px);
    min-height: clamp(560px, calc(100svh - 160px), 760px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
    align-items: center;
    gap: clamp(16px, 2vw, 34px);
    padding: clamp(30px, 4vw, 56px) 0;
}

.vazhik-hero__content,
.vazhik-hero__visual { min-width: 0; }

.vazhik-hero__content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 720px;
    justify-self: start;
    text-align: right;
}

.vazhik-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 clamp(12px, 1.5vh, 20px);
    padding: 9px 16px;
    color: #0878a9;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(24, 174, 210, .22);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(36, 126, 173, .07);
    font-size: clamp(12px, .9vw, 15px);
    font-weight: 800;
}
.vazhik-hero__kicker svg { width: 21px; height: 21px; flex: 0 0 auto; }

.vazhik-hero__title {
    margin: 0;
    color: var(--vazhik-navy);
    font-size: clamp(36px, 3.7vw, 62px);
    font-weight: 900;
    line-height: 1.34;
    letter-spacing: -.6px;
}
.vazhik-hero__highlight {
    display: inline-block;
    position: relative;
    z-index: 0;
    padding: 0 8px 3px;
    color: #075da8;
    white-space: nowrap;
}
.vazhik-hero__highlight::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 19% 0 8%;
    border-radius: 13px 18px 12px 17px;
    background: linear-gradient(100deg, rgba(88,224,235,.24), rgba(70,193,236,.4));
    transform: rotate(-1.1deg);
}

.vazhik-hero__description {
    max-width: 690px;
    margin: clamp(12px, 1.7vh, 22px) 0 clamp(16px, 2.2vh, 28px);
    color: #425c78;
    font-size: clamp(15px, 1.12vw, 19px);
    font-weight: 500;
    line-height: 1.95;
}

.vazhik-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.vazhik-academic-hero .vazhik-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 56px;
    padding: 12px 23px;
    border: 0;
    border-radius: 17px;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.vazhik-academic-hero .vazhik-hero__button:hover {
    transform: translateY(-3px);
    text-decoration: none !important;
}
.vazhik-hero__button svg { width: 22px; height: 22px; flex: 0 0 auto; }
.vazhik-academic-hero .vazhik-hero__button--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #0787d7, #0754a5);
    box-shadow: 0 12px 25px rgba(0, 103, 185, .22), inset 0 1px 0 rgba(255,255,255,.28);
}
.vazhik-academic-hero .vazhik-hero__button--secondary {
    color: #086cae !important;
    background: rgba(255,255,255,.84);
    border: 1.5px solid rgba(0, 126, 196, .42);
    box-shadow: 0 8px 22px rgba(28, 117, 169, .07);
}

.vazhik-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: clamp(16px, 2.2vh, 26px);
    color: #56718c;
    font-size: clamp(11px, .82vw, 13px);
    font-weight: 700;
}
.vazhik-hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.vazhik-hero__trust svg { width: 17px; height: 17px; color: #0b9eaf; flex: 0 0 auto; }

.vazhik-hero__visual {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 540px;
    direction: ltr;
}
.vazhik-hero__halo {
    position: absolute;
    width: min(80%, 540px);
    aspect-ratio: 1;
    left: 6%;
    top: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71,206,231,.28) 0 39%, rgba(255,255,255,.2) 40% 58%, transparent 70%);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: inset 0 0 45px rgba(255,255,255,.7), 0 0 55px rgba(63,180,224,.12);
}
.vazhik-hero__orbit {
    position: absolute;
    width: 92%;
    height: 20%;
    left: -4%;
    bottom: 4%;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 50%;
    transform: rotate(-9deg);
    box-shadow: 0 0 20px rgba(34,174,219,.18);
}
.vazhik-hero__mascot {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    display: block;
    width: auto;
    max-width: 72%;
    height: auto;
    max-height: 92%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 20px 18px rgba(15, 67, 105, .16));
}

.vazhik-hero__service {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    width: clamp(170px, 17vw, 230px);
    min-height: 56px;
    padding: 10px 14px;
    color: #103e70;
    background: rgba(255,255,255,.91);
    border: 1px solid rgba(255,255,255,.98);
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(31, 103, 154, .12), inset 0 1px 0 #fff;
    backdrop-filter: blur(12px);
    font-size: clamp(11px, .9vw, 14px);
    font-weight: 800;
    white-space: nowrap;
}
.vazhik-hero__service svg { width: 25px; height: 25px; flex: 0 0 auto; color: #0788c8; }
.vazhik-hero__service--one { top: 12%; right: 2%; transform: rotate(-2deg); }
.vazhik-hero__service--two { top: 31%; right: 1%; transform: rotate(1.5deg); }
.vazhik-hero__service--three { top: 50%; right: 3%; transform: rotate(-1deg); }
.vazhik-hero__service--four { top: 69%; right: 5%; transform: rotate(1.5deg); }

.vazhik-hero__spark {
    position: absolute;
    z-index: 1;
    top: 6%;
    left: 42%;
    width: 42px;
    height: 42px;
    color: #ffc13a;
    opacity: .95;
}

html body .vazhik-academic-hero,
html body .vazhik-academic-hero > * {
    box-sizing: border-box !important;
}

@media (min-width: 761px) and (max-height: 760px) {
    .vazhik-hero__inner { min-height: clamp(520px, calc(100vh - 145px), 680px); padding-block: 22px; }
    .vazhik-hero__title { font-size: clamp(34px, 3.3vw, 52px); line-height: 1.25; }
    .vazhik-hero__kicker { margin-bottom: 10px; padding: 7px 13px; }
    .vazhik-hero__description { margin: 10px 0 15px; line-height: 1.75; }
    .vazhik-academic-hero .vazhik-hero__button { min-height: 49px; padding: 10px 18px; }
    .vazhik-hero__trust { margin-top: 13px; }
    .vazhik-hero__service { min-height: 48px; padding: 8px 11px; }
}

@media (max-width: 1180px) and (min-width: 901px) {
    .vazhik-hero__inner { grid-template-columns: minmax(0,1fr) minmax(320px,.95fr); }
    .vazhik-hero__mascot { max-width: 75%; }
    .vazhik-hero__service { width: 186px; min-height: 50px; font-size: 11px; }
}

@media (max-width: 900px) {
    .vazhik-academic-hero { padding-inline: 18px !important; }
    .vazhik-hero__inner {
        min-height: auto;
        display: flex;
        flex-direction: column-reverse;
        gap: 6px;
        padding-block: 24px 0;
    }
    .vazhik-hero__content { text-align: center; max-width: 640px; margin: 0 auto; }
    .vazhik-hero__description { margin-inline: auto; }
    .vazhik-hero__actions, .vazhik-hero__trust { justify-content: center; }
    .vazhik-hero__visual { width: 100%; height: 360px; min-height: 360px; max-width: 620px; margin: 0 auto; }
    .vazhik-hero__halo { width: 70%; left: 12%; top: 5%; }
    .vazhik-hero__mascot { max-width: 64%; max-height: 100%; left: 0; }
    .vazhik-hero__service { width: 46%; min-height: 44px; padding: 7px 9px; gap: 6px; font-size: 10px; border-radius: 12px; }
    .vazhik-hero__service svg { width: 19px; height: 19px; }
    .vazhik-hero__service--one { top: 9%; right: 0; }
    .vazhik-hero__service--two { top: 31%; right: 0; }
    .vazhik-hero__service--three { top: 53%; right: 0; }
    .vazhik-hero__service--four { top: 75%; right: 0; }
    .vazhik-hero__spark { left: 34%; }
}

@media (max-width: 560px) {
    .vazhik-academic-hero { padding-inline: 14px !important; }
    .vazhik-hero__title { font-size: clamp(30px, 9vw, 43px); line-height: 1.42; }
    .vazhik-hero__description { font-size: 14px; line-height: 1.9; }
    .vazhik-hero__actions { flex-direction: column; align-items: stretch; }
    .vazhik-academic-hero .vazhik-hero__button { width: 100%; min-height: 48px; padding: 10px 14px; }
    .vazhik-hero__trust { gap: 8px 12px; font-size: 10px; }
    .vazhik-hero__visual { height: 300px; min-height: 300px; }
    .vazhik-hero__service { width: 49%; font-size: 9px; }
    .vazhik-hero__mascot { max-width: 67%; }
}

@media (prefers-reduced-motion: reduce) {
    .vazhik-academic-hero *,
    .vazhik-academic-hero *::before,
    .vazhik-academic-hero *::after { transition: none !important; }
}


/* Vazhik Academic Hero 1.0.6 — fit the rounded theme card, not the viewport. */
.vazhik-academic-hero {
    /* The theme card has 20px inner spacing; use that space so the hero reaches its edges. */
    width: calc(100% + 40px) !important;
    max-width: none !important;
    margin: -20px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.vazhik-hero__inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: clamp(520px, calc(100svh - 180px), 720px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: clamp(14px, 1.7vw, 28px) !important;
    padding: clamp(24px, 3vw, 42px) !important;
}

/* Keep the mascot and copy balanced when the theme's card is narrower than the viewport. */
@media (max-width: 1180px) and (min-width: 901px) {
    .vazhik-hero__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
        gap: 14px !important;
        padding: 28px !important;
    }
    .vazhik-hero__content { max-width: 100% !important; }
    .vazhik-hero__title { font-size: clamp(34px, 3.4vw, 46px) !important; }
    .vazhik-hero__description { font-size: clamp(13px, 1.25vw, 16px) !important; line-height: 1.85 !important; }
    .vazhik-hero__mascot { max-width: 72% !important; }
    .vazhik-hero__service { width: clamp(150px, 17vw, 186px) !important; }
}

@media (max-width: 900px) {
    .vazhik-academic-hero {
        width: calc(100% + 36px) !important;
        max-width: none !important;
        margin: -18px !important;
        margin-left: -18px !important;
        margin-right: -18px !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        border-radius: 24px !important;
        padding: 0 18px !important;
    }
    .vazhik-hero__inner {
        width: 100% !important;
        min-height: auto !important;
        padding: 24px 0 0 !important;
    }
}

@media (max-width: 560px) {
    .vazhik-academic-hero {
        width: calc(100% + 28px) !important;
        margin: -14px !important;
        margin-left: -14px !important;
        margin-right: -14px !important;
        border-radius: 20px !important;
        padding: 0 14px !important;
    }
}


/* Vazhik Academic Hero 1.0.7 — compact height so the complete hero fits in one view. */
@media (min-width: 901px) {
    .vazhik-hero__inner {
        min-height: clamp(410px, calc(100svh - 190px), 540px) !important;
        padding-top: clamp(18px, 2.2vh, 30px) !important;
        padding-bottom: clamp(18px, 2.2vh, 30px) !important;
    }
    .vazhik-hero__visual {
        min-height: 0 !important;
        height: 100% !important;
    }
    .vazhik-hero__mascot {
        max-height: 94% !important;
    }
    .vazhik-hero__service {
        min-height: 46px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* Compact tablet and mobile layout: reduce the illustration area and keep actions side by side. */
@media (max-width: 900px) {
    .vazhik-hero__inner {
        gap: 0 !important;
        padding-top: 14px !important;
        padding-bottom: 0 !important;
    }
    .vazhik-hero__visual {
        height: 230px !important;
        min-height: 0 !important;
        flex: 0 0 230px !important;
    }
    .vazhik-hero__content {
        padding-bottom: 18px;
    }
    .vazhik-hero__mascot {
        max-height: 100% !important;
        max-width: 60% !important;
    }
    .vazhik-hero__service {
        min-height: 38px !important;
        padding: 6px 8px !important;
        font-size: 9px !important;
    }
    .vazhik-hero__service svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 560px) {
    .vazhik-hero__inner {
        padding-top: 10px !important;
    }
    .vazhik-hero__visual {
        height: 190px !important;
        min-height: 0 !important;
        flex-basis: 190px !important;
    }
    .vazhik-hero__content {
        padding-bottom: 14px;
    }
    .vazhik-hero__kicker {
        margin-bottom: 7px !important;
        padding: 7px 11px !important;
    }
    .vazhik-hero__title {
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 1.3 !important;
    }
    .vazhik-hero__description {
        margin: 8px auto 11px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }
    .vazhik-hero__actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    .vazhik-academic-hero .vazhik-hero__button {
        width: auto !important;
        min-height: 42px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
    }
    .vazhik-hero__trust {
        margin-top: 9px !important;
        gap: 7px 10px !important;
        font-size: 9px !important;
    }
    .vazhik-hero__service {
        width: 48% !important;
        min-height: 34px !important;
        font-size: 8px !important;
        gap: 5px !important;
    }
    .vazhik-hero__service--one { top: 4% !important; }
    .vazhik-hero__service--two { top: 28% !important; }
    .vazhik-hero__service--three { top: 52% !important; }
    .vazhik-hero__service--four { top: 76% !important; }
}
