:root {
    --ink: #111518;
    --ink-soft: #252b2f;
    --paper: #f2f3f3;
    --white: #ffffff;
    --muted: #6f7477;
    --line: #d8dadd;
    --orange: #ff6700;
    --orange-dark: #d95300;
    --danger: #b42318;
    --shell: min(1480px, calc(100% - 64px));
    --heading: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
label,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--white);
    background: #111518 url("/assets/img/hero.webp") center / cover no-repeat;
    isolation: isolate;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 11, 13, .96) 0%, rgba(8, 11, 13, .78) 35%, rgba(8, 11, 13, .18) 67%, rgba(8, 11, 13, .24) 100%),
        linear-gradient(0deg, rgba(8, 11, 13, .5), transparent 38%);
}

.site-header {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-mark {
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.05em;
}

.brand-domain {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.header-phone {
    color: var(--white);
    font-family: var(--heading);
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .02em;
}

.hero-content {
    display: flex;
    min-height: calc(100svh - 92px);
    padding-block: 72px 88px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.hero-content > * {
    max-width: 710px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--orange);
    font-family: var(--heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow-dark {
    color: var(--orange-dark);
}

.hero h1,
.quiz-topline h2,
.question-heading h3,
.final-copy h3,
.catalog-dialog h2 {
    font-family: var(--heading);
    font-weight: 900;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(26px, 3.05vw, 47px);
    line-height: 1;
    text-wrap: balance;
}

.hero-subtitle {
    margin: 22px 0 0;
    font-family: var(--heading);
    font-size: clamp(21px, 1.9vw, 30px);
    font-weight: 800;
    line-height: 1.05;
}

.hero-description {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(17px, 1.7vw, 24px);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    width: 100%;
    margin-top: 40px;
    gap: 14px;
    flex-wrap: wrap;
}

.mobile-hero-excavator {
    display: none;
}

.button {
    display: inline-flex;
    min-height: 58px;
    padding: 15px 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--heading);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
.answer-card input:focus-visible + .answer-media,
.contact-options input:focus-visible + span,
input:focus-visible,
.quiz-back:focus-visible,
.dialog-close:focus-visible {
    outline: 3px solid rgba(255, 103, 0, .38);
    outline-offset: 3px;
}

.button-primary {
    background: var(--orange);
    color: var(--white);
}

.button-primary:hover {
    background: var(--orange-dark);
}

.button-secondary {
    border-color: rgba(255, 255, 255, .65);
    background: rgba(11, 14, 16, .3);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.button-secondary:hover {
    border-color: var(--white);
    background: rgba(11, 14, 16, .65);
}

.hero-note {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
}

.hero-region {
    position: absolute;
    right: 32px;
    bottom: 26px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(8, 11, 13, .54);
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.quiz-section {
    min-height: 100svh;
    padding: 44px 0 60px;
    background:
        linear-gradient(90deg, rgba(17, 21, 24, .03) 1px, transparent 1px) 0 0 / 96px 96px,
        var(--paper);
}

.quiz-section .shell {
    width: min(1280px, calc(100% - 64px));
}

.quiz-topline {
    display: grid;
    margin-bottom: 26px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
}

.quiz-topline h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.quiz-progress {
    display: grid;
    width: min(240px, 26vw);
    gap: 7px;
}

.quiz-progress-number {
    justify-self: end;
    color: #b5b8ba;
    font-family: var(--heading);
    font-size: 23px;
    font-weight: 800;
}

.quiz-progress-number b {
    color: var(--orange);
    font-size: 34px;
}

.quiz-progress-track {
    height: 4px;
    overflow: hidden;
    background: #fff;
}

.quiz-progress-track span {
    display: block;
    width: 16.666%;
    height: 100%;
    background: var(--orange);
    transition: width .3s ease;
}

.server-alert {
    margin: 0 0 28px;
    padding: 16px 18px;
    border-left: 4px solid var(--danger);
    background: #fff;
    color: var(--danger);
    font-weight: 700;
}

.quiz-form {
    position: relative;
}

.quiz-step {
    display: none;
    animation: reveal .3s ease both;
}

.quiz-step.is-active {
    display: block;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-heading {
    margin-bottom: 18px;
}

.question-heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--orange-dark);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.question-heading h3 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(22px, 2.1vw, 32px);
    line-height: 1.12;
    letter-spacing: -.02em;
    text-transform: none;
}

.question-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.answer-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.answer-grid-models {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.answer-card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #cfd2d4;
    border-radius: 2px;
    background: var(--white);
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.answer-card[hidden] {
    display: none !important;
}

.answer-card:hover {
    z-index: 1;
    border-color: #8e9498;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(17, 21, 24, .1);
}

.answer-card.is-selected,
.answer-card:has(input:checked) {
    border-color: var(--orange);
    box-shadow: inset 0 0 0 2px var(--orange);
}

.answer-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.answer-media {
    display: block;
    height: clamp(112px, 9.5vw, 160px);
    overflow: hidden;
    background: #d7d9da;
}

.answer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.answer-card-contain .answer-media {
    background: #f7f7f7;
}

.answer-card-contain .answer-media img {
    padding: 8px;
    object-fit: contain;
}

.answer-card:hover .answer-media img {
    transform: scale(1.025);
}

.answer-copy {
    display: flex;
    min-height: 52px;
    padding: 9px 34px 9px 12px;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.answer-copy strong {
    font-family: var(--heading);
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 900;
    line-height: 1.05;
}

.answer-copy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
}

.answer-check {
    position: absolute;
    right: 10px;
    bottom: 13px;
    width: 14px;
    height: 14px;
    border: 1px solid #aeb2b5;
    border-radius: 50%;
    background: #fff;
}

.answer-card.is-selected .answer-check,
.answer-card:has(input:checked) .answer-check {
    border: 4px solid var(--orange);
}

.step-error,
.field-error {
    display: none;
    margin: 10px 0 0;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.quiz-step.has-error > .step-error,
.has-error > .field-error,
.field-error.is-visible {
    display: block;
}

.conditional-field {
    max-width: 560px;
    margin-top: 18px;
    padding: 18px;
    border-left: 4px solid var(--orange);
    background: var(--white);
}

.conditional-field label,
.location-card label,
.contact-form-card > label,
.catalog-form > label {
    display: block;
    margin-bottom: 9px;
    font-weight: 800;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #bfc3c6;
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
}

input.is-invalid {
    border-color: var(--danger);
}

.quiz-controls {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.quiz-controls-first {
    justify-content: flex-end;
}

.quiz-controls .button {
    min-width: 132px;
    min-height: 46px;
    padding: 10px 22px;
    font-size: 16px;
}

.button-quiet {
    border-color: #b9bdc0;
    background: transparent;
    color: var(--ink-soft);
}

.button-quiet:hover {
    border-color: var(--ink-soft);
    background: #fff;
}

.location-card {
    display: grid;
    overflow: hidden;
    max-width: 900px;
    border: 1px solid var(--line);
    background: #fff;
    grid-template-columns: minmax(300px, 1fr) minmax(330px, .9fr);
}

.location-card img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
}

.location-card > div {
    display: flex;
    padding: clamp(24px, 3.3vw, 42px);
    justify-content: center;
    flex-direction: column;
}

.final-grid {
    display: grid;
    min-height: 470px;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .75fr);
    border: 1px solid var(--line);
    background: #fff;
}

.final-copy {
    display: flex;
    padding: clamp(30px, 4vw, 58px);
    justify-content: center;
    flex-direction: column;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(10, 13, 15, .9), rgba(10, 13, 15, .58)),
        url("/assets/img/mining.webp") center / cover no-repeat;
}

.final-copy h3 {
    margin: 0;
    font-size: clamp(20px, 1.5vw, 24px);
    line-height: 1.1;
}

.final-copy > p:last-child {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(18px, 1.3vw, 21px);
    line-height: 1.5;
}

.contact-form-card {
    padding: clamp(26px, 3vw, 44px);
}

fieldset {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 10px;
    font-weight: 800;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.contact-options label {
    position: relative;
    cursor: pointer;
}

.contact-options input {
    position: absolute;
    opacity: 0;
}

.contact-options span {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfc3c6;
    background: #fff;
    font-family: var(--heading);
    font-weight: 800;
}

.contact-options input:checked + span {
    border-color: var(--orange);
    background: #fff4ec;
    box-shadow: inset 0 0 0 1px var(--orange);
}

.consent {
    display: grid !important;
    margin-top: 22px;
    align-items: start;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--orange);
}

.consent a {
    color: var(--ink);
}

.button-submit {
    width: 100%;
    margin-top: 22px;
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.catalog-dialog {
    width: min(620px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: clamp(28px, 5vw, 54px);
    overflow: auto;
    border: 0;
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 35px 100px rgba(0, 0, 0, .45);
}

.catalog-dialog::backdrop {
    background: rgba(5, 7, 8, .78);
    backdrop-filter: blur(5px);
}

.catalog-dialog h2 {
    margin: 0;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1;
}

.catalog-dialog > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.dialog-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 32px;
    line-height: 1;
}

.catalog-form {
    margin-top: 28px;
}

@media (max-width: 1180px) {
    .answer-grid,
    .answer-grid-five,
    .answer-grid-models {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .final-grid {
        grid-template-columns: 1fr 460px;
    }
}

@media (max-width: 850px) {
    :root {
        --shell: min(100% - 32px, 760px);
    }

    .brand-domain {
        display: none;
    }

    .quiz-section .shell {
        width: var(--shell);
    }

    .hero {
        background-position: 65% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(8, 11, 13, .96), rgba(8, 11, 13, .74) 70%, rgba(8, 11, 13, .42));
    }

    .quiz-topline {
        grid-template-columns: 1fr;
    }

    .quiz-progress {
        width: 100%;
    }

    .quiz-progress-number {
        justify-self: start;
    }

    .answer-grid,
    .answer-grid-five,
    .answer-grid-models {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-card,
    .final-grid {
        grid-template-columns: 1fr;
    }

    .location-card img {
        min-height: 220px;
        max-height: 300px;
    }

    .final-copy {
        min-height: 340px;
    }
}

@media (max-width: 600px) {
    :root {
        --shell: calc(100% - 24px);
    }

    html {
        scroll-padding-top: 8px;
    }

    .site-header {
        min-height: 68px;
    }

    .brand-mark {
        font-size: 23px;
    }

    .header-phone {
        font-size: 17px;
    }

    .hero {
        min-height: 0;
        background-position: 85% center;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(8, 11, 13, .48), rgba(8, 11, 13, .7) 46%, rgba(8, 11, 13, .9) 100%),
            linear-gradient(90deg, rgba(8, 11, 13, .8), rgba(8, 11, 13, .28));
    }

    .hero-content {
        min-height: auto;
        padding-block: 52px 58px;
    }

    .hero h1 {
        font-size: clamp(36px, 9.8vw, 40px);
        line-height: 1.02;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        margin-top: 30px;
        grid-template-columns: 1fr;
    }

    .mobile-hero-excavator {
        display: block;
        width: min(100%, 430px);
        height: auto;
        margin: 18px auto -2px;
        align-self: center;
        filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .42));
        pointer-events: none;
    }

    .button {
        width: 100%;
        min-height: 54px;
        padding-inline: 18px;
        font-size: 17px;
    }

    .hero-region {
        display: none;
    }

    .quiz-section {
        padding: 24px 0 40px;
    }

    .quiz-topline {
        position: static;
        margin: 0 0 14px;
        padding: 0;
        gap: 7px;
        background: transparent;
        backdrop-filter: none;
    }

    .quiz-topline h2 {
        font-size: 30px;
        font-weight: 800;
        line-height: 1.04;
        letter-spacing: -.015em;
        white-space: normal;
    }

    .quiz-progress {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .quiz-progress-number {
        font-size: 17px;
    }

    .quiz-progress-number b {
        font-size: 23px;
    }

    .question-heading {
        margin-bottom: 13px;
    }

    .question-heading > span {
        display: none;
    }

    .question-heading h3 {
        font-size: 20px;
        font-weight: 700;
    }

    .question-heading p {
        font-size: 12px;
    }

    .answer-grid,
    .answer-grid-five {
        gap: 8px;
    }

    .answer-card {
        aspect-ratio: 1 / 1;
        display: block;
        border: 0;
        background: #171b1e;
    }

    .answer-media {
        position: absolute;
        inset: 0;
        height: auto;
    }

    .answer-media::after {
        position: absolute;
        inset: 35% 0 0;
        content: "";
        background: linear-gradient(transparent, rgba(7, 9, 10, .92));
    }

    .answer-copy {
        position: absolute;
        z-index: 2;
        inset: auto 0 0;
        min-height: 0;
        padding: 30px 22px 9px 8px;
        color: #fff;
    }

    .answer-copy strong {
        font-size: clamp(12px, 3.5vw, 15px);
    }

    .answer-copy small {
        color: rgba(255, 255, 255, .68);
        font-size: 9px;
    }

    .answer-check {
        z-index: 3;
        right: 7px;
        bottom: 8px;
    }

    .answer-card.is-selected,
    .answer-card:has(input:checked) {
        box-shadow: inset 0 0 0 3px var(--orange);
    }

    .conditional-field {
        padding: 14px;
    }

    .location-card img {
        min-height: 170px;
    }

    .location-card > div,
    .contact-form-card,
    .final-copy {
        padding: 20px 16px;
    }

    .final-copy {
        min-height: 290px;
    }

    .final-copy h3 {
        font-size: 22px;
    }

    .final-copy > p:last-child {
        font-size: 17px;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .contact-options span {
        font-weight: 400;
    }

    .quiz-controls {
        margin-top: 14px;
        gap: 10px;
    }

    .quiz-controls .button {
        width: auto;
        min-width: 112px;
        min-height: 42px;
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
