:root {
    --sg-control-height: 56px;
}

body.sg-modal-open {
    overflow: hidden;
}

.sg-header {
    background: var(--sg-bg);
}

.sg-header__inner {
    gap: 22px;
}

.sg-nav--stage8 {
    gap: 18px;
}

.sg-nav__group {
    position: relative;
    display: flex;
    align-items: center;
}

.sg-nav__top {
    position: relative;
}

.sg-nav__top.is-current,
.sg-nav__group.is-current > .sg-nav__top,
.sg-nav__top[aria-current="page"],
.sg-nav__dropdown a[aria-current="page"] {
    color: var(--sg-accent-dark);
}

.sg-nav__toggle {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sg-text-soft);
    cursor: pointer;
}

.sg-nav__toggle span {
    display: block;
    transform: translateY(-1px);
    transition: transform .18s ease;
}

.sg-nav__toggle[aria-expanded="true"] span,
.sg-nav__group.is-open .sg-nav__toggle span {
    transform: translateY(1px) rotate(180deg);
}

.sg-nav__dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: -18px;
    z-index: 20;
    display: grid;
    width: 320px;
    padding: 10px 18px;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius-sm);
    background: var(--sg-surface);
    box-shadow: var(--sg-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.sg-nav__dropdown::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 18px;
    content: "";
}

.sg-nav__dropdown a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--sg-line);
    color: var(--sg-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.sg-nav__dropdown a:last-child {
    border-bottom: 0;
}

.sg-nav__dropdown a::after {
    display: none;
}

.sg-nav__group:hover .sg-nav__dropdown,
.sg-nav__group:focus-within .sg-nav__dropdown,
.sg-nav__group.is-open .sg-nav__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.sg-header__actions > .sg-btn {
    white-space: nowrap;
}

.sg-mobile-menu__group {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sg-line);
}

.sg-mobile-menu__nav .sg-mobile-menu__primary {
    display: block;
    padding: 15px 0;
    border-bottom: 0;
    font-size: 22px;
    font-weight: 680;
    line-height: 1.15;
}

.sg-mobile-menu__subnav {
    display: grid;
    padding: 0 0 8px 20px;
}

.sg-mobile-menu__subnav a {
    padding: 10px 0;
    border-bottom: 0;
    color: var(--sg-text-soft);
    font-size: 16px;
    font-weight: 580;
    line-height: 1.35;
}

.sg-mobile-menu__inner > .sg-btn {
    width: 100%;
}

.sg-footer--stage8 {
    background: var(--sg-surface-dark);
    color: var(--sg-surface);
}

.sg-footer__grid--stage8 {
    grid-template-columns: minmax(280px, 4fr) minmax(180px, 2.2fr) minmax(220px, 2.8fr) minmax(220px, 2.5fr);
    gap: 46px;
}

.sg-footer__column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.sg-footer__column h3 {
    margin: 0 0 8px;
    color: var(--sg-surface);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.sg-footer__column a,
.sg-footer__column span {
    color: var(--sg-metal-light);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.sg-footer__column a:hover {
    color: var(--sg-surface);
}

.sg-footer__phone-stage8 {
    color: var(--sg-surface) !important;
    font-size: 20px !important;
    font-weight: 650;
    letter-spacing: -.02em;
}

.sg-form-submit {
    display: grid;
    grid-template-rows: 17px var(--sg-control-height) 17px;
    gap: 7px;
}

.sg-form-submit::before,
.sg-form-submit::after {
    display: block;
    min-height: 17px;
    content: "";
}

.sg-form-submit .sg-btn {
    width: 100%;
    min-height: var(--sg-control-height);
    height: var(--sg-control-height);
}

.sg-field {
    grid-template-rows: 17px var(--sg-control-height) 17px;
    gap: 7px;
}

.sg-field > span {
    min-height: 17px;
    line-height: 17px;
}

.sg-field input {
    min-height: var(--sg-control-height);
    height: var(--sg-control-height);
    background: var(--sg-surface);
}

.sg-field__error {
    min-height: 17px;
    line-height: 17px;
}

.sg-form-legal a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.sg-seo-context-cta__form .sg-lead-form,
.sg-seo-final__form .sg-lead-form,
.sg-final-x__form .sg-lead-form {
    align-items: start;
}

.sg-home-deep-link {
    margin-top: 26px;
}

.sg-pricing-x__receipt .sg-home-deep-link {
    justify-self: start;
    margin-top: 16px;
}

.sg-modal {
    width: min(920px, calc(100% - 40px));
    max-width: none;
    max-height: min(760px, calc(100vh - 40px));
    padding: 0;
    border: 0;
    border-radius: var(--sg-radius-md);
    background: var(--sg-surface);
    color: var(--sg-text);
    box-shadow: var(--sg-shadow);
}

.sg-modal::backdrop {
    background: var(--sg-surface-dark);
    opacity: .72;
}

.sg-modal__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(420px, 7fr);
    gap: 52px;
    padding: 44px;
}

.sg-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--sg-line);
    border-radius: 50%;
    background: transparent;
    color: var(--sg-text);
    cursor: pointer;
    font-size: 26px;
    font-weight: 300;
}

.sg-modal__kicker,
.sg-legal-kicker,
.sg-utility-code {
    display: block;
    color: var(--sg-accent-dark);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sg-modal__copy h2 {
    margin: 16px 0 0;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 590;
    line-height: 1;
    letter-spacing: -.05em;
}

.sg-modal__copy p {
    margin: 24px 0 0;
    color: var(--sg-text-soft);
    font-size: 15px;
    line-height: 1.65;
}

.sg-modal__form .sg-lead-form {
    grid-template-columns: 1fr;
}

.sg-modal__form .sg-form-submit {
    grid-template-rows: var(--sg-control-height);
    gap: 0;
}

.sg-modal__form .sg-form-submit::before,
.sg-modal__form .sg-form-submit::after {
    display: none;
}

.sg-breadcrumbs,
.sg-breadcrumbs .rank-math-breadcrumb p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: var(--sg-text-soft);
    font-size: 12px;
    line-height: 1.4;
}

.sg-breadcrumbs a,
.sg-breadcrumbs .rank-math-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.sg-legal-hero {
    padding: 34px 0 72px;
    border-bottom: 1px solid var(--sg-line);
}

.sg-legal-hero .sg-legal-kicker {
    margin-top: 54px;
}

.sg-legal-hero h1 {
    max-width: 980px;
    margin: 16px 0 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 580;
    line-height: .98;
    letter-spacing: -.055em;
}

.sg-legal-body {
    padding: 78px 0 110px;
}

.sg-legal-document {
    width: min(820px, 100%);
    margin-inline: auto;
}

.sg-legal-document h2 {
    margin: 54px 0 18px;
    font-size: 30px;
    font-weight: 620;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.sg-legal-document h3 {
    margin: 34px 0 14px;
    font-size: 21px;
}

.sg-legal-document p,
.sg-legal-document li {
    color: var(--sg-text-soft);
    font-size: 17px;
    line-height: 1.72;
}

.sg-legal-document ul,
.sg-legal-document ol {
    padding-left: 22px;
}

.sg-admin-legal-note {
    margin-top: 56px;
    padding: 18px 20px;
    border-left: 3px solid var(--sg-accent);
    background: var(--sg-accent-soft);
    color: var(--sg-text);
    font-size: 13px;
}

.sg-utility-hero {
    display: flex;
    min-height: 66vh;
    align-items: center;
    padding: 80px 0;
}

.sg-utility-hero__inner {
    max-width: 920px;
}

.sg-utility-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(54px, 7vw, 96px);
    font-weight: 580;
    line-height: .95;
    letter-spacing: -.06em;
}

.sg-utility-hero p {
    max-width: 700px;
    margin: 28px 0 0;
    color: var(--sg-text-soft);
    font-size: 18px;
    line-height: 1.65;
}

.sg-utility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 34px;
}

.sg-utility-hero__inner > .sg-btn {
    margin-top: 34px;
}

.sg-hero-x.sg-key-motion h1,
.sg-hero-x.sg-key-motion .sg-hero-x__lead,
.sg-hero-x.sg-key-motion .sg-hero-x__expert {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .52s ease, transform .52s ease;
}

.sg-hero-x.sg-key-motion.is-key-visible h1,
.sg-hero-x.sg-key-motion.is-key-visible .sg-hero-x__lead,
.sg-hero-x.sg-key-motion.is-key-visible .sg-hero-x__expert {
    opacity: 1;
    transform: none;
}

.sg-final-x.sg-key-motion .sg-final-x__copy,
.sg-final-x.sg-key-motion .sg-final-x__form {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .52s ease, transform .52s ease;
}

.sg-final-x.sg-key-motion.is-key-visible .sg-final-x__copy,
.sg-final-x.sg-key-motion.is-key-visible .sg-final-x__form {
    opacity: 1;
    transform: none;
}

@media (max-width: 1180px) {
    .sg-header__phone span {
        display: none;
    }

    .sg-nav--stage8 {
        gap: 12px;
        margin-left: 18px;
    }

    .sg-footer__grid--stage8 {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .sg-footer__contact-stage8 {
        grid-column: 2 / -1;
    }
}

@media (max-width: 980px) {
    .sg-seo-context-cta__form .sg-form-submit,
    .sg-seo-final__form .sg-form-submit,
    .sg-final-x__form .sg-form-submit {
        grid-column: 1 / -1;
    }

    .sg-nav--stage8,
    .sg-header__actions {
        display: none;
    }

    .sg-burger {
        display: block;
    }

    .sg-footer__grid--stage8 {
        grid-template-columns: 1fr 1fr;
    }

    .sg-footer__brand,
    .sg-footer__contact-stage8 {
        grid-column: 1 / -1;
    }

    .sg-modal__panel {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 768px) {
    :root {
        --sg-control-height: 56px;
    }

    .sg-field {
        grid-template-rows: 17px var(--sg-control-height) 17px;
    }

    .sg-form-submit {
        grid-template-rows: var(--sg-control-height);
        gap: 0;
    }

    .sg-form-submit::before,
    .sg-form-submit::after {
        display: none;
    }

    .sg-seo-context-cta__form .sg-lead-form,
    .sg-seo-final__form .sg-lead-form,
    .sg-final-x__form .sg-lead-form {
        grid-template-columns: 1fr;
    }

    .sg-footer__grid--stage8 {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .sg-footer__brand,
    .sg-footer__contact-stage8 {
        grid-column: auto;
    }

    .sg-footer__bottom {
        flex-direction: column;
    }

    .sg-modal {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
    }

    .sg-modal__panel {
        padding: 34px 22px 24px;
    }

    .sg-modal__close {
        top: 12px;
        right: 12px;
    }

    .sg-modal__copy h2 {
        padding-right: 36px;
        font-size: 38px;
    }

    .sg-legal-hero {
        padding: 22px 0 54px;
    }

    .sg-legal-hero .sg-legal-kicker {
        margin-top: 38px;
    }

    .sg-legal-hero h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .sg-legal-body {
        padding: 54px 0 78px;
    }

    .sg-legal-document p,
    .sg-legal-document li {
        font-size: 16px;
    }

    .sg-utility-hero {
        min-height: 62vh;
        padding: 64px 0;
    }

    .sg-utility-hero h1 {
        font-size: clamp(48px, 14vw, 66px);
    }

    .sg-utility-hero p {
        font-size: 16px;
    }

    .sg-utility-actions {
        display: grid;
    }

    .sg-utility-actions .sg-btn,
    .sg-utility-actions .sg-text-link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-hero-x.sg-key-motion *,
    .sg-final-x.sg-key-motion * {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .sg-hero-x.sg-key-motion h1,
    .sg-hero-x.sg-key-motion .sg-hero-x__lead,
    .sg-hero-x.sg-key-motion .sg-hero-x__expert,
    .sg-final-x.sg-key-motion .sg-final-x__copy,
    .sg-final-x.sg-key-motion .sg-final-x__form {
        opacity: 1 !important;
        transform: none !important;
    }
}
