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

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.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;
}

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

body.shp-shortcode-page #page,
body.shp-shortcode-page .site,
body.shp-shortcode-page #content,
body.shp-shortcode-page .site-content,
body.shp-shortcode-page #primary,
body.shp-shortcode-page .content-area,
body.shp-shortcode-page main.site-main,
body.shp-shortcode-page article,
body.shp-shortcode-page .inside-article,
body.shp-shortcode-page .entry-content,
body.shp-shortcode-page .entry-content > p:first-child,
body.shp-shortcode-page .entry-content > p:empty {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

body.shp-shortcode-page .entry-content > p:empty {
    display: none !important;
}


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

    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;
}


/* === Merkator city hero: перший екран із картою === */
.shp-city-hero {
    --mx: 50%;
    --my: 50%;
    --reveal-radius: 0px;

    position: relative;
    overflow: hidden;
    min-height: 575px;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    isolation: isolate;
    z-index: 1;
    background-color: #2c3138;
    background-image: var(--city-hero-img-1);
    background-repeat: no-repeat;
    background-position: center -50px;
    background-size: cover;
}

.shp-city-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--city-hero-img-2);
    background-repeat: no-repeat;
    background-position: center -50px;
    background-size: cover;
    clip-path: circle(var(--reveal-radius) at var(--mx) var(--my));
    -webkit-clip-path: circle(var(--reveal-radius) at var(--mx) var(--my));
}

.shp-city-hero__content {
    position: relative;
    z-index: 2;
    min-height: 575px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 28px 56px;
    text-align: center;
}

.shp-city-hero__brand {
    line-height: 1;
    transform: translateY(-30px);
}

.shp-city-hero__title,
.shp-city-hero__subtitle {
    font-family: 'Montserrat', sans-serif;
}

.shp-city-hero__title {
    position: relative;
    display: inline-block;
    margin: 0;
    font-size: clamp(52px, 9vw, 118px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 0.96;
    color: #2d7df6;
    text-shadow:
        -2px 0 0 #2b3138,
         2px 0 0 #2b3138,
         0 -2px 0 #2b3138,
         0  2px 0 #2b3138,
        -2px -2px 0 #2b3138,
         2px -2px 0 #2b3138,
        -2px  2px 0 #2b3138,
         2px  2px 0 #2b3138,
         0 6px 18px rgba(0, 0, 0, 0.18);
}

.shp-city-hero__subtitle {
    margin-top: 18px;
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 700;
    letter-spacing: 1.25em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow:
        -1px 0 0 #2b3138,
         1px 0 0 #2b3138,
         0 -1px 0 #2b3138,
         0  1px 0 #2b3138,
        -1px -1px 0 #2b3138,
         1px -1px 0 #2b3138,
        -1px  1px 0 #2b3138,
         1px  1px 0 #2b3138,
         0 4px 10px rgba(0, 0, 0, 0.14);
}

.shp-city-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    background: transparent;
}

.shp-city-link,
.shp-city-link:visited,
.shp-city-link--primary,
.shp-city-link--primary:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 0;
    background: #1877F2 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.shp-city-link:hover,
.shp-city-link:focus,
.shp-city-link--primary:hover,
.shp-city-link--primary:focus {
    background: #061225 !important;
    background-image: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

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

.shp-hero::before,
.shp-hero::after,
.shp-hero__bg,
.shp-hero__visual::before {
    display: none !important;
}

.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-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);
}

.shp-hero__title-accent {
    color: var(--shp-blue);
}

.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 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;
}

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

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

.shp-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;
}

.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: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

.shp-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;
}

.shp-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));
}

.shp-section {
    padding: 50px 0;
    background: var(--shp-bg);
}

.shp-section--categories,
.shp-section--popular {
    background: #ffffff;
}

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

.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: #061225;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

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

.shp-category-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;
    background: var(--category-color) !important;
    background-image: none !important;
    box-shadow: 8px 10px 6px -6px rgba(6, 18, 37, 0.34);
    transition: none;
}

.shp-category-card:visited,
.shp-category-card:hover,
.shp-category-card:focus {
    color: #ffffff !important;
    background: var(--category-color) !important;
    background-image: none !important;
    transform: none;
    box-shadow: 8px 10px 6px -6px rgba(6, 18, 37, 0.34);
}

.shp-category-card__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

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

.shp-category-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;
}

.shp-category-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;
}

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

.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,
.shp-latest-card:visited,
.shp-latest-card:hover,
.shp-latest-card:focus {
    --test-card-color: #061225;
    display: block;
    width: var(--shp-latest-card-width);
    color: #ffffff !important;
    text-decoration: none !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;
}

.shp-latest-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 18px 18px 0 0 !important;
    background: transparent;
    line-height: 0;
    vertical-align: top;
}

.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;
    border-radius: 18px 18px 0 0 !important;
}

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

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

.shp-latest-card__image .li-simple-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(--test-card-color) !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;
}

.shp-latest-card__image .li-tag-badge {
    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(--test-card-color) !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;
}

.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__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,
.shp-latest-card:hover .shp-latest-card__caption,
.shp-latest-card:focus .shp-latest-card__caption,
.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;
    margin: 0 !important;
    padding: 8px 12px 10px 12px !important;
    border-radius: 0 0 18px 18px !important;
    background: var(--test-card-color) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.18 !important;
    font-weight: 400;
    text-align: center;
    box-shadow: none !important;
}

.shp-latest-card:hover .shp-latest-card__caption,
.shp-latest-card:focus .shp-latest-card__caption {
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 3px !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);
}

@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::before {
        content: none !important;
        display: none !important;
    }

    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 (min-width: 981px) {
    body.shp-shortcode-page .shp .shp-hero,
    .shp .shp-hero {
        min-height: 629px !important;
        padding-top: 30px !important;
        padding-bottom: 68px !important;
    }
}

@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-category-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (min-width: 981px) {
    .shp-hero__meta {
        margin-top: 23px;
    }
}


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

    body.shp-shortcode-page::before {
        background:
            radial-gradient(ellipse 48% 118% at 95% 22%, rgba(1, 5, 14, 0.99) 0%, rgba(1, 5, 14, 0.95) 34%, rgba(1, 5, 14, 0.70) 64%, rgba(1, 5, 14, 0.16) 100%),
            linear-gradient(90deg, #01040d 0%, #020d22 47%, #061d43 100%) !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
    }

    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;
    }

    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;
    }
}

@media (max-width: 768px) {
    body.shp-shortcode-page {
        position: relative !important;
        background: #01040d !important;
        background-color: #01040d !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,
            #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.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 .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 .site::before {
        content: none !important;
        display: none !important;
    }

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

    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;
    }

    .shp-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;
    }

    .shp-latest-card__image .li-simple-badge {
        border-radius: 999px 0 0 999px !important;
        font-size: 14px !important;
    }

    .shp-latest-card__image .li-tag-badge {
        font-size: 14px !important;
    }
}

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

    .shp-hero__grid {
        gap: 24px;
    }

    .shp-hero__content {
        display: contents;
    }

    .shp-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;
    }

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

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

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

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

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

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

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

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

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

    .shp-category-card__marker {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .shp-category-card__content small {
        font-size: 15px;
    }

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

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

@media (max-width: 767px) {
    .shp-city-hero,
    .shp-city-hero__content {
        min-height: 461px;
    }

    .shp-city-hero__content {
        padding: 34px 16px 28px;
    }

    .shp-city-hero__brand {
        transform: translateY(-30px);
    }

    .shp-city-hero__title {
        font-size: 54px;
        line-height: 0.95;
        letter-spacing: 0;
        text-shadow:
            -1.5px 0 0 #2b3138,
             1.5px 0 0 #2b3138,
             0 -1.5px 0 #2b3138,
             0  1.5px 0 #2b3138,
            -1.5px -1.5px 0 #2b3138,
             1.5px -1.5px 0 #2b3138,
            -1.5px  1.5px 0 #2b3138,
             1.5px  1.5px 0 #2b3138,
             0 5px 14px rgba(0, 0, 0, 0.16);
    }

    .shp-city-hero__subtitle {
        margin-top: 14px;
        font-size: 19px;
        letter-spacing: 0.65em;
        line-height: 1.3;
    }


    .shp-city-hero {
        background-image: none !important;
        background-color: #061225 !important;
    }

    .shp-city-hero::after {
        content: "";
        position: absolute;
        z-index: 0;
        left: 50%;
        top: 50%;
        width: 120vh;
        height: 120vw;
        min-width: 100%;
        min-height: 100%;
        pointer-events: none;
        background-image: var(--city-hero-img-1);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }

    .shp-city-hero::before {
        z-index: 1;
        inset: auto;
        left: 50%;
        top: 50%;
        width: 120vh;
        height: 120vw;
        min-width: 100%;
        min-height: 100%;
        background-position: center center;
        background-size: cover;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }
}

@media (max-width: 480px) {
    .shp-city-hero,
    .shp-city-hero__content {
        min-height: 461px;
    }

    .shp-city-hero__title {
        font-size: 42px;
    }

    .shp-city-hero__subtitle {
        font-size: 17px;
        letter-spacing: 0.42em;
    }
}
@media (max-width: 640px) {
    .shp-city-links {
        gap: 8px;
        margin-top: 22px;
        padding: 0;
    }

    .shp-city-link,
    .shp-city-link:visited {
        min-height: 44px;
        padding: 11px 18px;
        font-size: 16px;
    }
}


/* v107: вимикаємо старий глобальний градієнтний шар сторінки.
   Саме він давав тонку градієнтну смугу між шапкою і першим блоком. */
body.shp-shortcode-page::before,
body.shp-shortcode-page::after,
body.shp-shortcode-page #page::before,
body.shp-shortcode-page #page::after,
body.shp-shortcode-page .site::before,
body.shp-shortcode-page .site::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
}

body.shp-shortcode-page {
    background: var(--shp-bg, #f3f7fb) !important;
    background-image: none !important;
}

body.shp-shortcode-page .shp-city-hero {
    margin-top: 0 !important;
    border-top: 0 !important;
}


/* v108: прибираємо порожній wrapper Ad Inserter / Code Block перед шорткодом.
   На сторінці він приходить з inline margin: 8px auto і дає білу смугу між шапкою та першим блоком. */
body.shp-shortcode-page .entry-content > .code-block,
body.shp-shortcode-page .entry-content > .code-block-1,
body.shp-shortcode-page .entry-content > [class*="code-block"]:first-child {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

body.shp-shortcode-page .entry-content > .code-block + .shp,
body.shp-shortcode-page .entry-content > .code-block-1 + .shp,
body.shp-shortcode-page .entry-content > [class*="code-block"]:first-child + .shp {
    margin-top: 0 !important;
}

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

body.shp-shortcode-page header#masthead.site-header + #page,
body.shp-shortcode-page #masthead + #page,
body.shp-shortcode-page #page {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}


/* v109: кнопки перенесені у перший блок, висота hero +75px, мобільний SVG-фон повернутий на 90°. */
