.sg-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--sg-accent);
    border-radius: var(--sg-radius-sm);
    background: var(--sg-accent);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 720;
    letter-spacing: -.01em;
    text-decoration: none;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.sg-btn:hover {
    border-color: var(--sg-accent-dark);
    background: var(--sg-accent-dark);
}

.sg-btn--compact {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 12px;
}

.sg-btn--ghost {
    border-color: var(--sg-line);
    background: transparent;
    color: var(--sg-text);
}

.sg-btn--ghost:hover {
    border-color: var(--sg-text);
    background: transparent;
    color: var(--sg-text);
}

.sg-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--sg-line);
    background: rgba(244, 243, 240, .97);
}

.sg-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 0;
}

.sg-logo {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding-right: 32px;
    text-decoration: none;
}

.sg-logo::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 34px;
    background: var(--sg-line);
    content: "";
    transform: translateY(-50%);
}

.sg-logo img {
    width: auto;
    max-width: 190px;
    max-height: 46px;
}

.sg-logo__mark {
    position: relative;
    width: 34px;
    height: 34px;
}

.sg-logo__mark i {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--sg-accent);
}

.sg-logo__mark i:first-child {
    top: 2px;
    left: 2px;
    border-right-color: transparent;
}

.sg-logo__mark i:last-child {
    right: 2px;
    bottom: 2px;
    border-left-color: transparent;
}

.sg-logo__text {
    display: flex;
    flex-direction: column;
    line-height: .95;
    text-transform: uppercase;
}

.sg-logo__text strong {
    font-size: 16px;
    letter-spacing: .035em;
}

.sg-logo__text small {
    margin-top: 6px;
    color: var(--sg-metal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
}

.sg-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 30px;
}

.sg-nav a {
    position: relative;
    color: #464c4d;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.sg-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--sg-accent);
    content: "";
    opacity: 0;
    transform: scaleX(.45);
    transform-origin: left;
    transition:
        opacity .18s ease,
        transform .18s ease;
}

.sg-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.sg-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.sg-header__phone {
    display: flex;
    flex-direction: column;
    text-align: right;
    text-decoration: none;
}

.sg-header__phone strong {
    font-size: 15px;
    line-height: 1.1;
}

.sg-header__phone span {
    margin-top: 4px;
    color: var(--sg-text-soft);
    font-size: 9px;
}

.sg-burger {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 10px 11px;
    border: 1px solid rgba(64, 86, 78, .2);
    border-radius: 8px;
    background: var(--sg-accent-soft);
    color: var(--sg-accent-dark);
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease;
}

.sg-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform .18s ease,
        opacity .18s ease;
}

.sg-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sg-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.sg-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.sg-mobile-menu {
    position: fixed;
    inset: 82px 0 0;
    z-index: 999;
    overflow: auto;
    border-top: 1px solid var(--sg-line);
    background: var(--sg-bg);
}

.sg-mobile-menu__inner {
    display: grid;
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 36px;
}

.sg-mobile-menu__nav {
    display: grid;
}

.sg-mobile-menu__nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--sg-line);
    font-size: 22px;
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-decoration: none;
}

.sg-mobile-menu__phone {
    font-size: 22px;
    font-weight: 720;
    text-decoration: none;
}

.sg-footer {
    padding: 62px 0 28px;
    background: #202525;
    color: #fff;
}

.sg-footer__grid {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 36px;
    align-items: start;
}

.sg-footer__brand {
    padding-right: 48px;
}

.sg-footer .sg-logo {
    padding-right: 0;
}

.sg-footer .sg-logo::after {
    display: none;
}

.sg-footer .sg-logo__mark i {
    border-color: #9fb1a8;
}

.sg-footer .sg-logo__mark i:first-child {
    border-right-color: transparent;
}

.sg-footer .sg-logo__mark i:last-child {
    border-left-color: transparent;
}

.sg-footer .sg-logo__text small {
    color: #9da7a5;
}

.sg-footer__brand p {
    max-width: 420px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .52);
    font-size: 15px;
    line-height: 1.7;
}

.sg-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
}

.sg-footer__nav a {
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    text-decoration: none;
}

.sg-footer__nav a:hover {
    color: #fff;
}

.sg-footer__contact {
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, .13);
}

.sg-footer__contact small {
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sg-footer__contact > a:first-of-type {
    display: inline-block;
    margin-bottom: 10px;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 620;
    letter-spacing: -.03em;
    text-decoration: none;
}

.sg-footer__contact > a:not(:first-of-type),
.sg-footer__contact > span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .52);
    font-size: 12px;
    text-decoration: none;
}

.sg-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 52px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.sg-footer__legal,
.sg-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sg-footer__bottom span,
.sg-footer__bottom a {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.45;
    text-decoration: none;
}


.sg-btn:disabled {
    border-color: var(--sg-metal-light);
    background: var(--sg-metal-light);
    color: #fff;
    cursor: not-allowed;
    opacity: 1;
}

.sg-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.sg-text-link span {
    transition: transform .18s ease;
}

.sg-text-link:hover span {
    transform: translateX(4px);
}

.sg-text-link--large {
    font-size: 15px;
}

.sg-text-link--light {
    color: #fff;
}

.sg-field {
    display: grid;
    gap: 7px;
}

.sg-field > span {
    color: var(--sg-text-soft);
    font-size: 12px;
    font-weight: 680;
}

.sg-field input {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(32, 37, 38, .22);
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--sg-text);
    font-size: 16px;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.sg-field input:focus {
    border-color: var(--sg-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(82, 106, 97, .12);
}

.sg-field input::placeholder {
    color: rgba(98, 105, 106, .72);
    opacity: 1;
}

.sg-field input[aria-invalid="true"] {
    border-color: #9c4a4a;
    box-shadow: 0 0 0 3px rgba(156, 74, 74, .08);
}

.sg-field input.is-valid {
    border-color: var(--sg-accent);
}

.sg-field__error {
    min-height: 17px;
    color: #8d3d3d;
    font-size: 11px;
    line-height: 1.4;
}

.sg-lead-form {
    display: grid;
    gap: 14px;
}

.sg-form-legal {
    margin: 10px 0 0;
    color: var(--sg-text-soft);
    font-size: 11px;
    line-height: 1.5;
}

.sg-form-status {
    min-height: 22px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.45;
}

.sg-form-status[data-state="loading"] {
    color: var(--sg-text-soft);
}

.sg-form-status[data-state="success"] {
    color: var(--sg-accent-dark);
}

.sg-form-status[data-state="error"] {
    color: #8d3d3d;
}

.sg-hp {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.sg-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}

.sg-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition: transform .18s ease;
}


@media (hover: hover) {
    .sg-hero-x__scope-item:hover .sg-icon svg,
    .sg-scenario-band:hover .sg-icon svg,
    .sg-suitable-x__analysis-item:hover .sg-icon svg,
    .sg-process-x__step:hover .sg-icon svg,
    .sg-trust-x__item:hover .sg-icon svg,
    .sg-property-x__item:hover .sg-icon svg {
        transform: translateY(-1px);
    }
}


/* V6.2 key motion only */

.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: translate3d(0, 18px, 0);
}

.sg-hero-x.sg-key-motion h1 {
    transition:
        opacity 600ms cubic-bezier(.22,1,.36,1),
        transform 600ms cubic-bezier(.22,1,.36,1);
}

.sg-hero-x.sg-key-motion .sg-hero-x__lead,
.sg-hero-x.sg-key-motion .sg-hero-x__expert {
    transition:
        opacity 520ms cubic-bezier(.22,1,.36,1),
        transform 520ms cubic-bezier(.22,1,.36,1);
}

.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-hero-x.sg-key-motion.is-key-visible .sg-hero-x__lead {
    transition-delay: 80ms;
}

.sg-hero-x.sg-key-motion.is-key-visible .sg-hero-x__expert {
    transition-delay: 150ms;
}

.sg-hero-x.sg-key-motion.is-key-visible .sg-hero-x__actions .sg-btn {
    animation: sgHeroCtaCue 520ms cubic-bezier(.22,1,.36,1) 360ms both;
}

@keyframes sgHeroCtaCue {
    0% {
        transform: translateY(0);
        box-shadow: none;
    }
    45% {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(64,86,78,.14);
    }
    100% {
        transform: translateY(0);
        box-shadow: none;
    }
}

.sg-final-x.sg-key-motion .sg-final-x__copy,
.sg-final-x.sg-key-motion .sg-final-x__form {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 520ms cubic-bezier(.22,1,.36,1),
        transform 520ms cubic-bezier(.22,1,.36,1);
}

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

.sg-final-x.sg-key-motion.is-key-visible .sg-final-x__form {
    transition-delay: 100ms;
}

@media (prefers-reduced-motion: reduce) {
    .sg-hero-x.sg-key-motion *,
    .sg-final-x.sg-key-motion *,
    .sg-quiz__step {
        animation: none !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !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;
    }
}
