﻿.hem-page {
    --hem-blue: #1269c7;
    --hem-blue-dark: #0f3764;
    --hem-green: #20a57c;
    --hem-ink: #142238;
    --hem-muted: #5f6f84;
    --hem-soft: #f3f8fd;
    --hem-line: #d8e5f0;
    --hem-white: #ffffff;
    color: var(--hem-ink);
    background: #fff;
    font-family: inherit;
    letter-spacing: 0;
}

.hem-page *,
.hem-page *::before,
.hem-page *::after {
    box-sizing: border-box;
}

.hem-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hem-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hem-section {
    padding: 54px 0;
}

.hem-kicker {
    margin: 0 0 12px;
    color: var(--hem-blue);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
}

.hem-kicker::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--hem-green);
    vertical-align: 1px;
}

.hem-page h1,
.hem-page h2,
.hem-page h3,
.hem-page p {
    letter-spacing: 0;
}

.hem-page h1,
.hem-page h2,
.hem-page h3 {
    margin-top: 0;
    color: var(--hem-ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.hem-page h1 {
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1.05;
}

.hem-page h2 {
    margin-bottom: 16px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
}

.hem-page h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.2;
}

.hem-page p {
    color: var(--hem-muted);
    font-size: 17px;
    line-height: 1.68;
}

.hem-hero {
    padding: 50px 0 34px;
    background: linear-gradient(180deg, #f2f8fe 0%, #ffffff 100%);
    overflow: hidden;
}

.hem-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    gap: 46px;
    align-items: center;
}

.hem-lead {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: 19px;
}

.hem-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 26px;
}

.hem-quick span {
    min-height: 48px;
    padding: 13px 16px 13px 42px;
    border: 1px solid var(--hem-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--hem-ink);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    position: relative;
}

.hem-quick span::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 17px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--hem-green);
    box-shadow: 0 0 0 5px rgba(32, 165, 124, 0.12);
}

.hem-actions,
.hem-inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hem-page .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    min-width: 190px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hem-page .btn-style-one {
    background: var(--hem-blue);
    box-shadow: 0 14px 28px rgba(18, 105, 199, 0.2);
}

.hem-page .btn-style-two {
    background: #fff;
    border-color: var(--hem-line);
    color: var(--hem-blue-dark);
}

.hem-page .theme-btn:hover,
.hem-page .theme-btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.hem-page .btn-style-one:hover,
.hem-page .btn-style-one:focus-visible {
    background: var(--hem-blue-dark);
}

.hem-page .btn-style-two:hover,
.hem-page .btn-style-two:focus-visible {
    background: #eef7ff;
    color: var(--hem-blue-dark);
}

.hem-page .btn-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hem-page .btn-wrap .text-two {
    display: none;
}

.hem-hero-media,
.hem-media {
    margin: 0;
    border: 1px solid var(--hem-line);
    border-radius: 8px;
    background: var(--hem-white);
    box-shadow: 0 18px 45px rgba(18, 46, 76, 0.09);
    overflow: hidden;
}

.hem-hero-media img,
.hem-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hem-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--hem-line);
    border-bottom: 1px solid var(--hem-line);
    backdrop-filter: blur(10px);
}

.hem-nav-scroll {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.hem-nav a {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--hem-blue-dark);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.hem-nav a:hover,
.hem-nav a:focus-visible {
    background: #eaf4ff;
    color: var(--hem-blue);
}

.hem-head {
    max-width: 780px;
    margin-bottom: 28px;
}

.hem-head-wide {
    max-width: 930px;
}

.hem-head p {
    margin-bottom: 0;
}

.hem-symptoms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hem-symptoms article,
.hem-step-row article,
.hem-method-grid article {
    border: 1px solid var(--hem-line);
    border-radius: 8px;
    background: #fff;
}

.hem-symptoms article {
    padding: 20px;
    min-height: 218px;
}

.hem-symptoms b,
.hem-step-row b,
.hem-method-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--hem-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.hem-symptoms p,
.hem-step-row p,
.hem-method-grid p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.hem-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 4px solid var(--hem-green);
    border-radius: 8px;
    background: var(--hem-soft);
    color: var(--hem-muted);
    font-size: 16px;
    line-height: 1.6;
}

.hem-note strong {
    color: var(--hem-ink);
}

.hem-diagnosis {
    background: var(--hem-soft);
}

.hem-two {
    display: grid;
    grid-template-columns: minmax(350px, 0.88fr) minmax(0, 1.12fr);
    gap: 42px;
    align-items: center;
}

.hem-copy p {
    margin: 0 0 22px;
}

.hem-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.hem-check-list span {
    min-height: 76px;
    padding: 16px 16px 16px 42px;
    border: 1px solid var(--hem-line);
    border-radius: 8px;
    background: #fff;
    color: var(--hem-ink);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    position: relative;
}

.hem-check-list span::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 17px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--hem-green);
    border-radius: 999px;
}

.hem-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--hem-blue);
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hem-text-link:hover,
.hem-text-link:focus-visible {
    color: #fff;
    background: var(--hem-blue-dark);
    transform: translateY(-1px);
}

.hem-text-link-muted {
    background: #e9f3fb;
    color: var(--hem-blue-dark);
}

.hem-text-link-muted:hover,
.hem-text-link-muted:focus-visible {
    background: #dcecf9;
    color: var(--hem-blue-dark);
}

.hem-methods-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

.hem-methods-lead {
    display: flex;
    flex-direction: column;
}

.hem-methods-lead p {
    margin: 0 0 22px;
}

.hem-methods-image {
    margin-top: auto;
}

.hem-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hem-method-grid article {
    padding: 22px;
    min-height: 238px;
    border-left: 4px solid var(--hem-green);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hem-method-grid article:nth-child(even) {
    border-left-color: var(--hem-blue);
}

.hem-method-grid article:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(20, 34, 56, 0.08);
}

.hem-method-grid a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--hem-blue);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.hem-method-grid a:hover {
    color: var(--hem-blue-dark);
    text-decoration: underline;
}

.hem-steps {
    background: linear-gradient(180deg, #fff 0%, #f5f9fd 100%);
}

.hem-step-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hem-step-row article {
    min-height: 210px;
    padding: 20px;
}

.hem-sale {
    padding: 36px 0;
}

.hem-sale-box,
.hem-final-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f3764 0%, #1269c7 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hem-sale-box::after,
.hem-final-box::after {
    content: "";
    position: absolute;
    inset: auto -70px -120px auto;
    width: 240px;
    height: 240px;
    border: 34px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.hem-sale-box > *,
.hem-final-box > * {
    position: relative;
    z-index: 1;
}

.hem-sale-box .hem-kicker,
.hem-final-box .hem-kicker,
.hem-sale-box .hem-kicker::before,
.hem-final-box .hem-kicker::before {
    color: #fff;
}

.hem-sale-box .hem-kicker::before,
.hem-final-box .hem-kicker::before {
    background: #fff;
}

.hem-sale-box h2,
.hem-final-box h2,
.hem-sale-box p,
.hem-final-box p {
    color: #fff;
}

.hem-sale-box h2,
.hem-final-box h2 {
    margin-bottom: 10px;
}

.hem-sale-box p,
.hem-final-box p {
    max-width: 720px;
    margin: 0;
    opacity: 0.92;
}

.hem-related-prices {
    margin-top: 20px;
}

.hem-links {
    background: var(--hem-soft);
}

.hem-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hem-link-grid a {
    min-height: 88px;
    padding: 18px;
    border: 1px solid var(--hem-line);
    border-radius: 8px;
    background: #fff;
    color: var(--hem-blue-dark);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hem-link-grid a:hover,
.hem-link-grid a:focus-visible {
    border-color: var(--hem-blue);
    color: var(--hem-blue);
    transform: translateY(-2px);
}

.hem-faq-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 34px;
    align-items: start;
}

.hem-faq-intro {
    position: sticky;
    top: 78px;
}

.hem-faq-intro p {
    margin-bottom: 0;
}

.hem-accordion {
    display: grid;
    gap: 12px;
}

.hem-accordion details {
    border: 1px solid var(--hem-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.hem-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 18px 22px;
    color: var(--hem-ink);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.hem-accordion summary::-webkit-details-marker {
    display: none;
}

.hem-accordion summary::after {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--hem-blue);
    border-bottom: 2px solid var(--hem-blue);
    transform: rotate(45deg);
    transition: transform 0.24s ease;
}

.hem-accordion details[open] summary::after {
    transform: rotate(225deg);
}

.hem-accordion details > div {
    height: 0;
    overflow: hidden;
}

.hem-accordion details.hem-ready > div {
    transition: height 0.28s ease;
}

.hem-accordion details > div > p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 16px;
}

.hem-final {
    padding-top: 30px;
}

.hem-final-box {
    display: block;
    text-align: center;
}

.hem-final-box p {
    margin: 0 auto 22px;
}

.hem-final-box .hem-actions {
    justify-content: center;
}

@media (max-width: 1100px) {
    .hem-hero-grid,
    .hem-two,
    .hem-methods-layout {
        grid-template-columns: 1fr;
    }

    .hem-hero-media,
    .hem-media {
        max-width: 760px;
    }

    .hem-symptoms,
    .hem-step-row,
    .hem-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hem-wrap {
        width: min(100% - 22px, 1180px);
    }

    .hem-section {
        padding: 38px 0;
    }

    .hem-hero {
        padding-top: 34px;
    }

    .hem-page h1 {
        font-size: 30px;
        line-height: 1.08;
    }

    .hem-page h2 {
        font-size: 28px;
    }

    .hem-page p,
    .hem-lead {
        font-size: 16px;
        line-height: 1.62;
    }

    .hem-quick,
    .hem-check-list,
    .hem-method-grid,
    .hem-symptoms,
    .hem-step-row,
    .hem-link-grid,
    .hem-faq-grid {
        grid-template-columns: 1fr;
    }

    .hem-quick span,
    .hem-check-list span {
        min-height: 0;
    }

    .hem-sale-box {
        display: block;
        padding: 24px;
    }

    .hem-sale-box .theme-btn {
        margin-top: 20px;
    }

    .hem-faq-intro {
        position: static;
    }

    .hem-accordion summary {
        min-height: 58px;
        padding: 16px 18px;
        font-size: 16px;
    }

    .hem-accordion details > div > p {
        padding: 0 18px 18px;
    }

    .hem-actions .theme-btn,
    .hem-sale-box .theme-btn,
    .hem-final-box .theme-btn {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hem-page *,
    .hem-page *::before,
    .hem-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
/* Proctology SEO shell alignment: make the first SEO block behave like gynecology pages. */
.svc-page,
.hem-page,
.lig-page,
.sclass-visit-page,
.sclass-procto-seo {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.svc-page .svc-hero,
.hem-page .hem-hero,
.lig-page .lig-hero,
.sclass-visit-page .visit-hero,
.sclass-procto-seo .sprocto-hero {
    padding-top: 48px;
    background: linear-gradient(180deg, #f2f8fe 0%, #ffffff 100%);
}

.svc-page h1,
.hem-page h1,
.lig-page h1,
.sclass-visit-page .visit-hero h1,
.sclass-procto-seo .sprocto-hero h1 {
    font-size: 36px;
    line-height: 1.14;
}

@media (max-width: 760px) {
    .svc-page h1,
    .hem-page h1,
    .lig-page h1,
    .sclass-visit-page .visit-hero h1,
    .sclass-procto-seo .sprocto-hero h1 {
        font-size: 27px;
        line-height: 1.12;
    }
}

/* Proctology alternating section bands: match the gynecology visual rhythm. */
.svc-page > section.svc-section:nth-of-type(odd),
.hem-page > section.hem-section:nth-of-type(odd),
.lig-page > section.lig-section:nth-of-type(odd),
.sclass-visit-page > section.visit-section:nth-of-type(odd),
.sclass-procto-seo > section.sprocto-section:nth-of-type(odd) {
    background: #fff;
}

.svc-page > section.svc-section:nth-of-type(even),
.hem-page > section.hem-section:nth-of-type(even),
.lig-page > section.lig-section:nth-of-type(even),
.sclass-visit-page > section.visit-section:nth-of-type(even),
.sclass-procto-seo > section.sprocto-section:nth-of-type(even),
.svc-page .svc-soft,
.svc-page .svc-links,
.hem-page .hem-soft,
.hem-page .hem-links,
.lig-page .lig-soft,
.lig-page .lig-links,
.sclass-visit-page .visit-soft,
.sclass-procto-seo .sprocto-band,
.sclass-procto-seo .sprocto-links {
    background: #f3f8fd;
}

.svc-page .svc-hero,
.hem-page .hem-hero,
.lig-page .lig-hero,
.sclass-visit-page .visit-hero,
.sclass-procto-seo .sprocto-hero {
    background: linear-gradient(180deg, #f2f8fe 0%, #fff 100%);
}

.svc-page article,
.hem-page article,
.lig-page article,
.sclass-visit-page article,
.sclass-procto-seo article,
.svc-page .svc-card-accent,
.hem-page .hem-card-accent,
.lig-page .lig-card-accent,
.sclass-visit-page .visit-card,
.sclass-procto-seo .sprocto-card,
.sclass-procto-seo .sprocto-service-card {
    background-color: #fff;
}

/* SEO page overflow fix: avoid 100vw negative-margin horizontal scroll inside the site layout. */
.svc-page,
.hem-page,
.lig-page,
.sclass-visit-page,
.sclass-procto-seo,
.gyn-page,
.gm-page,
.uro-page,
.gastro-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .svc-page,
    .hem-page,
    .lig-page,
    .sclass-visit-page,
    .sclass-procto-seo,
    .gyn-page,
    .gm-page,
    .uro-page,
    .gastro-page {
        overflow-x: hidden;
    }
}

.svc-wrap,
.hem-wrap,
.lig-wrap,
.visit-wrap,
.sprocto-wrap,
.gyn-wrap,
.gm-wrap,
.uro-wrap,
.gas-wrap {
    max-width: calc(100% - 22px);
}
