/*
 * School Homepage styles
 * Version: v89
 * Папка: /wp-content/themes/generatepress_child/school-homepage/assets/css/school-home.css
 */

/*
 * Очищення службових відступів GeneratePress.
 * Це прибирає білі смуги під меню і над футером на сторінці,
 * де використано шорткод [school_homepage].
 */
body.shp-shortcode-page .site-content,
body.shp-shortcode-page .content-area,
body.shp-shortcode-page .site-main,
body.shp-shortcode-page .inside-article,
body.shp-shortcode-page .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.shp-shortcode-page.separate-containers .site-main,
body.shp-shortcode-page.separate-containers .inside-article,
body.shp-shortcode-page.one-container .site-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.shp-shortcode-page .inside-article,
body.shp-shortcode-page .site-content {
    background: transparent !important;
}

body.shp-shortcode-page .entry-header,
body.shp-shortcode-page .page-header,
body.shp-shortcode-page .rank-math-breadcrumb,
body.shp-shortcode-page .aioseo-breadcrumbs,
body.shp-shortcode-page .yoast-breadcrumbs,
body.shp-shortcode-page #breadcrumbs,
body.shp-shortcode-page .breadcrumb,
body.shp-shortcode-page .breadcrumbs,
body.shp-shortcode-page .generate-breadcrumbs,
body.shp-shortcode-page .woocommerce-breadcrumb {
    display: none !important;
}

body.shp-shortcode-page .entry-content > .shp:first-child,
body.shp-shortcode-page .entry-content > .shp:last-child {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/*
 * v10: шапка тільки на цій сторінці є продовженням hero.
 * Прозорою робимо лише верхню навігацію.
 * Dropdown/submenu не ламаємо: не чіпаємо його позиціонування, не обрізаємо overflow і не даємо округлення.
 */
body.shp-shortcode-page .site-header,
body.shp-shortcode-page #masthead {
    background:
        linear-gradient(90deg, #041126 0%, #061a3d 42%, #0b2d67 72%, #071d43 86%, #041121 100%) !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

body.shp-shortcode-page .inside-header,
body.shp-shortcode-page .main-navigation,
body.shp-shortcode-page #site-navigation,
body.shp-shortcode-page .main-navigation:not(.slideout-navigation),
body.shp-shortcode-page .main-navigation .inside-navigation,
body.shp-shortcode-page .navigation-branding,
body.shp-shortcode-page .mobile-menu-control-wrapper,
body.shp-shortcode-page .menu-toggle {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.shp-shortcode-page .main-navigation .main-nav > ul,
body.shp-shortcode-page .main-navigation .main-nav > ul > li,
body.shp-shortcode-page .main-navigation .main-nav > ul > li > a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.shp-shortcode-page .main-navigation .main-nav > ul > li > a,
body.shp-shortcode-page .main-navigation .menu-toggle,
body.shp-shortcode-page .site-branding,
body.shp-shortcode-page .site-branding a,
body.shp-shortcode-page .site-title a {
}

body.shp-shortcode-page .main-navigation .main-nav > ul > li:hover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li:focus > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.sfHover > a {
    background: #1877F2 !important;
    background-color: #1877F2 !important;
    background-image: none !important;
text-decoration: none !important;
}

body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-item > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-ancestor > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current_page_"] > a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
text-decoration: none !important;
}

body.shp-shortcode-page .main-navigation .main-nav ul ul,
body.shp-shortcode-page .main-navigation .main-nav ul ul.sub-menu,
body.shp-shortcode-page .main-navigation .main-nav ul ul.children {
    background: #061225 !important;
    background-color: #061225 !important;
    background-image: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26) !important;
}

body.shp-shortcode-page .main-navigation .main-nav ul ul li,
body.shp-shortcode-page .main-navigation .main-nav ul ul li a {
    background: #061225 !important;
    background-color: #061225 !important;
}

body.shp-shortcode-page .main-navigation .main-nav ul ul li:hover > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li:focus > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.sfHover > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-item > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-ancestor > a {
    background: #0a2b64 !important;
    background-color: #0a2b64 !important;
}


body.shp-shortcode-page .main-navigation a,
body.shp-shortcode-page .main-navigation a:visited,
body.shp-shortcode-page .main-navigation a:hover,
body.shp-shortcode-page .main-navigation a:focus,
body.shp-shortcode-page .main-navigation a:active,
body.shp-shortcode-page .main-navigation .menu-toggle,
body.shp-shortcode-page .main-navigation .menu-toggle:hover,
body.shp-shortcode-page .main-navigation .menu-toggle:focus {
text-decoration: none !important;
}

body.shp-shortcode-page .main-navigation .main-nav > ul > li > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li > a:hover,
body.shp-shortcode-page .main-navigation .main-nav > ul > li > a:focus,
body.shp-shortcode-page .main-navigation .main-nav ul ul li > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li > a:hover,
body.shp-shortcode-page .main-navigation .main-nav ul ul li > a:focus {
    text-decoration: none !important;
}

.shp {
    --shp-bg: #f3f7fb;
    --shp-surface: rgba(255, 255, 255, 0.86);
    --shp-surface-solid: #ffffff;
    --shp-text: #102033;
    --shp-muted: #5f6f82;
    --shp-line: rgba(16, 32, 51, 0.11);
    --shp-blue: #1877F2;
    --shp-blue-dark: #1877F2;
    --shp-blue-deep: #061b3f;
    --shp-cyan: #39d5ff;
    --shp-green: #27c48b;
    --shp-shadow: 0 24px 70px rgba(18, 43, 73, 0.15);
    --shp-radius-lg: 32px;
    --shp-radius-md: 22px;
    --shp-radius-sm: 16px;

    color: var(--shp-text);
    background: var(--shp-bg);
    overflow: hidden;
}

.shp *,
.shp *::before,
.shp *::after {
    box-sizing: border-box;
}

.shp-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/*
 * v07: темний hero-фон без внутрішньої рамки-картки.
 * Шапка на цій сторінці стилістично продовжує hero.
 */
.shp-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 42px 0 38px;
    color: #ffffff;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, #041126 0%, #061a3d 42%, #0b2d67 72%, #071d43 86%, #041121 100%);
}

.shp-hero::before {
    content: "";
    position: absolute;
    right: 9%;
    bottom: 5%;
    width: min(54vw, 820px);
    height: min(30vw, 420px);
    background: radial-gradient(ellipse at center, rgba(44, 126, 255, 0.34) 0%, rgba(44, 126, 255, 0.18) 34%, rgba(44, 126, 255, 0) 74%);
    filter: blur(26px);
    pointer-events: none;
    z-index: 0;
}

.shp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px;
    background: linear-gradient(180deg, transparent, rgba(4, 13, 34, 0.18));
    pointer-events: none;
    z-index: -1;
}

.shp-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 47fr) minmax(390px, 53fr);
    gap: 34px;
    align-items: center;
}

.shp-hero__content {
    position: relative;
}

.shp-section__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--shp-blue-dark);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shp-section__kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--shp-blue), var(--shp-cyan));
    box-shadow: 0 0 0 6px rgba(23, 105, 255, 0.10);
}

.shp-hero__title {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 4.7vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 900;
    text-wrap: balance;
    text-shadow: 0 0 28px rgba(106, 166, 255, 0.18);
}

.shp-hero__title-accent {
    color: #1877F2;
}

.shp-hero__text {
    max-width: 630px;
    margin: 22px 0 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.shp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.shp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: none;
}

.shp-btn:hover,
.shp-btn:focus {
    transform: none;
    text-decoration: none;
}

.shp-btn--primary {
    color: #ffffff !important;
    background: #1877F2;
    border: 0;
    box-shadow: none;
    text-shadow: none;
    opacity: 1;
}

.shp-btn--primary:hover,
.shp-btn--primary:focus {
    color: #ffffff;
    background: #1877F2;
    box-shadow: none;
    text-decoration: none;
}

.shp-btn--secondary {
    color: #eaf3ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.shp-btn--secondary:hover,
.shp-btn--secondary:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.28);
}

.shp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 16px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.shp-hero__meta span {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}

.shp-hero__meta span + span::before {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.78);
}

.shp-hero__visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.shp-hero-figure {
    position: relative;
    width: min(100%, 705px);
    margin: 0 0 0 auto;
}

.shp-hero-figure::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: -2%;
    height: 44%;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(35, 132, 255, 0.30) 0%, rgba(35, 132, 255, 0.17) 38%, rgba(35, 132, 255, 0) 74%);
    filter: blur(24px);
    z-index: 0;
    pointer-events: none;
}

.shp-hero-figure__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 26px 56px rgba(0, 0, 0, 0.28));
}

/* v07: декоративні кулі/крапки у hero прибрано. */
.shp-hero__bg,
.shp-hero__visual::before {
    display: none !important;
}

.shp-section {
    padding: 74px 0;
}

.shp-section--subjects {
    background: #ffffff;
}

.shp-section--features {
    padding-bottom: 96px;
}

.shp-section__head {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.shp-section__head--simple {
    display: block;
    max-width: 720px;
}

.shp-section__title {
    margin: 0;
    color: var(--shp-text);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.shp-subject-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.shp-subject-card {
    --subject-color: var(--shp-blue);
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 100px;
    padding: 18px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 94% 0%, rgba(255, 255, 255, 0.24), transparent 34%),
        linear-gradient(135deg, var(--subject-color), color-mix(in srgb, var(--subject-color) 78%, #061225));
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(18, 43, 73, 0.18);
    transition: box-shadow 180ms ease, filter 180ms ease;
}

.shp-subject-card:hover,
.shp-subject-card:focus {
    color: #ffffff;
    text-decoration: none;
    transform: none;
    box-shadow: 0 16px 34px rgba(18, 43, 73, 0.18);
    filter: saturate(1.04);
}

.shp-subject-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: #ffffff;
}

.shp-subject-card__icon svg {
    display: block;
    width: 58px;
    height: 58px;
    color: currentColor;
    fill: currentColor;
}

.shp-subject-card__content {
    display: block;
    min-width: 0;
}

.shp-subject-card__content strong {
    display: block;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.shp-subject-card__content small {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
}

.shp-subject-card:hover .shp-subject-card__content strong,
.shp-subject-card:focus .shp-subject-card__content strong,
.shp-subject-card:hover .shp-subject-card__content small,
.shp-subject-card:focus .shp-subject-card__content small {
    color: #ffffff;
    text-decoration-line: underline;
    text-decoration-color: #ffffff;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


.shp-subject-card,
.shp-subject-card *,
.shp-class-card,
.shp-class-card * {
    text-decoration-color: #ffffff !important;
}


body.shp-shortcode-page .shp a.shp-subject-card,
body.shp-shortcode-page .shp a.shp-subject-card:visited,
body.shp-shortcode-page .shp a.shp-subject-card:hover,
body.shp-shortcode-page .shp a.shp-subject-card:focus,
body.shp-shortcode-page .shp a.shp-class-card,
body.shp-shortcode-page .shp a.shp-class-card:visited,
body.shp-shortcode-page .shp a.shp-class-card:hover,
body.shp-shortcode-page .shp a.shp-class-card:focus,
body.shp-shortcode-page .shp a.shp-subject-card *,
body.shp-shortcode-page .shp a.shp-class-card * {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

body.shp-shortcode-page .shp a.shp-subject-card:hover,
body.shp-shortcode-page .shp a.shp-subject-card:focus,
body.shp-shortcode-page .shp a.shp-class-card:hover,
body.shp-shortcode-page .shp a.shp-class-card:focus {
    text-decoration: none !important;
}

body.shp-shortcode-page .shp a.shp-subject-card:hover .shp-subject-card__content strong,
body.shp-shortcode-page .shp a.shp-subject-card:focus .shp-subject-card__content strong,
body.shp-shortcode-page .shp a.shp-subject-card:hover .shp-subject-card__content small,
body.shp-shortcode-page .shp a.shp-subject-card:focus .shp-subject-card__content small,
body.shp-shortcode-page .shp a.shp-class-card:hover .shp-class-card__content strong,
body.shp-shortcode-page .shp a.shp-class-card:focus .shp-class-card__content strong,
body.shp-shortcode-page .shp a.shp-class-card:hover .shp-class-card__content small,
body.shp-shortcode-page .shp a.shp-class-card:focus .shp-class-card__content small {
    color: #ffffff !important;
    text-decoration-line: underline !important;
    text-decoration-color: #ffffff !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

body.shp-shortcode-page .shp a.shp-latest-card,
body.shp-shortcode-page .shp a.shp-latest-card:visited,
body.shp-shortcode-page .shp a.shp-latest-card:hover,
body.shp-shortcode-page .shp a.shp-latest-card:focus,
body.shp-shortcode-page .shp a.shp-latest-card *,
body.shp-shortcode-page .shp a.shp-latest-card:visited *,
body.shp-shortcode-page .shp a.shp-latest-card:hover *,
body.shp-shortcode-page .shp a.shp-latest-card:focus * {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

body.shp-shortcode-page .shp a.shp-latest-card:hover .shp-latest-card__caption,
body.shp-shortcode-page .shp a.shp-latest-card:focus .shp-latest-card__caption {
    text-decoration-line: underline !important;
    text-decoration-color: #ffffff !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}



.shp-section--classes {
    background: var(--shp-bg);
}

.shp-class-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.shp-class-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 100px;
    padding: 18px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 94% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #040d1b 0%, #05152b 52%, #082553 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(18, 43, 73, 0.18);
    transition: box-shadow 180ms ease, filter 180ms ease;
}

.shp-class-card:hover,
.shp-class-card:focus {
    color: #ffffff;
    text-decoration: none;
    transform: none;
    box-shadow: 0 16px 34px rgba(18, 43, 73, 0.18);
    filter: saturate(1.05);
}

.shp-class-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.shp-class-card__content {
    display: block;
    min-width: 0;
}

.shp-class-card__content strong {
    display: block;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.shp-class-card__content small {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
}

.shp-class-card:hover .shp-class-card__content strong,
.shp-class-card:focus .shp-class-card__content strong,
.shp-class-card:hover .shp-class-card__content small,
.shp-class-card:focus .shp-class-card__content small {
    color: #ffffff;
    text-decoration-line: underline;
    text-decoration-color: #ffffff;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.shp-section--latest {
    background: rgba(255, 255, 255, 0.55);
    padding-top: 22px;
}

.shp-section--latest-new {
    background: var(--shp-bg);
}

.shp-section--popular {
    background: #ffffff;
    padding-bottom: 37px;
}

.shp-latest-scroll {
    --shp-latest-card-width: 350px;
    position: relative;
}

.shp-latest-scroll__hint,
.shp-latest-scroll::after {
    display: none !important;
}

.shp-latest-tests {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--shp-latest-card-width);
    gap: 23px;
    margin-top: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 18px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.shp-latest-tests::-webkit-scrollbar {
    height: 10px;
}

.shp-latest-tests::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(6, 18, 37, 0.08);
}

.shp-latest-tests::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(35, 132, 255, 0.42);
}

.shp-latest-card {
    --test-card-color: #061225;
    display: flex;
    flex-direction: column;
    width: var(--shp-latest-card-width);
    overflow: hidden;
    border-radius: 18px;
    background: var(--test-card-color);
    color: #ffffff !important;
    text-decoration: none !important;
    text-decoration-color: #ffffff !important;
    scroll-snap-align: start;
    box-shadow: 0 16px 34px rgba(18, 43, 73, 0.22);
    transition: none;
}

.shp-latest-card:hover,
.shp-latest-card:focus,
.shp-latest-card:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    text-decoration-color: #ffffff !important;
    transform: none;
}

.shp-latest-card__image {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #dfe8f4;
    overflow: hidden;
    border-radius: 0;
}

.shp-latest-card__image img,
.shp-latest-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.shp-latest-card__image img {
    object-fit: cover;
    transition: none;
}

/*
 * Верхні стрічки створює глобальний фільтр post_thumbnail_html → li_add_badges().
 * Тут тільки стилізація для карток на головній: обидві верхні стрічки і нижня плашка
 * беруть один колір відповідного предмета через --test-card-color.
 */
.shp-latest-card__image .li-thumb-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shp-latest-card__image .li-thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shp-latest-card__image .li-simple-badge {
    position: absolute !important;
    top: 20px !important;
    right: 0 !important;
    background-color: var(--test-card-color) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    padding: 6px 15px !important;
    border-radius: 0 !important;
    max-width: 70% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 20 !important;
    text-decoration: none !important;
}

.shp-latest-card__image .li-tag-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: var(--test-card-color) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    width: 200px !important;
    padding: 6px 0 !important;
    transform: rotate(-45deg) translate(-100px, 35px) !important;
    transform-origin: 0 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 30 !important;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .shp-latest-card__image .li-simple-badge {
        top: 20px !important;
        right: 0 !important;
        font-size: 14px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        padding: 6px 15px !important;
        border-radius: 0 !important;
        max-width: 70% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        z-index: 20 !important;
    }

    .shp-latest-card__image .li-tag-badge {
        top: 0 !important;
        left: 0 !important;
        font-size: 14px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 400 !important;
        line-height: 1.1 !important;
        width: 200px !important;
        padding: 6px 0 !important;
        transform: rotate(-45deg) translate(-100px, 35px) !important;
        transform-origin: 0 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        z-index: 30 !important;
        border-radius: 0 !important;
    }
}

.shp-latest-card__image .li-tag-badge:hover,
.shp-latest-card__image .li-simple-badge:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.shp-latest-card:hover .shp-latest-card__image img,
.shp-latest-card:focus .shp-latest-card__image img {
    transform: none;
}

.shp-latest-card__placeholder {
    background:
        radial-gradient(circle at 28% 22%, rgba(70, 184, 255, 0.28), transparent 28%),
        linear-gradient(135deg, #eaf3ff, #dbe8f8);
}

.shp-latest-card__caption {
    display: block;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 8px 12px 10px 12px;
    background: var(--test-card-color);
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 400;
    text-align: center;
    text-decoration-color: #ffffff !important;
    border-radius: 0;
}

.shp-latest-card:hover .shp-latest-card__caption,
.shp-latest-card:focus .shp-latest-card__caption {
    color: #ffffff !important;
    text-decoration-line: underline !important;
    text-decoration-color: #ffffff !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}


/* v41: картка тесту = єдиний блок; нижня плашка має точні внутрішні відступи без flex-розтягування. */
.shp-latest-card,
.shp-latest-card:visited,
.shp-latest-card:hover,
.shp-latest-card:focus {
    background: var(--test-card-color) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 34px rgba(18, 43, 73, 0.22) !important;
}

.shp-latest-card__image,
.shp-latest-card__caption {
    border-radius: 0 !important;
}

.shp-latest-card__image,
.shp-latest-card__image .li-thumb-wrap,
.shp-latest-card__image img {
    line-height: 0 !important;
    vertical-align: top !important;
}

.shp-latest-card__caption {
    display: block !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 12px 10px 12px !important;
    line-height: 1.18 !important;
}


.shp-empty {
    margin: 22px 0 0;
    padding: 18px;
    border-radius: var(--shp-radius-sm);
    background: #ffffff;
    color: var(--shp-muted);
    border: 1px solid var(--shp-line);
}

.shp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.shp-feature {
    padding: 28px;
    border: 1px solid var(--shp-line);
    border-radius: var(--shp-radius-md);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 46px rgba(18, 43, 73, 0.08);
}

.shp-feature__num {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--shp-blue);
    font-size: 14px;
    font-weight: 900;
}

.shp-feature h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.shp-feature p {
    margin: 14px 0 0;
    color: var(--shp-muted);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .shp-hero {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 46px;
    }

    .shp-hero__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .shp-hero__visual {
        min-height: auto;
        justify-content: center;
    }

    .shp-hero-figure {
        width: min(100%, 652px);
        margin-inline: auto;
    }

    .shp-section__head {
        display: grid;
        align-items: start;
    }

    .shp-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shp-container {
        width: min(100% - 44px, 1180px);
    }

    .shp-section__title {
        font-size: 30px;
        font-weight: 800;
    }

    .shp-hero__grid {
        gap: 24px;
    }

    .shp-hero__content {
        display: contents;
    }

    .shp-hero__title {
        order: 1;
        margin-inline: auto;
        text-align: center;
    }

    .shp-hero__text {
        order: 2;
        margin-inline: auto;
        text-align: center;
        font-size: 15px;
    }

    .shp-hero__visual {
        order: 3;
        margin-top: -4px;
    }

    .shp-hero__actions {
        order: 4;
        justify-content: center;
        margin-top: 0;
    }

    .shp-hero__meta {
        order: 5;
        justify-content: center;
        font-size: 15px;
        text-align: center;
    }

    .shp-btn {
        font-size: 15px;
    }

    .shp-subject-card__content small,
    .shp-class-card__content small {
        font-size: 15px;
    }

    .shp-section--popular {
        padding-bottom: 27px;
    }

    .shp-latest-scroll {
        --shp-latest-card-width: min(350px, 84vw);
    }

    .shp-latest-card__caption {
        font-size: 15px;
        padding: 8px 10px 10px 10px !important;
        line-height: 1.18 !important;
    }


    .shp-hero {
        padding: 38px 0 42px;
    }

    .shp-hero__title {
        font-size: clamp(32px, 9.8vw, 44px);
        letter-spacing: -0.052em;
    }


    .shp-hero__actions {
        display: grid;
    }

    .shp-btn {
        width: 100%;
    }


    .shp-hero__meta span + span::before {
        margin: 0 8px;
    }

    .shp-subject-cards {
        grid-template-columns: 1fr;
    }

    .shp-subject-card {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 18px;
        border-radius: 22px;
    }

    .shp-subject-card__icon {
        width: 56px;
        height: 56px;
    }

    .shp-subject-card__icon svg {
        width: 50px;
        height: 50px;
    }

    .shp-class-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shp-class-card {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 18px;
        border-radius: 22px;
    }

    .shp-class-card__number {
        width: 56px;
        height: 56px;
        font-size: 40px;
    }

    .shp-section {
        padding: 54px 0;
    }

    .shp-section--features {
        padding-bottom: 68px;
    }
}

@media (max-width: 640px) {
    .shp-section--popular {
        padding-bottom: 27px;
    }
}


/* v41: фінальний жорсткий оверрайд нижньої плашки карток тестів.
   Потрібно, щоб жодне старе правило теми/кешу не розтягувало плашку по висоті. */
body.shp-shortcode-page .shp .shp-latest-card,
body.shp-shortcode-page .shp .shp-latest-card:visited,
body.shp-shortcode-page .shp .shp-latest-card:hover,
body.shp-shortcode-page .shp .shp-latest-card:focus {
    display: block !important;
    width: var(--shp-latest-card-width) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: var(--test-card-color) !important;
    box-shadow: 0 16px 34px rgba(18, 43, 73, 0.22) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: none !important;
}

body.shp-shortcode-page .shp .shp-latest-card__image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 3 / 2 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.shp-shortcode-page .shp .shp-latest-card__image img,
body.shp-shortcode-page .shp .shp-latest-card__image .li-thumb-wrap,
body.shp-shortcode-page .shp .shp-latest-card__image .li-thumb-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    object-fit: cover !important;
    vertical-align: top !important;
    transform: none !important;
}

body.shp-shortcode-page .shp .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:hover .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:focus .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:visited .shp-latest-card__caption {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px 12px 10px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--test-card-color) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    text-align: center !important;
    text-decoration-color: #ffffff !important;
    transform: none !important;
}

body.shp-shortcode-page .shp .shp-latest-card:hover .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:focus .shp-latest-card__caption {
    text-decoration-line: underline !important;
    text-decoration-color: #ffffff !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

@media (max-width: 640px) {
    body.shp-shortcode-page .shp .shp-latest-card__caption,
    body.shp-shortcode-page .shp .shp-latest-card:hover .shp-latest-card__caption,
    body.shp-shortcode-page .shp .shp-latest-card:focus .shp-latest-card__caption,
    body.shp-shortcode-page .shp .shp-latest-card:visited .shp-latest-card__caption {
        padding: 8px 10px 10px 10px !important;
        font-size: 15px !important;
        line-height: 1.18 !important;
    }
}

/* v41: картки тестів — різна висота, одна цілісна картка */
body.shp-shortcode-page .shp .shp-latest-tests,
.shp .shp-latest-tests {
    align-items: start !important;
}

body.shp-shortcode-page .shp .shp-latest-card,
.shp .shp-latest-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: var(--test-card-color) !important;
    box-shadow: 0 14px 34px rgba(6, 18, 37, 0.18) !important;
    text-decoration: none !important;
    transform: none !important;
}

body.shp-shortcode-page .shp .shp-latest-card:hover,
body.shp-shortcode-page .shp .shp-latest-card:focus,
.shp .shp-latest-card:hover,
.shp .shp-latest-card:focus {
    transform: none !important;
    text-decoration: none !important;
}

body.shp-shortcode-page .shp .shp-latest-card__image,
.shp .shp-latest-card__image {
    flex: 0 0 auto !important;
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

body.shp-shortcode-page .shp .shp-latest-card__caption,
.shp .shp-latest-card__caption {
    flex: 0 0 auto !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 12px 10px 12px !important;
    margin: 0 !important;
    background: var(--test-card-color) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    text-align: center !important;
    text-decoration-color: #ffffff !important;
    border-radius: 0 !important;
}

body.shp-shortcode-page .shp .shp-latest-card:hover .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:focus .shp-latest-card__caption,
.shp .shp-latest-card:hover .shp-latest-card__caption,
.shp .shp-latest-card:focus .shp-latest-card__caption {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 3px !important;
}

@media (max-width: 640px) {
    body.shp-shortcode-page .shp .shp-latest-card__caption,
    .shp .shp-latest-card__caption {
        font-size: 15px !important;
        padding: 8px 10px 10px 10px !important;
    }
}

/* v41: повернення стилю назв блоків */
body.shp-shortcode-page .shp .shp-section__title,
.shp .shp-section__title {
    font-size: clamp(30px, 4vw, 48px) !important;
    font-weight: 900 !important;
}

@media (max-width: 640px) {
    body.shp-shortcode-page .shp .shp-section__title,
    .shp .shp-section__title {
        font-size: clamp(30px, 4vw, 48px) !important;
        font-weight: 900 !important;
    }
}


/* v41: кнопка hero */
body.shp-shortcode-page .shp .shp-btn--primary,
.shp .shp-btn--primary {
    background: #1877F2 !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

body.shp-shortcode-page .shp .shp-btn--primary:hover,
body.shp-shortcode-page .shp .shp-btn--primary:focus,
body.shp-shortcode-page .shp .shp-btn--primary:visited,
.shp .shp-btn--primary:hover,
.shp .shp-btn--primary:focus,
.shp .shp-btn--primary:visited {
    background: #1877F2 !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    transform: none !important;
}

/* v41: тінь карток вниз-праворуч + тінь hero-заголовка */
body.shp-shortcode-page .shp .shp-subject-card,
body.shp-shortcode-page .shp .shp-class-card,
body.shp-shortcode-page .shp .shp-latest-card,
.shp .shp-subject-card,
.shp .shp-class-card,
.shp .shp-latest-card {
    box-shadow: 10px 14px 20px -12px rgba(6, 18, 37, 0.34) !important;
}

body.shp-shortcode-page .shp .shp-subject-card:hover,
body.shp-shortcode-page .shp .shp-subject-card:focus,
body.shp-shortcode-page .shp .shp-class-card:hover,
body.shp-shortcode-page .shp .shp-class-card:focus,
body.shp-shortcode-page .shp .shp-latest-card:hover,
body.shp-shortcode-page .shp .shp-latest-card:focus,
.shp .shp-subject-card:hover,
.shp .shp-subject-card:focus,
.shp .shp-class-card:hover,
.shp .shp-class-card:focus,
.shp .shp-latest-card:hover,
.shp .shp-latest-card:focus {
    box-shadow: 10px 14px 20px -12px rgba(6, 18, 37, 0.34) !important;
    transform: none !important;
}

body.shp-shortcode-page .shp .shp-hero__title,
.shp .shp-hero__title {
    font-weight: 800 !important;
    text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.22) !important;
}

/* v41: чисті кольори карток, м’якша тінь, темніший hero */
body.shp-shortcode-page .shp .shp-subject-card,
.shp .shp-subject-card {
    background: var(--subject-color) !important;
    background-image: none !important;
}

body.shp-shortcode-page .shp .shp-class-card,
.shp .shp-class-card {
    background: #061225 !important;
    background-image: none !important;
}

body.shp-shortcode-page .shp .shp-subject-card,
body.shp-shortcode-page .shp .shp-class-card,
body.shp-shortcode-page .shp .shp-latest-card,
.shp .shp-subject-card,
.shp .shp-class-card,
.shp .shp-latest-card {
    box-shadow: 8px 10px 12px -8px rgba(6, 18, 37, 0.30) !important;
}

body.shp-shortcode-page .shp .shp-subject-card:hover,
body.shp-shortcode-page .shp .shp-subject-card:focus,
body.shp-shortcode-page .shp .shp-class-card:hover,
body.shp-shortcode-page .shp .shp-class-card:focus,
body.shp-shortcode-page .shp .shp-latest-card:hover,
body.shp-shortcode-page .shp .shp-latest-card:focus,
.shp .shp-subject-card:hover,
.shp .shp-subject-card:focus,
.shp .shp-class-card:hover,
.shp .shp-class-card:focus,
.shp .shp-latest-card:hover,
.shp .shp-latest-card:focus {
    box-shadow: 8px 10px 12px -8px rgba(6, 18, 37, 0.30) !important;
    transform: none !important;
}

body.shp-shortcode-page .shp .shp-hero,
.shp .shp-hero {
    background:
        radial-gradient(circle at 77% 58%, rgba(24, 119, 242, 0.42), transparent 30%),
        radial-gradient(circle at 78% 72%, rgba(70, 160, 255, 0.24), transparent 24%),
        radial-gradient(circle at 92% 8%, rgba(24, 119, 242, 0.16), transparent 30%),
        linear-gradient(115deg, #020918 0%, #04142d 46%, #082b66 100%) !important;
}

body.shp-shortcode-page .shp .shp-hero-figure::before,
.shp .shp-hero-figure::before {
    background: radial-gradient(circle at 50% 76%, rgba(72, 165, 255, 0.34), rgba(24, 119, 242, 0.16) 34%, rgba(24, 119, 242, 0) 72%) !important;
    filter: blur(28px) !important;
}

body.shp-shortcode-page .shp .shp-hero-figure__image,
.shp .shp-hero-figure__image {
    filter: drop-shadow(0 30px 22px rgba(0, 0, 0, 0.38)) !important;
}

/* v41: hero і шапка — єдиний темний градієнт; світіння тільки під рисунком */
body.shp-shortcode-page .site-header,
body.shp-shortcode-page #masthead,
body.shp-shortcode-page .shp .shp-hero,
.shp .shp-hero {
    background:
        radial-gradient(ellipse 42% 34% at 77% 72%, rgba(24, 119, 242, 0.34), rgba(24, 119, 242, 0.16) 34%, rgba(24, 119, 242, 0) 72%),
        radial-gradient(ellipse 30% 22% at 86% 68%, rgba(92, 174, 255, 0.18), rgba(92, 174, 255, 0) 68%),
        linear-gradient(115deg, #020918 0%, #04142d 47%, #082b66 100%) !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

body.shp-shortcode-page .shp .shp-hero-figure::before,
.shp .shp-hero-figure::before {
    inset: 58% 8% -4% 12% !important;
    border-radius: 999px !important;
    background: radial-gradient(ellipse at center, rgba(72, 165, 255, 0.42), rgba(24, 119, 242, 0.18) 38%, rgba(24, 119, 242, 0) 76%) !important;
    filter: blur(30px) !important;
    opacity: 1 !important;
}

body.shp-shortcode-page .shp .shp-hero-figure__image,
.shp .shp-hero-figure__image {
    filter: drop-shadow(0 30px 22px rgba(0, 0, 0, 0.38)) !important;
}


/* v41: шапка + hero без шва, світіння нижче й лівіше, верхній бейдж класу з округленням зліва */
body.shp-shortcode-page .site-header,
body.shp-shortcode-page #masthead {
    background: linear-gradient(90deg, #020918 0%, #04142d 47%, #082b66 100%) !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

body.shp-shortcode-page .shp .shp-hero,
.shp .shp-hero {
    background:
        radial-gradient(ellipse 50% 41% at 70% 73%, rgba(24, 119, 242, 0.38), rgba(24, 119, 242, 0.18) 34%, rgba(24, 119, 242, 0) 74%),
        radial-gradient(ellipse 34% 24% at 78% 70%, rgba(92, 174, 255, 0.15), rgba(92, 174, 255, 0) 70%),
        linear-gradient(90deg, #020918 0%, #04142d 47%, #082b66 100%) !important;
}

body.shp-shortcode-page .shp .shp-hero-figure::before,
.shp .shp-hero-figure::before {
    inset: 50% 7% -10% 4% !important;
    border-radius: 999px !important;
    background: radial-gradient(ellipse at center, rgba(72, 165, 255, 0.46), rgba(24, 119, 242, 0.22) 40%, rgba(24, 119, 242, 0) 78%) !important;
    filter: blur(28px) !important;
    opacity: 1 !important;
}

body.shp-shortcode-page .shp .shp-latest-card__image .li-simple-badge,
.shp .shp-latest-card__image .li-simple-badge {
    border-radius: 12px 0 0 12px !important;
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 54% 4% -10% 2% !important;
    }

    body.shp-shortcode-page .shp .shp-latest-card__image .li-simple-badge,
    .shp .shp-latest-card__image .li-simple-badge {
        border-radius: 10px 0 0 10px !important;
    }
}


/* v42: затемнений правий край hero+header, підсвічена зона під рисунком лівіше й вища */
body.shp-shortcode-page .site-header,
body.shp-shortcode-page #masthead,
body.shp-shortcode-page .shp .shp-hero,
.shp .shp-hero {
    background:
        linear-gradient(270deg, rgba(1, 8, 20, 0.58) 0%, rgba(1, 8, 20, 0.48) 10%, rgba(1, 8, 20, 0.22) 20%, rgba(1, 8, 20, 0) 32%),
        linear-gradient(90deg, #020918 0%, #04142d 46%, #0a3272 100%) !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

body.shp-shortcode-page .shp .shp-hero-figure::before,
.shp .shp-hero-figure::before {
    inset: 42% 2% -12% -8% !important;
    border-radius: 999px !important;
    background: radial-gradient(ellipse at center, rgba(72, 165, 255, 0.54), rgba(24, 119, 242, 0.28) 40%, rgba(24, 119, 242, 0.08) 58%, rgba(24, 119, 242, 0) 82%) !important;
    filter: blur(26px) !important;
    opacity: 1 !important;
}

body.shp-shortcode-page .shp .shp-latest-card__image .li-simple-badge,
.shp .shp-latest-card__image .li-simple-badge {
    border-radius: 12px 0 0 12px !important;
}

@media (max-width: 768px) {
    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background:
            linear-gradient(270deg, rgba(1, 8, 20, 0.50) 0%, rgba(1, 8, 20, 0.40) 10%, rgba(1, 8, 20, 0.18) 22%, rgba(1, 8, 20, 0) 34%),
            linear-gradient(90deg, #020918 0%, #04142d 46%, #0a3272 100%) !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 46% 0% -12% -6% !important;
        filter: blur(22px) !important;
    }

    body.shp-shortcode-page .shp .shp-latest-card__image .li-simple-badge,
    .shp .shp-latest-card__image .li-simple-badge {
        border-radius: 10px 0 0 10px !important;
    }
}


/* v44: прибираємо темні краї у верхніх кутах карток тестів.
   Тінь залишається у всієї картки, а верхні кути формує саме блок зображення. */
.shp-latest-card,
.shp-latest-card:visited,
.shp-latest-card:hover,
.shp-latest-card:focus {
    background: transparent !important;
    overflow: visible !important;
    border-radius: 18px !important;
    box-shadow: 8px 10px 20px rgba(18, 43, 73, 0.16) !important;
}

.shp-latest-card__image {
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

.shp-latest-card__image .li-thumb-wrap {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

.shp-latest-card__image .li-thumb-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 18px 18px 0 0 !important;
}

.shp-latest-card__caption {
    border-radius: 0 0 18px 18px !important;
}


/* v45: прибираємо темні краї у верхніх кутах карток нових/популярних тестів.
   Тепер тінь дається як drop-shadow всій картці без затемнення зверху. */
body.shp-shortcode-page .shp .shp-latest-card,
body.shp-shortcode-page .shp .shp-latest-card:visited,
body.shp-shortcode-page .shp .shp-latest-card:hover,
body.shp-shortcode-page .shp .shp-latest-card:focus,
.shp .shp-latest-card,
.shp .shp-latest-card:visited,
.shp .shp-latest-card:hover,
.shp .shp-latest-card:focus {
    background: transparent !important;
    overflow: visible !important;
    box-shadow: none !important;
    filter: drop-shadow(6px 8px 8px rgba(6, 18, 37, 0.22)) !important;
}

body.shp-shortcode-page .shp .shp-latest-card__image,
body.shp-shortcode-page .shp .shp-latest-card__image .li-thumb-wrap,
body.shp-shortcode-page .shp .shp-latest-card__image img,
.shp .shp-latest-card__image,
.shp .shp-latest-card__image .li-thumb-wrap,
.shp .shp-latest-card__image img {
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.shp-shortcode-page .shp .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:hover .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:focus .shp-latest-card__caption,
body.shp-shortcode-page .shp .shp-latest-card:visited .shp-latest-card__caption,
.shp .shp-latest-card__caption,
.shp .shp-latest-card:hover .shp-latest-card__caption,
.shp .shp-latest-card:focus .shp-latest-card__caption,
.shp .shp-latest-card:visited .shp-latest-card__caption {
    margin: 0 !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: none !important;
}


/* v46: тіні під усіма картками зроблені чіткішими приблизно вдвічі. */
body.shp-shortcode-page .shp .shp-subject-card,
body.shp-shortcode-page .shp .shp-class-card,
.shp .shp-subject-card,
.shp .shp-class-card {
    box-shadow: 8px 10px 6px -6px rgba(6, 18, 37, 0.34) !important;
}

body.shp-shortcode-page .shp .shp-subject-card:hover,
body.shp-shortcode-page .shp .shp-subject-card:focus,
body.shp-shortcode-page .shp .shp-class-card:hover,
body.shp-shortcode-page .shp .shp-class-card:focus,
.shp .shp-subject-card:hover,
.shp .shp-subject-card:focus,
.shp .shp-class-card:hover,
.shp .shp-class-card:focus {
    box-shadow: 8px 10px 6px -6px rgba(6, 18, 37, 0.34) !important;
}

body.shp-shortcode-page .shp .shp-latest-card,
body.shp-shortcode-page .shp .shp-latest-card:visited,
body.shp-shortcode-page .shp .shp-latest-card:hover,
body.shp-shortcode-page .shp .shp-latest-card:focus,
.shp .shp-latest-card,
.shp .shp-latest-card:visited,
.shp .shp-latest-card:hover,
.shp .shp-latest-card:focus {
    filter: drop-shadow(6px 8px 4px rgba(6, 18, 37, 0.26)) !important;
}


/* v47: мобільний hero — градієнт зверху вниз + підсвічування нижньої частини рисунка. */
@media (max-width: 768px) {
    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background:
            radial-gradient(ellipse 62% 28% at 58% 84%, rgba(72, 165, 255, 0.42), rgba(24, 119, 242, 0.18) 44%, rgba(24, 119, 242, 0) 78%),
            linear-gradient(180deg, #020918 0%, #031226 22%, #05204a 56%, #0a3272 100%) !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 63% 6% -10% 6% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center, rgba(92, 174, 255, 0.56), rgba(24, 119, 242, 0.26) 42%, rgba(24, 119, 242, 0.08) 60%, rgba(24, 119, 242, 0) 82%) !important;
        filter: blur(22px) !important;
        opacity: 1 !important;
    }
}


/* v48: мобільний hero — суцільний градієнт для шапки + hero, підсвічування вище під рисунком, нижня частина темніша. */
@media (max-width: 768px) {
    body.shp-shortcode-page {
        background:
            linear-gradient(180deg, #07265f 0%, #0a2f73 8%, #07265e 16%, #031634 32%, #021029 52%, #04173b 72%, #020816 100%) top center / 100% 980px no-repeat !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 48% 4% 12% 4% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center, rgba(92, 174, 255, 0.62), rgba(24, 119, 242, 0.28) 40%, rgba(24, 119, 242, 0.10) 58%, rgba(24, 119, 242, 0) 80%) !important;
        filter: blur(22px) !important;
        opacity: 1 !important;
    }
}


/* v49: мобільний hero + шапка — суцільний градієнт, підсвічування вище під рисунком, низ темніший. */
@media (max-width: 768px) {
    body.shp-shortcode-page,
    body.shp-shortcode-page #page,
    body.shp-shortcode-page .site,
    body.shp-shortcode-page .site-content,
    body.shp-shortcode-page .content-area,
    body.shp-shortcode-page .site-main,
    body.shp-shortcode-page .inside-article,
    body.shp-shortcode-page .entry-content {
        background: #020816 !important;
        background-color: #020816 !important;
        background-image: none !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead {
        background: linear-gradient(180deg, #021029 0%, #072c6d 100%) !important;
        background-color: #072c6d !important;
        background-image: linear-gradient(180deg, #021029 0%, #072c6d 100%) !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background:
            radial-gradient(ellipse 60% 24% at 55% 73%, rgba(92, 174, 255, 0.48), rgba(24, 119, 242, 0.22) 40%, rgba(24, 119, 242, 0.08) 58%, rgba(24, 119, 242, 0) 80%),
            linear-gradient(180deg, #072c6d 0%, #06275d 14%, #041b40 38%, #03122c 66%, #020816 100%) !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero::before,
    body.shp-shortcode-page .shp .shp-hero::after,
    .shp .shp-hero::before,
    .shp .shp-hero::after {
        opacity: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 47% 5% 11% 5% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center, rgba(92, 174, 255, 0.64), rgba(24, 119, 242, 0.30) 42%, rgba(24, 119, 242, 0.10) 60%, rgba(24, 119, 242, 0) 82%) !important;
        filter: blur(24px) !important;
        opacity: 1 !important;
    }
}


/* v50: ПК — сильно затемнюємо верхній правий сегмент і сильніше висвітлюємо низ під рисунком. */
@media (min-width: 769px) {
    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background:
            radial-gradient(ellipse 44% 92% at 92% 34%, rgba(1, 8, 20, 0.88) 0%, rgba(1, 8, 20, 0.82) 34%, rgba(1, 8, 20, 0.62) 58%, rgba(1, 8, 20, 0.28) 78%, rgba(1, 8, 20, 0) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 45%, #0a3272 100%) !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 58% 4% -18% -4% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center, rgba(92, 174, 255, 0.82), rgba(24, 119, 242, 0.46) 34%, rgba(24, 119, 242, 0.18) 56%, rgba(24, 119, 242, 0) 82%) !important;
        filter: blur(30px) !important;
        opacity: 1 !important;
    }
}

/* v52: фінальні правки.
   - hero/header на ПК як суцільний градієнт без шва;
   - підсвічування під рисунком світліше, більше і правіше;
   - бейдж класу на картках тестів із більшим заокругленням зліва;
   - картки "Оберіть клас" світліші;
   - hover у випадному меню синій #1877F2.
*/

/* Випадне меню: hover у кольорі акценту */
body.shp-shortcode-page .main-navigation .main-nav ul ul li:hover > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li:focus > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.sfHover > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-item > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-ancestor > a {
    background: #1877F2 !important;
    background-color: #1877F2 !important;
}

/* Світліші картки блоку "Оберіть клас" */
body.shp-shortcode-page .shp .shp-class-card,
.shp .shp-class-card {
    background: #143d80 !important;
    background-image: none !important;
}

/* Більше заокруглення зліва у плашки класу на картках тестів */
body.shp-shortcode-page .shp .shp-latest-card__image .li-simple-badge,
.shp .shp-latest-card__image .li-simple-badge {
    border-radius: 18px 0 0 18px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-latest-card__image .li-simple-badge,
    .shp .shp-latest-card__image .li-simple-badge {
        border-radius: 16px 0 0 16px !important;
    }
}

/* ПК: hero + шапка як один суцільний градієнт */
@media (min-width: 769px) {
    body.shp-shortcode-page {
        background-image:
            radial-gradient(ellipse 44% 110% at 93% 30%, rgba(0, 7, 18, 0.92) 0%, rgba(0, 7, 18, 0.88) 34%, rgba(1, 8, 20, 0.66) 58%, rgba(1, 8, 20, 0.28) 78%, rgba(1, 8, 20, 0) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 44%, #0a3272 100%);
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% 880px;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero::before,
    body.shp-shortcode-page .shp .shp-hero::after,
    .shp .shp-hero::before,
    .shp .shp-hero::after {
        opacity: 0 !important;
    }

    /* Підсвічування під нижньою частиною рисунка: світліше, більше і правіше */
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 52% -10% -26% 8% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center, rgba(132, 201, 255, 0.96) 0%, rgba(70, 165, 255, 0.58) 34%, rgba(24, 119, 242, 0.24) 58%, rgba(24, 119, 242, 0) 84%) !important;
        filter: blur(34px) !important;
        opacity: 1 !important;
    }
}

/* v53: fix PC hero/header gradient after accidental transparent hero.
   Use the same dark-blue background on both header and hero so there is no seam.
   Keep a darker top-right zone and a brighter glow under the right/lower part of the hero image. */
@media (min-width: 769px) {
    body.shp-shortcode-page {
        background: var(--shp-bg) !important;
        background-image: none !important;
        background-color: var(--shp-bg) !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background:
            radial-gradient(ellipse 42% 92% at 94% 28%, rgba(0, 7, 18, 0.95) 0%, rgba(0, 7, 18, 0.90) 34%, rgba(1, 8, 20, 0.72) 58%, rgba(1, 8, 20, 0.34) 78%, rgba(1, 8, 20, 0) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 44%, #0a3272 100%) !important;
        background-color: #04142d !important;
        background-repeat: no-repeat !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero::before,
    body.shp-shortcode-page .shp .shp-hero::after,
    .shp .shp-hero::before,
    .shp .shp-hero::after {
        opacity: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 54% -12% -26% 10% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center, rgba(148, 214, 255, 0.98) 0%, rgba(88, 178, 255, 0.62) 34%, rgba(24, 119, 242, 0.28) 58%, rgba(24, 119, 242, 0) 84%) !important;
        filter: blur(36px) !important;
        opacity: 1 !important;
    }
}

/* v54: ПК hero/header fix.
   - Шапка і hero мають бути одним суцільним темно-синім градієнтом без шва.
   - Права верхня зона сильніше затемнена.
   - Підсвічування під рисунком — ширше, світліше, вище, більше праворуч. */
@media (min-width: 769px) {
    body.shp-shortcode-page {
        background-color: #020918 !important;
        background-image:
            radial-gradient(ellipse 40% 95% at 94% 22%, rgba(0, 5, 14, 0.98) 0%, rgba(0, 5, 14, 0.96) 28%, rgba(1, 8, 20, 0.86) 52%, rgba(1, 8, 20, 0.52) 74%, rgba(1, 8, 20, 0.10) 100%),
            linear-gradient(90deg, #020918 0%, #031129 34%, #07224f 68%, #0a3272 100%) !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        background-size: 100% 920px !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero::before,
    body.shp-shortcode-page .shp .shp-hero::after,
    .shp .shp-hero::before,
    .shp .shp-hero::after {
        opacity: 0 !important;
        background: none !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        content: '' !important;
        position: absolute !important;
        inset: 50% -18% -22% -2% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(168, 224, 255, 0.98) 0%,
            rgba(116, 196, 255, 0.84) 22%,
            rgba(63, 166, 255, 0.52) 42%,
            rgba(24, 119, 242, 0.24) 62%,
            rgba(24, 119, 242, 0.00) 84%) !important;
        filter: blur(42px) !important;
        opacity: 1 !important;
        z-index: 0 !important;
        pointer-events: none !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure,
    .shp .shp-hero-figure {
        position: relative !important;
        isolation: isolate !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure__image,
    .shp .shp-hero-figure__image {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* v55: фінальне виправлення hero для ПК і мобільних.
   1) шапка і hero мають суцільну темно-синю основу без світлого фону;
   2) підсвічування розташоване під нижньою частиною рисунка, ширше, правіше і світліше;
   3) верхній правий сегмент на ПК додатково затемнений. */

/* Скидаємо службові світіння hero, щоб працювало тільки потрібне підсвічування під рисунком. */
body.shp-shortcode-page .shp .shp-hero::before,
body.shp-shortcode-page .shp .shp-hero::after,
.shp .shp-hero::before,
.shp .shp-hero::after {
    opacity: 0 !important;
}

@media (min-width: 769px) {
    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead {
        background:
            radial-gradient(ellipse 42% 110% at 97% 26%, rgba(1, 8, 20, 0.88) 0%, rgba(1, 8, 20, 0.72) 46%, rgba(1, 8, 20, 0.28) 72%, rgba(1, 8, 20, 0) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 47%, #0a3272 100%) !important;
        background-color: #04142d !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background:
            radial-gradient(ellipse 42% 110% at 97% 26%, rgba(1, 8, 20, 0.88) 0%, rgba(1, 8, 20, 0.72) 46%, rgba(1, 8, 20, 0.28) 72%, rgba(1, 8, 20, 0) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 47%, #0a3272 100%) !important;
        background-color: #04142d !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 58% -2% -16% -6% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(150, 207, 255, 0.92) 0%,
            rgba(92, 174, 255, 0.72) 28%,
            rgba(24, 119, 242, 0.38) 52%,
            rgba(24, 119, 242, 0.14) 68%,
            rgba(24, 119, 242, 0) 86%) !important;
        filter: blur(34px) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page,
    body.shp-shortcode-page #page,
    body.shp-shortcode-page .site,
    body.shp-shortcode-page .site-content,
    body.shp-shortcode-page .content-area,
    body.shp-shortcode-page .site-main,
    body.shp-shortcode-page .inside-article,
    body.shp-shortcode-page .entry-content {
        background: #020816 !important;
        background-color: #020816 !important;
        background-image: none !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead {
        background: linear-gradient(180deg, #021029 0%, #072c6d 100%) !important;
        background-color: #072c6d !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background:
            radial-gradient(ellipse 72% 30% at 56% 74%, rgba(92, 174, 255, 0.54) 0%, rgba(24, 119, 242, 0.26) 40%, rgba(24, 119, 242, 0.08) 60%, rgba(24, 119, 242, 0) 82%),
            linear-gradient(180deg, #072c6d 0%, #06275d 14%, #041b40 38%, #03122c 66%, #020816 100%) !important;
        background-color: #041b40 !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 49% 3% 8% 3% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(120, 191, 255, 0.72) 0%,
            rgba(92, 174, 255, 0.40) 36%,
            rgba(24, 119, 242, 0.12) 58%,
            rgba(24, 119, 242, 0) 82%) !important;
        filter: blur(22px) !important;
        opacity: 1 !important;
    }
}

/* v56: робимо шапку і hero одним суцільним градієнтом на ПК. */
@media (min-width: 769px) {
    body.shp-shortcode-page,
    body.shp-shortcode-page #page,
    body.shp-shortcode-page .site {
        background:
            radial-gradient(ellipse 44% 112% at 97% 26%, rgba(1, 8, 20, 0.90) 0%, rgba(1, 8, 20, 0.76) 44%, rgba(1, 8, 20, 0.30) 71%, rgba(1, 8, 20, 0) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 47%, #0a3272 100%) !important;
        background-color: #04142d !important;
        background-repeat: no-repeat !important;
        background-size: 100% 860px !important;
        background-position: top center !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }
}

/* v57: фінальне виправлення ПК hero + header.
   Робимо один спільний темно-синій фон для шапки і hero через .site::before,
   а hero та header лишаємо прозорими поверх нього.
   Так прибирається шов між шапкою і hero.
   Окремо даємо ширше і правіше підсвічування під нижньою частиною рисунка. */
@media (min-width: 769px) {
    body.shp-shortcode-page,
    body.shp-shortcode-page #page {
        background: var(--shp-bg) !important;
        background-color: var(--shp-bg) !important;
        background-image: none !important;
    }

    body.shp-shortcode-page .site {
        position: relative !important;
        background: var(--shp-bg) !important;
        background-color: var(--shp-bg) !important;
        background-image: none !important;
        isolation: isolate !important;
    }

    body.shp-shortcode-page .site::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 860px;
        background:
            radial-gradient(ellipse 48% 118% at 95% 22%, rgba(1, 8, 20, 0.97) 0%, rgba(1, 8, 20, 0.88) 34%, rgba(1, 8, 20, 0.54) 64%, rgba(1, 8, 20, 0.08) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 47%, #0a3272 100%);
        background-repeat: no-repeat;
        background-position: top center;
        pointer-events: none;
        z-index: 0;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .site-content,
    body.shp-shortcode-page .content-area,
    body.shp-shortcode-page .site-main,
    body.shp-shortcode-page .entry-content,
    body.shp-shortcode-page .shp,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        position: relative;
        z-index: 1;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .shp {
        background: transparent !important;
    }

    body.shp-shortcode-page .shp-section {
        background: var(--shp-bg);
    }

    body.shp-shortcode-page .shp-section--subjects {
        background: rgba(255, 255, 255, 0.55);
    }

    body.shp-shortcode-page .shp .shp-hero::before,
    body.shp-shortcode-page .shp .shp-hero::after,
    .shp .shp-hero::before,
    .shp .shp-hero::after {
        opacity: 0 !important;
        background: none !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure,
    .shp .shp-hero-figure {
        position: relative !important;
        isolation: isolate !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        content: '' !important;
        position: absolute !important;
        inset: 53% -16% -18% -8% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(170, 224, 255, 0.98) 0%,
            rgba(114, 194, 255, 0.82) 24%,
            rgba(58, 166, 255, 0.48) 46%,
            rgba(24, 119, 242, 0.22) 62%,
            rgba(24, 119, 242, 0.00) 82%) !important;
        filter: blur(38px) !important;
        opacity: 1 !important;
        z-index: 0 !important;
        pointer-events: none !important;
    }

    body.shp-shortcode-page .shp .shp-hero-figure__image,
    .shp .shp-hero-figure__image {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* v60: єдиний суцільний фон для шапки + hero.
   Спільний градієнт винесено на body::before, бо у GeneratePress header може бути поза .site.
   Header і hero лишаються прозорими поверх одного фонового шару — без шва між блоками. */
@media (min-width: 769px) {
    body.shp-shortcode-page {
        position: relative !important;
        background: var(--shp-bg) !important;
        background-color: var(--shp-bg) !important;
        background-image: none !important;
    }

    body.shp-shortcode-page::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 860px;
        background:
            radial-gradient(ellipse 48% 118% at 95% 22%, rgba(1, 8, 20, 0.97) 0%, rgba(1, 8, 20, 0.88) 34%, rgba(1, 8, 20, 0.54) 64%, rgba(1, 8, 20, 0.08) 100%),
            linear-gradient(90deg, #020918 0%, #04142d 47%, #0a3272 100%);
        background-repeat: no-repeat;
        background-position: top center;
        pointer-events: none;
        z-index: 0;
    }

    body.shp-shortcode-page #page,
    body.shp-shortcode-page .site,
    body.shp-shortcode-page .site-content,
    body.shp-shortcode-page .content-area,
    body.shp-shortcode-page .site-main,
    body.shp-shortcode-page .inside-article,
    body.shp-shortcode-page .entry-content,
    body.shp-shortcode-page .shp,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        position: relative !important;
        z-index: 1 !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead {
        position: relative !important;
        z-index: 20 !important;
    }

    body.shp-shortcode-page .site::before {
        content: none !important;
        display: none !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page {
        position: relative !important;
        background: #020816 !important;
        background-color: #020816 !important;
        background-image: none !important;
    }

    body.shp-shortcode-page::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 760px;
        background:
            radial-gradient(ellipse 72% 30% at 56% 74%, rgba(92, 174, 255, 0.54) 0%, rgba(24, 119, 242, 0.26) 40%, rgba(24, 119, 242, 0.08) 60%, rgba(24, 119, 242, 0) 82%),
            linear-gradient(180deg, #021029 0%, #072c6d 16%, #06275d 28%, #041b40 50%, #03122c 76%, #020816 100%);
        background-repeat: no-repeat;
        background-position: top center;
        pointer-events: none;
        z-index: 0;
    }

    body.shp-shortcode-page #page,
    body.shp-shortcode-page .site,
    body.shp-shortcode-page .site-content,
    body.shp-shortcode-page .content-area,
    body.shp-shortcode-page .site-main,
    body.shp-shortcode-page .inside-article,
    body.shp-shortcode-page .entry-content,
    body.shp-shortcode-page .shp,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        position: relative !important;
        z-index: 1 !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead {
        position: relative !important;
        z-index: 20 !important;
    }

    body.shp-shortcode-page .site::before {
        content: none !important;
        display: none !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .shp,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }
}


/* v62: повністю прибрано сіру підкладку саме під блоками "Оберіть предмет" і "Популярні тести". */
body.shp-shortcode-page .shp .shp-section--subjects,
body.shp-shortcode-page .shp .shp-section--popular,
body.shp-shortcode-page .shp-section--subjects,
body.shp-shortcode-page .shp-section--popular,
.shp .shp-section--subjects,
.shp .shp-section--popular {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

body.shp-shortcode-page .shp .shp-section--subjects::before,
body.shp-shortcode-page .shp .shp-section--subjects::after,
body.shp-shortcode-page .shp .shp-section--popular::before,
body.shp-shortcode-page .shp .shp-section--popular::after,
.shp .shp-section--subjects::before,
.shp .shp-section--subjects::after,
.shp .shp-section--popular::before,
.shp .shp-section--popular::after {
    background: transparent !important;
    background-image: none !important;
}


/* v63: підсвічування під рисунком зроблено на 10% більшим і приблизно на 20% темнішим. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 52% -18% -20% -10% !important;
        background: radial-gradient(ellipse at center,
            rgba(136, 179, 204, 0.98) 0%,
            rgba(91, 155, 204, 0.82) 24%,
            rgba(46, 133, 204, 0.48) 46%,
            rgba(19, 95, 194, 0.22) 62%,
            rgba(19, 95, 194, 0.00) 82%) !important;
        filter: blur(42px) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 48% 1% 6% 1% !important;
        background: radial-gradient(ellipse at center,
            rgba(96, 153, 204, 0.72) 0%,
            rgba(74, 139, 204, 0.40) 36%,
            rgba(19, 95, 194, 0.12) 58%,
            rgba(19, 95, 194, 0.00) 82%) !important;
        filter: blur(24px) !important;
        opacity: 1 !important;
    }
}


/* v64: підсвічування під рисунком ще на 10% більше і ще приблизно на 20% темніше від v63. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 51% -20% -22% -12% !important;
        background: radial-gradient(ellipse at center,
            rgba(109, 143, 163, 0.98) 0%,
            rgba(73, 124, 163, 0.82) 24%,
            rgba(37, 106, 163, 0.48) 46%,
            rgba(15, 76, 155, 0.22) 62%,
            rgba(15, 76, 155, 0.00) 82%) !important;
        filter: blur(46px) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 47% -1% 4% -1% !important;
        background: radial-gradient(ellipse at center,
            rgba(77, 122, 163, 0.72) 0%,
            rgba(59, 111, 163, 0.40) 36%,
            rgba(15, 76, 155, 0.12) 58%,
            rgba(15, 76, 155, 0.00) 82%) !important;
        filter: blur(26px) !important;
        opacity: 1 !important;
    }
}


/* v65: затемнено картки блоку "Оберіть клас" і зроблено вищим на 20% підсвічування під рисунком. */
body.shp-shortcode-page .shp .shp-class-card,
body.shp-shortcode-page .shp a.shp-class-card,
.shp .shp-class-card,
.shp a.shp-class-card {
    background:
        radial-gradient(circle at 94% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #020814 0%, #03101f 52%, #051a3a 100%) !important;
    background-color: #03101f !important;
}

@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 44% -20% -21% -12% !important;
        filter: blur(46px) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 39% -1% 3% -1% !important;
        filter: blur(26px) !important;
        opacity: 1 !important;
    }
}


/* v66: висвітлення під рисунком збільшено саме по висоті на 30% без зміни його загального положення. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 32.5% -20% -32.5% -12% !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 30.3% -1% -5.7% -1% !important;
    }
}


/* v67: повернуто верхню позицію висвітлення до попереднього стану і збільшено лише вертикальний розмір на 20%. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 44% -20% -36.4% -12% !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 39% -1% -8.6% -1% !important;
    }
}


/* v68: верхні пункти меню мають синю заливку на всю ширину, але по висоті як рядок підменю. */
body.shp-shortcode-page .main-navigation .main-nav > ul > li:hover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li:focus > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.sfHover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-item > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-ancestor > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current_page_"] > a {
    background: linear-gradient(#1877F2, #1877F2) center center / 100% 38px no-repeat !important;
    background-color: transparent !important;
text-decoration: none !important;
}


/* v69: ще зменшено висоту синьої плашки верхніх пунктів меню. */
body.shp-shortcode-page .main-navigation .main-nav > ul > li:hover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li:focus > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.sfHover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-item > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-ancestor > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current_page_"] > a {
    background: linear-gradient(#1877F2, #1877F2) center center / 100% 32px no-repeat !important;
    background-color: transparent !important;
text-decoration: none !important;
}


/* v70: збільшено висоту hero-блоку на 10%. */
@media (min-width: 981px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        min-height: 572px !important;
        padding-top: 46px !important;
        padding-bottom: 42px !important;
    }
}

@media (min-width: 769px) and (max-width: 980px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 53px !important;
        padding-bottom: 51px !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 42px !important;
        padding-bottom: 46px !important;
    }
}


/* v71: додано ще 20px знизу в hero-блоці. */
@media (min-width: 981px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-bottom: 62px !important;
    }
}

@media (min-width: 769px) and (max-width: 980px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-bottom: 71px !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-bottom: 66px !important;
    }
}


/* v72: висоту hero-блоку збільшено ще приблизно на 10%. */
@media (min-width: 981px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        min-height: 629px !important;
        padding-top: 51px !important;
        padding-bottom: 68px !important;
    }
}

@media (min-width: 769px) and (max-width: 980px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 58px !important;
        padding-bottom: 78px !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 46px !important;
        padding-bottom: 73px !important;
    }
}


/* v73: зменшено верхній відступ hero-блоку на 15px. */
@media (min-width: 981px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 36px !important;
    }
}

@media (min-width: 769px) and (max-width: 980px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 43px !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 31px !important;
    }
}


/* v74: верхній відступ hero-блоку зменшено ще на 6px. */
@media (min-width: 981px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 30px !important;
    }
}

@media (min-width: 769px) and (max-width: 980px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 37px !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        padding-top: 25px !important;
    }
}


/* v75: рядок короткої статистики зміщено на 4px вниз відносно кнопки. */
body.shp-shortcode-page .shp .shp-hero__meta,
.shp .shp-hero__meta {
    margin-top: 20px !important;
}


/* v76: білувате висвітлення на градієнті перенесено під нижню частину рисунка, як на референсі. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 58% -10% -10% -8% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.52) 0%,
            rgba(233, 242, 255, 0.36) 24%,
            rgba(188, 216, 255, 0.20) 48%,
            rgba(120, 175, 255, 0.10) 66%,
            rgba(120, 175, 255, 0.00) 84%) !important;
        filter: blur(34px) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 60% 0% 2% 0% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(233, 242, 255, 0.24) 28%,
            rgba(188, 216, 255, 0.12) 52%,
            rgba(120, 175, 255, 0.00) 82%) !important;
        filter: blur(26px) !important;
        opacity: 1 !important;
    }
}


/* v77: підсвітку під рисунком збільшено приблизно на 25% і змінено на блакитний градієнт. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 54% -14% -14% -12% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(118, 197, 255, 0.62) 0%,
            rgba(79, 176, 255, 0.46) 24%,
            rgba(45, 143, 255, 0.28) 48%,
            rgba(24, 119, 242, 0.14) 68%,
            rgba(24, 119, 242, 0.00) 86%) !important;
        filter: blur(38px) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 56% -4% 0% -4% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(118, 197, 255, 0.52) 0%,
            rgba(79, 176, 255, 0.34) 28%,
            rgba(45, 143, 255, 0.18) 52%,
            rgba(24, 119, 242, 0.00) 82%) !important;
        filter: blur(28px) !important;
        opacity: 1 !important;
    }
}


/* v78: блакитну пляму під рисунком збільшено ще приблизно на 25%. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 50% -18% -18% -16% !important;
        filter: blur(42px) !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 52% -8% -2% -8% !important;
        filter: blur(31px) !important;
    }
}


/* v79: блакитну пляму зроблено помітнішою без зміни її розміру та позиції. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 50% -18% -18% -16% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(145, 214, 255, 0.82) 0%,
            rgba(92, 188, 255, 0.60) 24%,
            rgba(47, 154, 255, 0.38) 48%,
            rgba(24, 119, 242, 0.18) 68%,
            rgba(24, 119, 242, 0.00) 86%) !important;
        filter: blur(36px) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero-figure::before,
    .shp .shp-hero-figure::before {
        inset: 52% -8% -2% -8% !important;
        border-radius: 999px !important;
        background: radial-gradient(ellipse at center,
            rgba(145, 214, 255, 0.72) 0%,
            rgba(92, 188, 255, 0.48) 28%,
            rgba(47, 154, 255, 0.26) 52%,
            rgba(24, 119, 242, 0.00) 82%) !important;
        filter: blur(27px) !important;
        opacity: 1 !important;
    }
}


/* v80: картки блоку "Оберіть клас" — суцільний колір без градієнта. */
body.shp-shortcode-page .shp .shp-class-card,
body.shp-shortcode-page .shp a.shp-class-card,
.shp .shp-class-card,
.shp a.shp-class-card {
    background: #0f0f43 !important;
    background-color: #0f0f43 !important;
    background-image: none !important;
}


/* v81: фінальні правки — класові картки, кнопка, заголовки секцій і цифра класу. */
body.shp-shortcode-page .shp .shp-class-card,
body.shp-shortcode-page .shp a.shp-class-card,
.shp .shp-class-card,
.shp a.shp-class-card {
    background: #061225 !important;
    background-color: #061225 !important;
    background-image: none !important;
}

body.shp-shortcode-page .shp .shp-btn,
.shp .shp-btn {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

body.shp-shortcode-page .shp .shp-section__title,
.shp .shp-section__title {
    color: #061225 !important;
    font-size: clamp(30px, 3.6vw, 44px) !important;
}

body.shp-shortcode-page .shp .shp-class-card__number,
.shp .shp-class-card__number {
    font-weight: 800 !important;
}


/* v83: відступи секцій після hero — 50px; низ блоку "Популярні тести" — 40px. */
@media (min-width: 769px) {
    body.shp-shortcode-page .shp .shp-section,
    .shp .shp-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    body.shp-shortcode-page .shp .shp-section--popular,
    .shp .shp-section--popular {
        padding-bottom: 40px !important;
    }
}


/* v84: фон пунктів меню світло-синій тільки при наведенні, без зафарбування активного пункту без hover. */
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-item > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-ancestor > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current_page_"] > a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    text-decoration: none !important;
}

body.shp-shortcode-page .main-navigation .main-nav > ul > li:hover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li:focus > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.sfHover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-item:hover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li.current-menu-ancestor:hover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current-menu-"]:hover > a,
body.shp-shortcode-page .main-navigation .main-nav > ul > li[class*="current_page_"]:hover > a {
    background: linear-gradient(#1877F2, #1877F2) center center / 100% 32px no-repeat !important;
    background-color: transparent !important;
    text-decoration: none !important;
}

body.shp-shortcode-page .main-navigation .main-nav ul ul li,
body.shp-shortcode-page .main-navigation .main-nav ul ul li a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-item > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-ancestor > a {
    background: #061225 !important;
    background-color: #061225 !important;
    background-image: none !important;
    text-decoration: none !important;
}

body.shp-shortcode-page .main-navigation .main-nav ul ul li:hover > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li:focus > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.sfHover > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-item:hover > a,
body.shp-shortcode-page .main-navigation .main-nav ul ul li.current-menu-ancestor:hover > a {
    background: #1877F2 !important;
    background-color: #1877F2 !important;
    background-image: none !important;
    text-decoration: none !important;
}


/* v85: мобільні правки hero. */
@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-hero__title,
    .shp .shp-hero__title {
        font-weight: 800 !important;
        margin-top: 20px !important;
    }

    body.shp-shortcode-page .shp .shp-hero__actions,
    .shp .shp-hero__actions {
        margin-top: 33px !important;
    }
}


/* v86: мобільний суцільний вертикальний градієнт для шапки і hero без шва. */
@media (max-width: 768px) {
    body.shp-shortcode-page {
        background: #020816 !important;
        background-color: #020816 !important;
        background-image: none !important;
    }

    body.shp-shortcode-page::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 1300px !important;
        background: linear-gradient(180deg,
            #072c6d 0%,
            #06275d 12%,
            #041b40 34%,
            #03122c 62%,
            #020816 100%) !important;
        background-color: #020816 !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        background-size: 100% 1300px !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead,
    body.shp-shortcode-page .inside-header,
    body.shp-shortcode-page .main-navigation,
    body.shp-shortcode-page #site-navigation,
    body.shp-shortcode-page .main-navigation:not(.slideout-navigation),
    body.shp-shortcode-page .main-navigation .inside-navigation,
    body.shp-shortcode-page .navigation-branding,
    body.shp-shortcode-page .mobile-menu-control-wrapper,
    body.shp-shortcode-page .menu-toggle,
    body.shp-shortcode-page .shp,
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }
}


/* v87: мобільні відступи секцій після hero. */
@media (max-width: 768px) {
    body.shp-shortcode-page .shp .shp-section,
    .shp .shp-section {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    body.shp-shortcode-page .shp .shp-section--popular,
    .shp .shp-section--popular {
        padding-top: 42px !important;
        padding-bottom: 32px !important;
    }
}


/* v88: планшетний порядок hero як на мобільних + центрування тексту першого блоку. */
@media (min-width: 641px) and (max-width: 980px) {
    body.shp-shortcode-page .shp .shp-hero__grid,
    .shp .shp-hero__grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    body.shp-shortcode-page .shp .shp-hero__content,
    .shp .shp-hero__content {
        display: contents !important;
    }

    body.shp-shortcode-page .shp .shp-hero__title,
    .shp .shp-hero__title {
        order: 1 !important;
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    body.shp-shortcode-page .shp .shp-hero__text,
    .shp .shp-hero__text {
        order: 2 !important;
        max-width: 680px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    body.shp-shortcode-page .shp .shp-hero__visual,
    .shp .shp-hero__visual {
        order: 3 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.shp-shortcode-page .shp .shp-hero__actions,
    .shp .shp-hero__actions {
        order: 4 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    body.shp-shortcode-page .shp .shp-hero__meta,
    .shp .shp-hero__meta {
        order: 5 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
}


/* v89: мобільні правки шапки та відступів елементів hero. */
@media (max-width: 768px) {
    body.shp-shortcode-page .site-header,
    body.shp-shortcode-page #masthead {
        background: #020816 !important;
        background-color: #020816 !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    body.shp-shortcode-page .inside-header,
    body.shp-shortcode-page .main-navigation,
    body.shp-shortcode-page #site-navigation,
    body.shp-shortcode-page .main-navigation:not(.slideout-navigation),
    body.shp-shortcode-page .main-navigation .inside-navigation,
    body.shp-shortcode-page .navigation-branding,
    body.shp-shortcode-page .mobile-menu-control-wrapper,
    body.shp-shortcode-page .menu-toggle {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    body.shp-shortcode-page .shp .shp-hero__text,
    .shp .shp-hero__text {
        transform: translateY(-7px) !important;
    }

    body.shp-shortcode-page .shp .shp-hero__actions,
    .shp .shp-hero__actions {
        transform: translateY(-3px) !important;
    }

    body.shp-shortcode-page .shp .shp-hero__meta,
    .shp .shp-hero__meta {
        margin-top: 17px !important;
    }
}
