/*
Plugin: Testy.org.ua — Головна сторінка
Version: 1.0.3

Це перенесення реального макета school-homepage без зміни дизайну.
Усі нові класи й змінні мають префікс testy-org-ua-home.
*/

body.testy-org-ua-home-shortcode-page .site-content,
body.testy-org-ua-home-shortcode-page .content-area,
body.testy-org-ua-home-shortcode-page .site-main,
body.testy-org-ua-home-shortcode-page .inside-article,
body.testy-org-ua-home-shortcode-page .entry-content,
body.testy-org-ua-home-shortcode-page.separate-containers .site-main,
body.testy-org-ua-home-shortcode-page.separate-containers .inside-article,
body.testy-org-ua-home-shortcode-page.one-container .site-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.testy-org-ua-home-shortcode-page .inside-article,
body.testy-org-ua-home-shortcode-page .site-content {
    background: transparent !important;
}

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

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

body.testy-org-ua-home-shortcode-page .inside-header,
body.testy-org-ua-home-shortcode-page .main-navigation,
body.testy-org-ua-home-shortcode-page #site-navigation,
body.testy-org-ua-home-shortcode-page .main-navigation:not(.slideout-navigation),
body.testy-org-ua-home-shortcode-page .main-navigation .inside-navigation,
body.testy-org-ua-home-shortcode-page .navigation-branding,
body.testy-org-ua-home-shortcode-page .mobile-menu-control-wrapper,
body.testy-org-ua-home-shortcode-page .menu-toggle,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li,
body.testy-org-ua-home-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.testy-org-ua-home-shortcode-page .main-navigation a,
body.testy-org-ua-home-shortcode-page .main-navigation a:visited,
body.testy-org-ua-home-shortcode-page .main-navigation a:hover,
body.testy-org-ua-home-shortcode-page .main-navigation a:focus,
body.testy-org-ua-home-shortcode-page .main-navigation a:active,
body.testy-org-ua-home-shortcode-page .main-navigation .menu-toggle,
body.testy-org-ua-home-shortcode-page .main-navigation .menu-toggle:hover,
body.testy-org-ua-home-shortcode-page .main-navigation .menu-toggle:focus,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li > a:hover,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li > a:focus,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li > a:hover,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li > a:focus {
    text-decoration: none !important;
}

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

body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li:hover > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li:focus > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li.sfHover > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li.current-menu-item:hover > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li.current-menu-ancestor:hover > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav > ul > li[class*="current-menu-"]:hover > a,
body.testy-org-ua-home-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;
}

body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul.sub-menu,
body.testy-org-ua-home-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.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li.current-menu-item > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li.current-menu-ancestor > a {
    background: #061225 !important;
    background-color: #061225 !important;
    background-image: none !important;
}

body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li:hover > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li:focus > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li.sfHover > a,
body.testy-org-ua-home-shortcode-page .main-navigation .main-nav ul ul li.current-menu-item:hover > a,
body.testy-org-ua-home-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;
}

.testy-org-ua-home {
    --testy-org-ua-home-bg: #f3f7fb;
    --testy-org-ua-home-text: #102033;
    --testy-org-ua-home-muted: #5f6f82;
    --testy-org-ua-home-line: rgba(16, 32, 51, 0.11);
    --testy-org-ua-home-blue: #1877F2;
    --testy-org-ua-home-cyan: #39d5ff;
    --testy-org-ua-home-radius-sm: 16px;
    --testy-org-ua-home-radius-md: 22px;

    color: var(--testy-org-ua-home-text);
    background: var(--testy-org-ua-home-bg);
    overflow: hidden;
}

.testy-org-ua-home *,
.testy-org-ua-home *::before,
.testy-org-ua-home *::after {
    box-sizing: border-box;
}

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

.testy-org-ua-home-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, #020918 0%, #04142d 47%, #0a3272 100%);
}

.testy-org-ua-home-hero::before,
.testy-org-ua-home-hero::after,
.testy-org-ua-home-hero__bg,
.testy-org-ua-home-hero__visual::before {
    display: none !important;
}

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

.testy-org-ua-home-hero__content {
    position: relative;
}

.testy-org-ua-home-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: 800;
    text-wrap: balance;
    text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.22);
}

.testy-org-ua-home-hero__title-accent {
    color: var(--testy-org-ua-home-blue);
}

.testy-org-ua-home-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;
}

.testy-org-ua-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.testy-org-ua-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border: 0;
    border-radius: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    transition: none;
}

.testy-org-ua-home-btn:hover,
.testy-org-ua-home-btn:focus {
    transform: none;
    text-decoration: none !important;
}

.testy-org-ua-home-btn--primary,
.testy-org-ua-home-btn--primary:visited,
.testy-org-ua-home-btn--primary:hover,
.testy-org-ua-home-btn--primary:focus {
    color: #ffffff !important;
    background: var(--testy-org-ua-home-blue) !important;
    background-image: none !important;
    box-shadow: none !important;
}

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

.testy-org-ua-home-hero__meta span {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}

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

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

.testy-org-ua-home-hero-figure {
    position: relative;
    width: min(100%, 705px);
    margin: 0 0 0 auto;
    isolation: isolate;
}

.testy-org-ua-home-hero-figure::before {
    content: "";
    position: absolute;
    inset: 50% -18% -18% -16%;
    border-radius: 999px;
    background: radial-gradient(ellipse at center,
        rgba(130, 200, 250, 0.79) 0%,
        rgba(82, 172, 241, 0.54) 24%,
        rgba(44, 128, 222, 0.33) 48%,
        rgba(22, 92, 180, 0.16) 68%,
        rgba(22, 92, 180, 0) 86%);
    filter: blur(36px);
    opacity: 0.80;
    transform: translateY(-20px);
    z-index: 0;
    pointer-events: none;
}

.testy-org-ua-home-hero-figure__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 22px rgba(0, 0, 0, 0.38));
}

.testy-org-ua-home-section {
    padding: 50px 0;
    background: var(--testy-org-ua-home-bg);
}

.testy-org-ua-home-section--subjects,
.testy-org-ua-home-section--popular {
    background: #ffffff;
}

.testy-org-ua-home-section--popular {
    padding-bottom: 40px;
}

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

.testy-org-ua-home-section__head--simple {
    display: block;
    max-width: 720px;
}

.testy-org-ua-home-section__title {
    margin: 0;
    color: #061225;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.testy-org-ua-home-subject-cards,
.testy-org-ua-home-class-cards {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.testy-org-ua-home-subject-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testy-org-ua-home-class-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testy-org-ua-home-subject-card,
.testy-org-ua-home-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;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none !important;
    box-shadow: 8px 10px 6px -6px rgba(6, 18, 37, 0.34);
    transition: none;
}

.testy-org-ua-home-subject-card,
.testy-org-ua-home-subject-card:visited,
.testy-org-ua-home-subject-card:hover,
.testy-org-ua-home-subject-card:focus {
    background: var(--testy-org-ua-category-color, #061225) !important;
    background-image: none !important;
}

.testy-org-ua-home-class-card,
.testy-org-ua-home-class-card:visited,
.testy-org-ua-home-class-card:hover,
.testy-org-ua-home-class-card:focus {
    background: #061225 !important;
    background-color: #061225 !important;
    background-image: none !important;
}

.testy-org-ua-home-subject-card:hover,
.testy-org-ua-home-subject-card:focus,
.testy-org-ua-home-class-card:hover,
.testy-org-ua-home-class-card:focus {
    color: #ffffff !important;
    transform: none;
    box-shadow: 8px 10px 6px -6px rgba(6, 18, 37, 0.34);
}

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

.testy-org-ua-home-subject-card__icon svg {
    display: block;
    width: 58px;
    height: 58px;
    color: currentColor;
    fill: currentColor;
}

.testy-org-ua-home-subject-card__content,
.testy-org-ua-home-class-card__content {
    display: block;
    min-width: 0;
}

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

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

.testy-org-ua-home-subject-card:hover .testy-org-ua-home-subject-card__content strong,
.testy-org-ua-home-subject-card:focus .testy-org-ua-home-subject-card__content strong,
.testy-org-ua-home-subject-card:hover .testy-org-ua-home-subject-card__content small,
.testy-org-ua-home-subject-card:focus .testy-org-ua-home-subject-card__content small,
.testy-org-ua-home-class-card:hover .testy-org-ua-home-class-card__content strong,
.testy-org-ua-home-class-card:focus .testy-org-ua-home-class-card__content strong,
.testy-org-ua-home-class-card:hover .testy-org-ua-home-class-card__content small,
.testy-org-ua-home-class-card:focus .testy-org-ua-home-class-card__content small {
    color: #ffffff !important;
    text-decoration-line: underline;
    text-decoration-color: #ffffff;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.testy-org-ua-home-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: 800;
    letter-spacing: -0.05em;
}

.testy-org-ua-home-latest-scroll {
    --testy-org-ua-home-latest-card-width: 350px;
    position: relative;
}

.testy-org-ua-home-latest-scroll__hint,
.testy-org-ua-home-latest-scroll::after {
    display: none !important;
}

.testy-org-ua-home-latest-tests {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--testy-org-ua-home-latest-card-width);
    gap: var(--testy-org-ua-test-card-column-gap, 22px);
    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;
}

.testy-org-ua-home-latest-tests::-webkit-scrollbar {
    height: 10px;
}

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

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

.testy-org-ua-home-latest-card {
    --testy-org-ua-card-padding: 0;
    --testy-org-ua-card-border: 0;
    --testy-org-ua-card-bg: transparent;
    --testy-org-ua-card-shadow: none;
    --testy-org-ua-card-shadow-hover: none;
    --testy-org-ua-hover-transform: none;
    display: flex;
    flex-direction: column;
    width: var(--testy-org-ua-home-latest-card-width);
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: #ffffff !important;
    background: transparent !important;
    overflow: visible !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    filter: drop-shadow(6px 8px 4px rgba(6, 18, 37, 0.26));
    scroll-snap-align: start;
    transform: none;
}

.testy-org-ua-home-latest-card__image {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 18px 18px 0 0 !important;
    background: transparent;
    line-height: 0;
    vertical-align: top;
}

.testy-org-ua-home-latest-card__img,
.testy-org-ua-home-latest-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.testy-org-ua-home-latest-card__img {
    object-fit: cover;
    transition: none;
    border-radius: 18px 18px 0 0 !important;
}

.testy-org-ua-home-latest-card__badge {
    position: absolute !important;
    top: 20px !important;
    right: 0 !important;
    max-width: 70% !important;
    padding: 6px 15px !important;
    border-radius: 999px 0 0 999px !important;
    background-color: var(--testy-org-ua-category-color, #061225) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 20 !important;
    text-decoration: none !important;
}

.testy-org-ua-home-latest-card__ribbon {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 200px !important;
    padding: 6px 0 !important;
    transform: rotate(-45deg) translate(-100px, 35px) !important;
    transform-origin: 0 0 !important;
    border-radius: 0 !important;
    background: var(--testy-org-ua-category-color, #061225) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 30 !important;
}

.testy-org-ua-home-latest-card__ribbon:hover,
.testy-org-ua-home-latest-card__badge:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

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

.testy-org-ua-home-latest-card__caption {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 12px 10px 12px !important;
    border-radius: 0 0 18px 18px !important;
    background: var(--testy-org-ua-category-color, #061225) !important;
    color: #ffffff !important;
    line-height: 1.18 !important;
    font-weight: 400;
    text-align: center;
    box-shadow: none !important;
}

.testy-org-ua-home-latest-card__caption a,
.testy-org-ua-home-latest-card__caption a:visited,
.testy-org-ua-home-latest-card__caption a:hover,
.testy-org-ua-home-latest-card__caption a:focus {
    display: block;
    width: 100%;
    color: #ffffff !important;
    text-decoration: none;
}

.testy-org-ua-home-latest-card:hover .testy-org-ua-home-latest-card__caption a,
.testy-org-ua-home-latest-card:focus-within .testy-org-ua-home-latest-card__caption a {
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 3px !important;
}

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

@media (min-width: 769px) {
    body.testy-org-ua-home-shortcode-page {
        position: relative !important;
        background: var(--testy-org-ua-home-bg) !important;
        background-color: var(--testy-org-ua-home-bg) !important;
        background-image: none !important;
    }

    body.testy-org-ua-home-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.testy-org-ua-home-shortcode-page #page,
    body.testy-org-ua-home-shortcode-page .site,
    body.testy-org-ua-home-shortcode-page .site-content,
    body.testy-org-ua-home-shortcode-page .content-area,
    body.testy-org-ua-home-shortcode-page .site-main,
    body.testy-org-ua-home-shortcode-page .inside-article,
    body.testy-org-ua-home-shortcode-page .entry-content,
    body.testy-org-ua-home-shortcode-page .testy-org-ua-home,
    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-hero,
    .testy-org-ua-home .testy-org-ua-home-hero {
        position: relative !important;
        z-index: 1 !important;
    }

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

    body.testy-org-ua-home-shortcode-page .site::before {
        content: none !important;
        display: none !important;
    }

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

@media (min-width: 981px) {
    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-hero,
    .testy-org-ua-home .testy-org-ua-home-hero {
        min-height: 629px !important;
        padding-top: 30px !important;
        padding-bottom: 68px !important;
    }
}

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

    .testy-org-ua-home-hero__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .testy-org-ua-home-hero__visual {
        min-height: auto;
        justify-content: center;
    }

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

    .testy-org-ua-home-section__head {
        display: grid;
        align-items: start;
    }
}

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

@media (min-width: 981px) {
    .testy-org-ua-home-hero__meta {
        margin-top: 23px;
    }
}


@media (min-width: 641px) and (max-width: 980px) {
    body.testy-org-ua-home-shortcode-page {
        background: #01040d !important;
        background-color: #01040d !important;
    }

    body.testy-org-ua-home-shortcode-page::before {
        height: 1500px !important;
        background:
            radial-gradient(ellipse 88% 34% at 50% 44%, rgba(10, 50, 114, 0.50) 0%, rgba(4, 26, 63, 0.24) 54%, rgba(1, 4, 13, 0) 100%),
            linear-gradient(180deg,
                #01040d 0%,
                #020b1d 12%,
                #041a3f 34%,
                #031637 58%,
                #020d24 78%,
                #01040d 100%) !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        background-size: 100% 1500px !important;
    }

    body.testy-org-ua-home-shortcode-page .site-header,
    body.testy-org-ua-home-shortcode-page #masthead,
    body.testy-org-ua-home-shortcode-page .testy-org-ua-home,
    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-hero,
    .testy-org-ua-home .testy-org-ua-home-hero {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-hero__grid,
    .testy-org-ua-home .testy-org-ua-home-hero__grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-hero__content,
    .testy-org-ua-home .testy-org-ua-home-hero__content {
        display: contents !important;
    }

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

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

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

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

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

/*
 * Один фон body::before має бути видимим крізь шапку, усі обгортки
 * GeneratePress і hero. Підвищена специфічність захищає прозорість від
 * глобального body:not(.shp-shortcode-page) правила в Custom CSS.
 */
html body.testy-org-ua-home-shortcode-page #page,
html body.testy-org-ua-home-shortcode-page .site,
html body.testy-org-ua-home-shortcode-page .site-content,
html body.testy-org-ua-home-shortcode-page .content-area,
html body.testy-org-ua-home-shortcode-page .site-main,
html body.testy-org-ua-home-shortcode-page .inside-article,
html body.testy-org-ua-home-shortcode-page .entry-content,
html body.testy-org-ua-home-shortcode-page .site-header,
html body.testy-org-ua-home-shortcode-page #masthead,
html body.testy-org-ua-home-shortcode-page .inside-header,
html body.testy-org-ua-home-shortcode-page .testy-org-ua-home-hero {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

@media (max-width: 768px) {
    body.testy-org-ua-home-shortcode-page {
        position: relative !important;
        background: #01040d !important;
        background-color: #01040d !important;
        background-image: none !important;
    }

    body.testy-org-ua-home-shortcode-page::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 1300px !important;
        background: linear-gradient(180deg,
            #01040d 0%,
            #020b1d 10%,
            #041a3f 24%,
            #031637 42%,
            #020d24 68%,
            #01040d 100%) !important;
        background-color: #01040d !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.testy-org-ua-home-shortcode-page #page,
    body.testy-org-ua-home-shortcode-page .site,
    body.testy-org-ua-home-shortcode-page .site-content,
    body.testy-org-ua-home-shortcode-page .content-area,
    body.testy-org-ua-home-shortcode-page .site-main,
    body.testy-org-ua-home-shortcode-page .inside-article,
    body.testy-org-ua-home-shortcode-page .entry-content,
    body.testy-org-ua-home-shortcode-page .testy-org-ua-home,
    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-hero,
    .testy-org-ua-home .testy-org-ua-home-hero {
        position: relative !important;
        z-index: 1 !important;
    }

    body.testy-org-ua-home-shortcode-page .site-header,
    body.testy-org-ua-home-shortcode-page #masthead {
        position: relative !important;
        z-index: 20 !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

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

    body.testy-org-ua-home-shortcode-page .site::before {
        content: none !important;
        display: none !important;
    }

    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-hero,
    .testy-org-ua-home .testy-org-ua-home-hero {
        min-height: auto !important;
        padding-top: 25px !important;
        padding-bottom: 73px !important;
    }

    body.testy-org-ua-home-shortcode-page .testy-org-ua-home .testy-org-ua-home-section,
    .testy-org-ua-home .testy-org-ua-home-section {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

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

    .testy-org-ua-home-hero-figure::before {
        inset: 52% -8% -2% -8% !important;
        background: radial-gradient(ellipse at center,
            rgba(155, 220, 255, 0.77) 0%,
            rgba(104, 196, 255, 0.52) 28%,
            rgba(58, 162, 255, 0.29) 52%,
            rgba(24, 119, 242, 0) 82%) !important;
        filter: blur(27px) !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .testy-org-ua-home-latest-card__badge {
        border-radius: 999px 0 0 999px !important;
        font-size: 14px !important;
    }

    .testy-org-ua-home-latest-card__ribbon {
        font-size: 14px !important;
    }
}

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

    .testy-org-ua-home-hero__grid {
        gap: 24px;
    }

    .testy-org-ua-home-hero__content {
        display: contents;
    }

    .testy-org-ua-home-hero__title {
        order: 1;
        margin-inline: auto;
        margin-top: 20px !important;
        text-align: center;
        font-size: clamp(32px, 9.8vw, 44px);
        letter-spacing: -0.052em;
        font-weight: 800 !important;
    }

    .testy-org-ua-home-hero__text {
        order: 2;
        margin-inline: auto;
        text-align: center;
        font-size: 15px;
        transform: translateY(-17px) !important;
    }

    .testy-org-ua-home-hero__visual {
        order: 3;
        margin-top: -4px;
        transform: translateY(-5px) !important;
    }

    .testy-org-ua-home-hero__actions {
        order: 4;
        display: grid;
        justify-content: center;
        margin-top: 7px !important;
        transform: none !important;
    }

    .testy-org-ua-home-btn {
        width: 100%;
        font-size: 15px;
    }

    .testy-org-ua-home-hero__meta {
        order: 5;
        justify-content: center;
        margin-top: 7px !important;
        font-size: 15px;
        text-align: center;
    }

    .testy-org-ua-home-hero__meta span + span::before {
        margin: 0 8px;
    }

    .testy-org-ua-home-section__title {
        font-size: 30px;
    }

    .testy-org-ua-home-subject-cards,
    .testy-org-ua-home-class-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

    .testy-org-ua-home-subject-card__icon,
    .testy-org-ua-home-class-card__number {
        width: 56px;
        height: 56px;
    }

    .testy-org-ua-home-subject-card__icon svg {
        width: 50px;
        height: 50px;
    }

    .testy-org-ua-home-class-card__number {
        font-size: 40px;
    }

    .testy-org-ua-home-subject-card__content small,
    .testy-org-ua-home-class-card__content small {
        font-size: 15px;
    }

    .testy-org-ua-home-latest-scroll {
        --testy-org-ua-home-latest-card-width: min(350px, 84vw);
    }

    .testy-org-ua-home-latest-card__caption {
        padding: 8px 10px 10px 10px !important;
        line-height: 1.18 !important;
    }
}
