/* ==========================================================================
   contract.css — styles for the contract page (contract.html)
   Split out of style.css. Loaded AFTER style.css, so these rules win on this page.
   Shared blocks are copies here; the originals stay in style.css for other pages.
   ========================================================================== */

/* ========== Contract Template ========== */
.contract-template {
    background: #fff;
}
.contract-hero {
    padding: 76px 0 72px;
    text-align: center;
}
.contract-hero h1 {
    margin: 0 0 18px;
    color: #222733;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 0;
}
.contract-hero p {
    margin: 0;
    color: #303642;
    font-size: 21px;
    font-weight: 500;
}
.contract-content {
    padding: 0 0 48px;
}
.contract-inner {
    max-width: 1400px;
}
.contract-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 56px;
    margin-bottom: 54px;
}
.contract-group {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contract-group h2 {
    margin: 0 0 44px;
    color: #0618f1;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
}
.contract-group h2 a {
    display: inline-flex;
    min-height: 0;
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    transition: color .16s, transform .16s;
}
.contract-group h2 a:hover,
.contract-group.is-active h2 a {
    color: #f03f73;
}
.contract-group a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-bottom: 58px;
    color: #0618f1;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    transition: color .16s, transform .16s;
}
.contract-group a:hover {
    color: #f03f73;
    transform: translateY(-1px);
}
.contract-group a.is-active {
    color: #f03f73;
}
.contract-group a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: transparent;
}
.contract-display {
    min-height: 560px;
    background: #e9eaec;
    box-shadow: 0 0 16px rgba(14, 17, 24, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}
.contract-display.has-content {
    align-items: flex-start;
    text-align: left;
    background: #fff;
    box-shadow: none;
    min-height: 0;
    padding: 0;
}
.contract-display-copy h2 {
    margin: 0 0 4px;
    color: #0618f1;
    font-size: 21px;
    font-weight: 900;
}
.contract-display.has-content .contract-display-copy {
    width: 100%;
}
.contract-display-body {
    color: #20242d;
    font-size: 15px;
    line-height: 1.75;
}
.contract-display-body p {
    margin: 0;
}
.contract-display-body img {
    display: block;
    width: 100% !important;
    max-width: none;
    height: auto;
    margin: 0;
    cursor: zoom-in;
}
.contract-display-body br {
    display: none;
}
.contract-lightbox-open {
    overflow: hidden;
}
.contract-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
    background: rgba(0, 0, 0, .82);
}
.contract-lightbox.is-open {
    display: flex;
}
.contract-lightbox img {
    display: block;
    max-width: min(96vw, 1680px);
    max-height: 90vh;
    width: auto;
    height: auto;
    background: #fff;
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform .16s ease;
    will-change: transform;
}
.contract-lightbox img.is-zoomed {
    cursor: zoom-out;
}
.contract-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.contract-display-copy p {
    margin: 0;
    color: #333844;
    font-size: 13px;
    font-weight: 700;
}
/* ========== Responsive ========== */
@media (max-width: 860px) {
    .contract-hero {
        padding: 58px 0 50px;
    }

    .contract-hero h1 {
        font-size: 32px;
    }

    .contract-hero p {
        font-size: 17px;
    }

    .contract-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
        margin-bottom: 36px;
    }

    .contract-group {
        min-height: 0;
        align-items: flex-start;
        padding: 18px 16px;
        border: 1px solid var(--ink-100);
        border-radius: 8px;
    }

    .contract-group h2 {
        margin-bottom: 18px;
        font-size: 25px;
    }

    .contract-group a {
        min-height: 30px;
        margin-bottom: 14px;
        font-size: 17px;
    }

    .contract-display {
        min-height: 360px;
    }
}
@media (max-width: 560px) {
    .contract-hero {
        padding: 44px 0 34px;
    }

    .contract-hero h1 {
        font-size: 30px;
    }

    .contract-hero p {
        font-size: 15px;
    }

    .contract-nav {
        grid-template-columns: 1fr;
    }

    .contract-display {
        min-height: 280px;
    }

    .contract-display-copy h2 {
        font-size: 18px;
    }
}
@media (max-width: 860px) {
    .contract-template .contract-content {
        padding: 0 0 32px;
    }

    .contract-template .contract-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contract-hero h1 {
        margin-bottom: 12px;
    }

    .contract-group {
        background: #fff;
        box-shadow: 0 2px 8px rgba(14, 17, 24, .04);
    }

    .contract-group h2,
    .contract-group a {
        text-align: center;
        width: clamp(51px, 13.52vw, 146px);
    }

    .contract-group h2 a,
    .contract-group a {
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.3;
    }

    .contract-group a {
        min-height: 40px;
        padding: 4px 6px;
    }

    .contract-group a.is-active::after {
        left: 6px;
        right: 6px;
        bottom: 0;
    }

    .contract-display {
        padding: 36px 18px;
        box-shadow: 0 0 10px rgba(14, 17, 24, .12);
    }

    .contract-display-copy h2 {
        font-size: 19px;
        line-height: 1.35;
        word-break: break-word;
    }

    .contract-display-copy p {
        font-size: 12px;
        line-height: 1.5;
        margin-top: 6px;
    }
}
@media (max-width: 560px) {
    .contract-hero h1 {
        margin-bottom: 10px;
    }

    .contract-group {
        align-items: stretch;
        padding: 14px 14px 6px;
    }

    .contract-group h2 {
        margin-bottom: 12px;
        font-size: 22px;
        text-align: left;
    }

    .contract-group a {
        display: inline-flex;
        width: auto;
        margin: 0 14px 10px 0;
        min-height: 32px;
        font-size: 16px;
        text-align: left;
        padding: 2px 2px;
    }

    .contract-group a.is-active::after {
        left: 2px;
        right: 2px;
    }

    .contract-display {
        padding: 28px 14px;
        min-height: 240px;
    }

    .contract-display-copy h2 {
        font-size: 17px;
    }

    .contract-display-copy p {
        font-size: 11px;
        margin-top: 4px;
    }

    .contract-display.has-content {
        padding: 0;
        min-height: 0;
    }

    .contract-lightbox {
        padding: 12px;
    }

    .contract-lightbox img {
        max-width: min(92vh, 1680px);
        max-height: 94vw;
        transform: rotate(90deg);
    }

    .contract-lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 27px;
    }
}
/* ============================================================
 * Final mobile overrides: keep this block at the end of the file.
 * ============================================================ */
.contract-mobile-nav {
    display: none;
}
.contract-desktop-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 56px;
    margin-bottom: 54px;
}
.contract-nav {
    display: block;
    margin-bottom: 0;
}
@media (max-width: 860px) {
    .contract-template .contract-content {
        padding-bottom: 34px;
    }

    .contract-hero {
        padding: 36px 0 24px;
    }

    .contract-hero h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .contract-hero p {
        font-size: 14px;
    }

    .contract-desktop-nav {
        display: none;
    }

    .contract-mobile-nav {
        display: block;
        margin-bottom: 24px;
    }

    .contract-mobile-primary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .contract-mobile-primary a {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 9px 6px;
        border-radius: 999px;
        background: #f3f6fb;
        color: #2a2f3a;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
    }

    .contract-mobile-primary a.is-active {
        background: #1b4fe0;
        color: #fff;
        box-shadow: 0 6px 14px rgba(27, 79, 224, .18);
    }

    .contract-mobile-secondary {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        padding: 12px;
        border-radius: 12px;
        background: #f7f9fc;
    }

    .contract-mobile-secondary.is-active {
        display: flex;
    }

    .contract-mobile-secondary a {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        border-radius: 999px;
        background: #fff;
        color: #3f4654;
        font-size: 14px;
        font-weight: 700;
        border: 1px solid #e5e9f2;
    }

    .contract-mobile-secondary a.is-active {
        color: #f03f73;
        border-color: rgba(240, 63, 115, .3);
        background: rgba(240, 63, 115, .08);
    }

    .contract-display {
        min-height: 220px;
        padding: 0;
        box-shadow: none;
        background: #fff;
    }

    .contract-display-body img {
        width: 100% !important;
        border-radius: 0;
    }
}
@media (max-width: 560px) {
    .contract-group {
        gap: 6px;
    }

    .contract-group h2 {
        flex-basis: clamp(14px, 3.61vw, 39px);
    }

    .contract-group h2 a {
        font-size: 14px;
        padding: 8px 6px;
    }

    .contract-group a {
        font-size: 13px;
        padding: 7px 10px;
        margin-right: 4px;
    }

    .contract-display {
        min-height: 180px;
    }
}
/* ========== Lanhu page restore: download / contract / academy content only ========== */
body .software-template,
body .contract-template,
body .academy-list-template {
    --restore-blue: #044ff6;
    --restore-blue-2: #2051ff;
    --restore-text: #111827;
    --restore-muted: #6c788b;
    --restore-page: #eef2f5;
    --restore-line: #8cafed;
    background: var(--restore-page);
    font-family: MiSans, "Noto Sans SC", var(--font-sans);
}
body .contract-hero,
body .academy-hero {
    position: relative;
    height: 360px;
    min-height: 360px;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 13% 9%, rgba(83, 121, 255, .62) 0 120px, transparent 121px),
        radial-gradient(circle at 18% 19%, rgba(83, 121, 255, .42) 0 42px, transparent 43px),
        linear-gradient(180deg, #0757ff 0%, #044ff6 100%);
}
body .contract-hero::before,
body .academy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 74%, rgba(255, 255, 255, .08) 74% 74.2%, transparent 74.2% 100%),
        linear-gradient(180deg, transparent 0 68%, rgba(143, 202, 255, .24) 68% 100%);
    opacity: .55;
}
body .contract-hero::after,
body .academy-hero::after {
    content: "";
    position: absolute;
    right: calc(50% - 820px);
    top: 0;
    width: 560px;
    height: 360px;
    background: url("../img/page-restore/contract-hero-object.png") center / contain no-repeat;
    opacity: .95;
}
body .contract-hero .container,
body .academy-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    height: 360px;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
body .contract-hero h1,
body .academy-hero h1 {
    margin: 0 0 32px;
    color: #fff;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
}
body .contract-hero p,
body .academy-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}
body .contract-template .contract-content {
    padding: clamp(51px, 4.69vw, 90px) 0 0;
    background: #f3f6f8;
}
body .contract-template .contract-inner {
    max-width: 1204px;
    padding: 0;
}
body .contract-desktop-nav {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(25px, 2.29vw, 44px);
    margin-bottom: clamp(47px, 4.32vw, 83px);
}
body .contract-mobile-nav {
    display: none;
}
body .contract-nav {
    width: 100%;
    margin: 0;
}
body .contract-group {
    min-width: clamp(107px, 9.9vw, 190px);
    min-height: 0;
    padding: 0;
    text-align: center;
    background: transparent;
    box-shadow: none;
}
body .contract-group h2 {
    margin: 0 0 0;
    font-size: 24px;
    line-height: 1;
}
body .contract-group h2 a {
    display: inline-flex;
    width: clamp(107px, 9.9vw, 190px);
    height: clamp(39px, 3.59vw, 69px);
    align-items: center;
    justify-content: center;
    color: var(--restore-blue);
    font-size: clamp(14px, 1.25vw, 24px);
    font-weight: 500;
    gap: clamp(4px, 0.36vw, 7px);
    border: 1px solid #044FF6;
    border-radius: 999px;
    background: transparent;
    margin-bottom: 0;
}
body .contract-group.has-children h2 a::after,
body .contract-mobile-primary a[data-contract-toggle]::after {
    content: "";
    display: block;
    position: static;
    inset: auto;
    flex: 0 0 auto;
    width: 11px;
    height: 7px;
    background: url("../img/contract/contract-nav-arrow.webp") center / contain no-repeat;
    transition: background-image .16s ease;
}
body .contract-group.has-children h2 a:hover::after,
body .contract-group.has-children h2 a.is-active::after,
body .contract-group.is-active.has-children h2 a::after,
body .contract-mobile-primary a[data-contract-toggle]:hover::after,
body .contract-mobile-primary a[data-contract-toggle].is-active::after {
    background-image: url("../img/contract/contract-nav-arrow-active.webp");
}
body .contract-group.has-children h2 a.is-open::after,
body .contract-mobile-primary a[data-contract-toggle].is-open::after {
    transform: none;
}
body .contract-group h2 a:hover,
body .contract-group h2 a.is-active,
body .contract-group.is-active h2 a {
    color: #fff;
    background: var(--restore-blue);
    border-color: var(--restore-blue);
    box-shadow: 0 10px 22px rgba(4, 79, 246, .18);
    text-decoration: none;
}
body .contract-group a {
    display: block;
    min-height: 0;
    margin: 0 0 clamp(25px, 2.34vw, 45px);
    padding: 0;
    color: #686E7F;
    font-size: clamp(11px, 1.04vw, 20px);
    font-weight: 500;
    line-height: 1.2;
}

body .contract-group a:nth-last-child(1) {
    margin-bottom: 0;
}

body .contract-submenu {
    display: none;
}
body .contract-group.is-open .contract-submenu {
    display: block;
}
body .contract-group.is-open h2 a {
    margin-bottom: clamp(28px, 2.6vw, 50px);
}
body .contract-group a:hover,
body .contract-group a.is-active {
    color: #044FF6;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}
body .contract-submenu a.is-active::after {
    display: none;
}
body .contract-display {
    display: flex;
    width: clamp(678px, 62.71vw, 1204px);
    max-width: 100%;
    min-height: 554px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 48px;
    background: #e4e5e7;
    border-radius: 0;
    box-shadow: none;
}
body .contract-display.has-content {
    align-items: flex-start;
    background: #fff;
}
body .contract-display-copy h2 {
    margin: 0 0 8px;
    color: var(--restore-blue);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
}
body .contract-display-copy p {
    margin: 0;
    color: #4d596b;
    font-size: 14px;
    font-weight: 700;
}
@media (max-width:1080px) {
    body .contract-hero,
    body .academy-hero,
    body .contract-hero .container,
    body .academy-hero .container {
        height: 260px;
        min-height: 260px;
    }

    body .contract-hero::after,
    body .academy-hero::after {
        right: -56px;
        top: 36px;
        width: 270px;
        height: 190px;
        opacity: .55;
    }

    body .contract-hero h1,
    body .academy-hero h1 {
        font-size: 32px;
    }

    body .contract-hero p,
    body .academy-hero p {
        font-size: 16px;
    }

    body .contract-template .contract-content,
    body .academy-list-section {
        min-height: 0;
        padding: 54px 0 58px;
    }

    body .contract-desktop-nav {
        display: none;
    }

    body .contract-mobile-nav {
        display: block;
        margin-bottom: 34px;
    }

    body .contract-mobile-primary a[data-contract-toggle] {
        gap: 6px;
    }

    body .contract-mobile-primary a[data-contract-toggle]::after {
        width: 7px;
        height: 7px;
    }

    body .contract-mobile-secondary.is-active {
        display: none;
    }

    body .contract-mobile-secondary.is-open {
        display: flex;
    }

    body .contract-display {
        min-height: 300px;
        padding: 32px 18px;
    }
}
@media (max-width:560px) {
    body .contract-hero,
    body .academy-hero,
    body .contract-hero .container,
    body .academy-hero .container {
        height: 220px;
        min-height: 220px;
    }

    body .contract-hero::after,
    body .academy-hero::after {
        right: -92px;
        width: 240px;
    }

    body .contract-hero h1,
    body .academy-hero h1 {
        font-size: 28px;
    }

    body .contract-hero p,
    body .academy-hero p {
        font-size: 14px;
    }

    body .contract-mobile-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ============================================================
 * Mobile final pass: navigation, CTA, content lists and detail pages
 * ============================================================ */
@media (max-width: 860px) {
    .contract-template .contract-content {
        padding-bottom: 34px;
    }

    .contract-hero {
        padding: 36px 0 24px;
    }

    .contract-hero h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .contract-hero p {
        font-size: 14px;
    }

    .contract-nav {
        display: flex;
        gap: 12px;
        margin: 0 -16px 24px;
        padding: 2px 16px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .contract-nav::-webkit-scrollbar {
        display: none;
    }

    .contract-group {
        flex: 0 0 210px;
        min-height: 0;
        align-items: stretch;
        padding: 14px;
        border-radius: 10px;
        scroll-snap-align: start;
        box-shadow: 0 4px 12px rgba(14, 17, 24, .08);
    }

    .contract-group h2 {
        margin: 0 0 12px;
        font-size: 20px;
    }

    .contract-group h2 a,
    .contract-group a {
        justify-content: flex-start;
        width: auto;
        min-height: 34px;
        margin: 0;
        padding: 6px 8px;
        border-radius: 6px;
        font-size: 15px;
    }

    .contract-group a.is-active {
        background: rgba(240, 63, 115, .1);
    }

    .contract-submenu a.is-active::after {
        display: none;
    }

    .contract-display {
        min-height: 220px;
        padding: 0;
        box-shadow: none;
        background: #fff;
    }

    .contract-display-body img {
        width: 100% !important;
        border-radius: 0;
    }
}
@media (max-width: 560px) {
    .contract-group {
        flex-basis: 76vw;
    }

    .contract-display {
        min-height: 180px;
    }
}

/* ========== Calendar-style image hero (overrides page-restore gradient hero) ========== */
body .contract-hero {
    height: 100%;
    min-height: 0;
    overflow: visible;
    padding: clamp(74px, 6.82vw, 131px) 0 clamp(65px, 5.99vw, 115px);
    text-align: center;
    background: url(../img/contract/contract-hero-bg.webp) center top / 100% auto no-repeat;
}
body .contract-hero::before,
body .contract-hero::after {
    display: none;
}
body .contract-hero .container {
    display: block;
    height: auto;
    min-height: 0;
}
body .contract-hero h1 {
    margin: 0 0 clamp(20px, 1.82vw, 35px);
    color: #fff;
    font-size: clamp(32px, 2.92vw, 56px);
    font-weight: 900;
    line-height: 1.1;
}
body .contract-hero p {
    margin: 0;
    color: #fff;
    font-size: clamp(14px, 1.25vw, 24px);
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 1079px) {
    body .contract-hero {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: clamp(98px, 26.2vw, 283px);
        padding: 0;
        overflow: hidden;
        text-align: center;
        background: url(../img/contract/contract-hero-mobile.webp) center top / cover no-repeat;
    }

    body .contract-hero::before,
    body .contract-hero::after {
        display: none;
    }

    body .contract-hero .container {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0 18px;
    }

    body .contract-hero h1 {
        margin: 0 0 clamp(11px, 2.87vw, 31px);
        color: #fff;
        font-size: clamp(19px, 5.19vw, 56px);
        font-weight: 800;
        line-height: 1.22;
        letter-spacing: 0;
    }

    body .contract-hero p {
        margin: 0;
        color: rgba(255, 255, 255, .9);
        font-size: clamp(11px, 2.96vw, 32px);
        font-weight: 400;
        line-height: 1.45;
    }
}

/* ========== Contract mobile content adaptation ========== */
@media (max-width: 1079px) {
    body .contract-template,
    body .contract-template .contract-content {
        background: #f3f6f8;
    }

    body .contract-template .contract-content {
        min-height: 0;
        padding: clamp(29px, 7.69vw, 83px) 0 clamp(13px, 3.43vw, 37px);
    }

    body .contract-template .contract-inner {
        width: 100%;
        max-width: 700px;
        padding-left: clamp(12px, 3.15vw, 34px);
        padding-right: clamp(12px, 3.15vw, 34px);
    }

    body .contract-nav {
        display: block;
        width: 100%;
        margin: 0 0 clamp(22px, 5.83vw, 63px);
        padding: 0;
        overflow: visible;
    }

    body .contract-mobile-nav {
        display: none;
    }

    body .contract-desktop-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: flex-start;
        justify-content: center;
        gap: clamp(15px, 3.89vw, 42px);
        width: 100%;
        margin: 0;
    }

    body .contract-group {
        display: flex;
        min-width: 0;
        min-height: 0;
        align-items: center;
        padding: 0;
        text-align: center;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body .contract-group h2 {
        margin: 0 0 clamp(14px, 3.61vw, 39px);
        color: #0955ff;
        font-size: clamp(8px, 2.22vw, 24px);
        font-weight: 700;
        line-height: 1;
    }

    body .contract-group h2 a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: clamp(51px, 13.7vw, 148px);
        min-width: clamp(51px, 13.7vw, 148px);
        min-height: clamp(24px, 6.48vw, 70px);
        height: clamp(24px, 6.48vw, 70px);
        margin: 0;
        padding: 0 clamp(10px, 2.59vw, 28px);
        border: 1px solid #5f8cff;
        border-radius: 999px;
        background: transparent;
        color: #0955ff;
        font-size: clamp(8px, 2.22vw, 24px);
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        box-shadow: none;
        transform: none;
    }

    body .contract-group.has-children h2 a {
        gap: clamp(3px, .93vw, 10px);
    }

    body .contract-group.has-children h2 a::after {
        width: clamp(7px, 1.76vw, 19px);
        height: clamp(4px, 1.11vw, 12px);
    }

    body .contract-group h2 a:hover,
    body .contract-group h2 a.is-active,
    body .contract-group.is-active h2 a {
        border-color: #0955ff;
        background: #0955ff;
        color: #fff;
        box-shadow: none;
        text-decoration: none;
        transform: none;
    }

    body .contract-submenu,
    body .contract-group.is-open .contract-submenu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(13px, 3.52vw, 38px);
        width: 100%;
    }

    body .contract-group h2 a,
    body .contract-group.is-open h2 a {
        margin-bottom: 0;
    }

    body .contract-group a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
        width: auto;
        margin: 0;
        padding: 0;
        color: #82889A;
        background: transparent;
        border: 0;
        border-radius: 0;
        font-size: clamp(7px, 1.85vw, 20px);
        font-weight: 500;
        line-height: 1;
        text-align: center;
        box-shadow: none;
        transform: none;
    }

    body .contract-submenu a:hover,
    body .contract-submenu a.is-active {
        color: #0955ff;
        background: transparent;
        text-decoration: none;
    }

    body .contract-submenu a.is-active::after {
        display: none;
    }

    body .contract-display {
        display: flex;
        width: 100%;
        min-height: clamp(296px, 77.22vw, 834px);
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        padding: clamp(24px, 6.48vw, 70px);
        background: #e4e5e7;
        border: 1px dashed #8f98a5;
        border-radius: 0;
        box-shadow: none;
        text-align: center;
    }

    body .contract-display.has-content {
        min-height: 0;
        align-items: flex-start;
        padding: 0;
        background: transparent;
        border: 0;
        text-align: left;
    }

    body .contract-display-copy h2 {
        margin: 0 0 clamp(4px, 1.11vw, 12px);
        color: #0955ff;
        font-size: clamp(10px, 2.59vw, 28px);
        font-weight: 800;
        line-height: 1.35;
    }

    body .contract-display-copy p {
        margin: 0;
        color: #4d596b;
        font-size: clamp(7px, 1.85vw, 20px);
        font-weight: 700;
        line-height: 1.35;
    }

    body .contract-display-body {
        width: 100%;
    }

    body .contract-display-body img {
        display: block;
        width: 100% !important;
        max-width: none;
        height: auto;
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 374px) {
    body .contract-template .contract-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    body .contract-desktop-nav {
        gap: 10px;
    }

    body .contract-group h2 a {
        width: 58px;
        min-width: 58px;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 11px;
    }

    body .contract-group a {
        font-size: 11px;
    }
}
