.nhq-hero,
.nhq-hero * {
    box-sizing: border-box;
}

.nhq-hero {
    --nhq-overlay-left: rgba(8,8,8,.96);
    --nhq-overlay-mid: rgba(8,8,8,.62);
    --nhq-overlay-right: rgba(8,8,8,.20);
    --nhq-overlay-p1: 35%;
    --nhq-overlay-p2: 68%;
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    font-family: Inter, Manrope, Arial, sans-serif;
}

.nhq-hero--fullbleed {
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    margin-left: -50vw;
}

.nhq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--nhq-overlay-left) 0%, var(--nhq-overlay-left) var(--nhq-overlay-p1), var(--nhq-overlay-mid) var(--nhq-overlay-p2), var(--nhq-overlay-right) 100%);
    pointer-events: none;
}

.nhq-hero__inner {
    position: relative;
    min-height: inherit;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 38px 54px 34px;
}

.nhq-hero__top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    min-height: 56px;
}

.nhq-hero__phone-wrap {
    justify-self: end;
}

.nhq-hero__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.nhq-hero__phone:hover {
    transform: translateY(-1px);
}

.nhq-hero__phone-icon {
    font-size: .9em;
    opacity: .82;
}

.nhq-hero__main {
    display: flex;
    align-items: center;
    position: relative;
    padding: 22px 0 34px;
}

.nhq-hero__content {
    width: 100%;
    max-width: 650px;
}

.nhq-hero__addresses-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 28px;
}

.nhq-hero__pin {
    flex: 0 0 auto;
    color: #a85cff;
    font-size: 1.05em;
    line-height: 1.35;
}

.nhq-hero__addresses {
    font-size: 18px;
    line-height: 1.45;
    color: rgba(255,255,255,.78);
    white-space: normal;
}

.nhq-hero__title {
    margin: 0 0 24px;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
    color: #fff;
}

.nhq-hero__title-line {
    display: block;
}

.nhq-hero__title-accent {
    color: #a85cff;
}

.nhq-hero__description {
    max-width: 560px;
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,.76);
}

.nhq-hero__description p {
    margin: 0;
}

.nhq-hero__description strong {
    color: #b875ff;
    font-weight: 600;
}

.nhq-hero__cta {
    width: 240px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 26px;
    border: 0;
    border-radius: 8px;
    background: #f36b12;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.nhq-hero__cta:hover {
    transform: translateY(-2px);
    background: #ff7b22;
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.nhq-hero__cta:focus-visible,
.nhq-quiz button:focus-visible,
.nhq-quiz input:focus-visible {
    outline: 2px solid #b875ff;
    outline-offset: 3px;
}

.nhq-note {
    position: absolute;
    right: 0;
    bottom: 14%;
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
    width: 300px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    color: #202020;
    font-size: 14px;
    line-height: 1.35;
    backdrop-filter: blur(7px);
}

.nhq-note__icon {
    color: #8d49d8;
}

.nhq-note__icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.nhq-note strong {
    color: #8d49d8;
}

.nhq-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 28px;
    align-items: stretch;
    padding-top: 18px;
}

.nhq-feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding-right: 10px;
}

.nhq-feature:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10%;
    width: 1px;
    height: 80%;
    background: rgba(255,255,255,.18);
}

.nhq-feature__icon {
    flex: 0 0 auto;
    width: 30px;
    color: #a85cff;
    font-size: 30px;
    line-height: 1;
}

.nhq-feature__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.nhq-feature__text {
    min-width: 0;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.3;
}

.nhq-modal[hidden] {
    display: none !important;
}

.nhq-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0,0,0,.78);
    overflow-y: auto;
}

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

.nhq-quiz {
    position: relative;
    width: 760px;
    max-width: 100%;
    padding: 38px;
    border-radius: 20px;
    background: #111;
    color: #fff;
    box-shadow: 0 28px 80px rgba(0,0,0,.36);
}

.nhq-quiz__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255,255,255,.74);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.nhq-quiz__progress {
    height: 5px;
    margin: 6px 44px 30px 0;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    overflow: hidden;
}

.nhq-quiz__progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #a85cff;
    transition: width .25s ease;
}

.nhq-quiz__step-count {
    margin-bottom: 8px;
    color: #a85cff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.nhq-quiz__title,
.nhq-quiz__contact-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.nhq-quiz__subtitle {
    margin: 0 0 28px;
    color: rgba(255,255,255,.62);
    font-size: 16px;
    line-height: 1.5;
}

.nhq-quiz__question {
    margin: 0 0 18px;
    color: #fff;
    font-size: 26px;
    line-height: 1.18;
}

.nhq-quiz__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.nhq-quiz__option {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    background: #1b1b1b;
    color: #fff;
    padding: 15px 18px;
    text-align: left;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.nhq-quiz__option:hover,
.nhq-quiz__option.is-selected {
    border-color: #a85cff;
    transform: translateY(-1px);
}

.nhq-quiz__contact-title {
    margin-bottom: 24px;
}

.nhq-quiz__form {
    display: grid;
    gap: 12px;
}

.nhq-quiz__input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 0 16px;
    background: #1b1b1b;
    color: #fff;
    font: inherit;
    font-size: 16px;
}

.nhq-quiz__input::placeholder {
    color: rgba(255,255,255,.42);
}

.nhq-quiz__submit {
    min-height: 56px;
    border: 0;
    border-radius: 10px;
    background: #f36b12;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nhq-quiz__submit[disabled] {
    opacity: .65;
    cursor: wait;
}

.nhq-quiz__consent,
.nhq-quiz__status {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    line-height: 1.45;
}

.nhq-quiz__status.is-error {
    color: #ff8f8f;
}

.nhq-quiz__success {
    padding: 36px 6px 12px;
    color: #fff;
    text-align: center;
    font-size: 24px;
    line-height: 1.35;
}

@media (max-width: 1024px) {
    .nhq-hero__inner {
        padding: 28px 30px 26px;
    }

    .nhq-hero__main {
        padding-top: 16px;
    }

    .nhq-note {
        right: 0;
        bottom: 10%;
    }

    .nhq-features {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .nhq-feature:nth-child(odd)::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .nhq-hero {
        min-height: 100svh;
        background-position: 61% center;
    }

    .nhq-hero::before {
        background: linear-gradient(180deg, rgba(7,7,7,.82) 0%, rgba(7,7,7,.75) 30%, rgba(7,7,7,.84) 100%);
    }

    .nhq-hero__inner {
        padding: 18px 16px 18px;
        grid-template-rows: auto auto auto;
        align-content: space-between;
    }

    .nhq-hero__top {
        min-height: 0;
        margin-bottom: 10px;
    }

    .nhq-hero__phone {
        font-size: 18px;
    }

    .nhq-hero__main {
        display: block;
        padding: 8px 0 18px;
    }

    .nhq-hero__addresses-row {
        margin-bottom: 18px;
    }

    .nhq-hero__addresses {
        font-size: 16px;
    }

    .nhq-hero__title {
        margin-bottom: 18px;
        font-size: 36px;
        line-height: 1.02;
    }

    .nhq-hero__description {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.45;
    }

    .nhq-hero__cta {
        width: 100%;
    }

    .nhq-note {
        position: static;
        width: 100%;
        margin-top: 18px;
        grid-template-columns: 52px 1fr;
        font-size: 13px;
    }

    .nhq-features {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 0;
        padding-top: 0;
        border-top: 1px solid rgba(255,255,255,.13);
    }

    .nhq-feature {
        min-height: 74px;
        gap: 9px;
        padding: 13px 9px 13px 0;
        border-bottom: 1px solid rgba(255,255,255,.13);
    }

    .nhq-feature:nth-child(even) {
        padding-left: 12px;
    }

    .nhq-feature:not(:first-child)::before {
        display: none;
    }

    .nhq-feature:nth-child(even)::before {
        display: block;
        left: 0;
        top: 14px;
        height: calc(100% - 28px);
    }

    .nhq-feature__icon {
        width: 24px;
        font-size: 24px;
    }

    .nhq-feature__text {
        font-size: 12px;
    }

    .nhq-modal {
        padding: 14px;
        align-items: end;
    }

    .nhq-quiz {
        width: 100%;
        max-height: 92svh;
        padding: 28px 18px 24px;
        overflow-y: auto;
        border-radius: 18px 18px 10px 10px;
    }

    .nhq-quiz__progress {
        margin-bottom: 24px;
    }

    .nhq-quiz__title,
    .nhq-quiz__contact-title {
        font-size: 28px;
    }

    .nhq-quiz__question {
        font-size: 22px;
    }

    .nhq-quiz__options {
        grid-template-columns: 1fr;
    }
}
