:root {
    --ambity-red: #ff4a40;
    --ambity-black: #111;
    --ambity-soft: #f3f3f3;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--ambity-red) !important;
    outline-offset: 3px;
}

.form-status {
    min-height: 1.4em;
    margin: 12px 0 0;
}

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

.form-status[data-state="success"] {
    color: #137333;
}

/* Header solutions menu */
.header-solutions {
    position: relative;
    display: flex;
    align-items: center;
}

.header-solutions__toggle {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.header-solutions__toggle span,
.sidenav-solutions__toggle span {
    display: inline-block;
    transition: transform .2s ease;
}

.header-solutions.is-open .header-solutions__toggle span,
.sidenav-solutions.is-open .sidenav-solutions__toggle span {
    transform: rotate(180deg);
}

.header-solutions__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -22px;
    z-index: 1100;
    min-width: 280px;
    padding: 12px;
    border: 1px solid #252525;
    background: #111;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.header-solutions__menu a,
.header-solutions__menu span {
    display: flex !important;
    min-height: 44px;
    padding: 10px 12px !important;
    align-items: center;
    justify-content: space-between;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
}

.header-solutions__menu span[aria-disabled="true"] {
    color: #999 !important;
}

.header-solutions__menu small {
    margin-left: 18px;
    color: var(--ambity-red);
    font-size: 11px;
    text-transform: uppercase;
}

.header-solutions.is-open .header-solutions__menu,
.header-solutions:focus-within .header-solutions__menu,
.header-solutions:hover .header-solutions__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sidenav-solutions {
    display: block !important;
    width: 100%;
}

.sidenav-solutions__toggle {
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
}

.sidenav-solutions__panel {
    display: none;
    padding: 6px 0 14px 18px;
}

.sidenav-solutions.is-open .sidenav-solutions__panel {
    display: grid;
    gap: 6px;
}

.sidenav-solutions__panel a,
.sidenav-solutions__panel span {
    display: flex;
    min-height: 44px;
    align-items: center;
    color: #000;
    font-size: clamp(18px, 5vw, 24px) !important;
    text-decoration: none;
}

.sidenav-solutions__panel span[aria-disabled="true"] {
    color: #888;
}

/* Homepage industry block */
.industry-solutions {
    padding: clamp(72px, 8vw, 132px) 0;
    background: #fff;
    color: var(--ambity-black);
}

.industry-solutions__heading {
    max-width: 820px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.industry-solutions__eyebrow,
.auto-eyebrow {
    margin: 0 0 14px;
    color: var(--ambity-red);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.industry-solutions h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .98;
}

.industry-solutions__heading > p:last-child {
    max-width: 680px;
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.35;
}

.industry-solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.industry-card {
    min-height: 300px;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid #c9c9c9;
    color: inherit;
    text-decoration: none;
}

.industry-card--active {
    display: flex;
    flex-direction: column;
    border-color: var(--ambity-black);
    transition: background-color .2s ease, color .2s ease;
}

.industry-card--active:hover {
    background: var(--ambity-black);
    color: #fff;
}

.industry-card--soon {
    color: #777;
    background: #f5f5f5;
}

.industry-card__status {
    display: block;
    margin-bottom: 50px;
    color: var(--ambity-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.industry-card h3 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 38px);
}

.industry-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.industry-card__link {
    margin-top: auto;
    padding-top: 28px;
    font-weight: 700;
}

.auto-expertise {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    margin-top: 18px;
    background: var(--ambity-black);
    color: #fff;
}

.auto-expertise__content {
    padding: clamp(32px, 5vw, 72px);
}

.auto-expertise h3 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
}

.auto-expertise__content > p:not(.industry-solutions__eyebrow) {
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.45;
}

.auto-expertise__image,
.auto-expertise__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.auto-expertise__image img {
    object-fit: cover;
}

.auto-expertise__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.auto-expertise__link {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 20px;
    align-items: center;
    border: 1px solid var(--ambity-red);
    background: var(--ambity-red);
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.auto-expertise__link--outline {
    background: transparent;
    color: #fff;
}

/* Auto business solution */
.auto-business {
    overflow: hidden;
    background: #fff;
    color: var(--ambity-black);
    font-family: "RisingSun", sans-serif;
}

.auto-container {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}

.auto-business h1,
.auto-business h2,
.auto-business h3,
.auto-business p {
    color: inherit;
}

.auto-hero {
    padding: clamp(130px, 13vw, 210px) 0 clamp(80px, 9vw, 140px);
    background: var(--ambity-black);
    color: #fff;
}

.auto-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: clamp(44px, 7vw, 90px);
    color: #aaa;
    font-size: 14px;
}

.auto-breadcrumbs a {
    color: #fff;
}

.auto-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .7fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: end;
}

.auto-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(46px, 6.6vw, 92px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.025em;
}

.auto-hero__lead {
    max-width: 850px;
    margin: 30px 0 0;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.35;
}

.auto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

.auto-button {
    display: inline-flex;
    min-height: 54px;
    padding: 14px 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ambity-red);
    border-radius: 0;
    background: var(--ambity-red);
    color: #111 !important;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.auto-button--outline {
    background: transparent;
    color: inherit !important;
}

.auto-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.auto-hero__system {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #555;
    border-left: 1px solid #555;
}

.auto-hero__system span,
.auto-hero__system strong {
    min-height: 88px;
    padding: 18px;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
}

.auto-hero__system span {
    display: flex;
    align-items: center;
    font-size: 18px;
}

.auto-hero__system strong {
    grid-column: 1 / -1;
    color: var(--ambity-red);
    font-size: 22px;
}

.auto-section {
    padding: clamp(76px, 9vw, 140px) 0;
}

.auto-section--dark {
    background: var(--ambity-black);
    color: #fff;
}

.auto-section--soft {
    background: var(--ambity-soft);
}

.auto-section h2 {
    max-width: 980px;
    margin: 0 0 clamp(38px, 5vw, 68px);
    font-size: clamp(38px, 5.5vw, 72px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.02em;
}

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

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

.auto-card {
    min-height: 240px;
    padding: clamp(24px, 2.5vw, 36px);
    border: 1px solid #b9b9b9;
}

.auto-card--dark {
    border-color: #444;
}

.auto-card h3 {
    margin: 0 0 24px;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.05;
}

.auto-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.auto-flow-list {
    border-top: 1px solid #aaa;
}

.auto-flow-list article {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) 1.55fr;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 1px solid #aaa;
}

.auto-flow-list h3,
.auto-flow-list p {
    margin: 0;
}

.auto-flow-list h3 {
    font-size: clamp(27px, 3vw, 40px);
}

.auto-flow-list p {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.38;
}

.auto-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 1px;
    list-style: none;
    background: #aaa;
}

.auto-tools li {
    min-height: 150px;
    padding: 26px;
    background: var(--ambity-soft);
    font-size: 20px;
    font-weight: 600;
}

.auto-case__grid,
.auto-audit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(42px, 7vw, 100px);
    align-items: center;
}

.auto-case h2,
.auto-audit h2 {
    margin-bottom: 24px;
}

.auto-case p,
.auto-audit p,
.auto-audit li {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
}

.auto-case .auto-button {
    margin-top: 20px;
}

.auto-case picture,
.auto-case img {
    display: block;
    width: 100%;
}

.auto-case img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.auto-audit {
    background: var(--ambity-black);
    color: #fff;
}

.auto-audit ul {
    padding-left: 24px;
}

.auto-form {
    padding: clamp(26px, 4vw, 50px);
    background: #fff;
    color: var(--ambity-black);
}

.auto-form__field {
    margin-bottom: 22px;
}

.auto-form__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.auto-form__field input,
.auto-form__field select,
.auto-form__field textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #777;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 18px;
}

.auto-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

.auto-form__field small,
.auto-form > small[data-error-for] {
    display: block;
    min-height: 19px;
    margin-top: 5px;
    color: #b42318;
    font-size: 14px;
}

.auto-form [aria-invalid="true"] {
    border-color: #b42318;
}

.auto-form__consent {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.4;
}

.auto-form__consent input {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
}

.auto-form .auto-button {
    width: 100%;
    margin-top: 10px;
}

.auto-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    counter-reset: auto-step;
    list-style: none;
}

.auto-process li {
    min-height: 230px;
    padding: 28px;
    border-top: 4px solid var(--ambity-red);
    background: var(--ambity-soft);
    counter-increment: auto-step;
}

.auto-process li::before {
    display: block;
    margin-bottom: 46px;
    color: var(--ambity-red);
    content: "0" counter(auto-step);
    font-weight: 700;
}

.auto-process strong,
.auto-process span {
    display: block;
}

.auto-process strong {
    margin-bottom: 12px;
    font-size: 25px;
}

.auto-process span {
    font-size: 18px;
    line-height: 1.4;
}

.auto-faq details {
    border-top: 1px solid #999;
}

.auto-faq details:last-child {
    border-bottom: 1px solid #999;
}

.auto-faq summary {
    min-height: 72px;
    padding: 22px 52px 22px 0;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 600;
    cursor: pointer;
}

.auto-faq details p {
    max-width: 850px;
    margin: 0;
    padding: 0 0 28px;
    font-size: 19px;
    line-height: 1.5;
}

.haval-next-step {
    padding: clamp(58px, 8vw, 110px) 0;
    background: #111;
    color: #fff;
}

.haval-next-step p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.08;
}

@media (max-width: 1199px) {
    .industry-solutions__grid,
    .auto-card-grid,
    .auto-card-grid--five,
    .auto-tools,
    .auto-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auto-hero__grid {
        grid-template-columns: 1fr;
    }

    .auto-hero__system {
        max-width: 620px;
    }
}

@media (max-width: 900px) {
    .auto-case__grid,
    .auto-audit__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .auto-container {
        width: min(100% - 32px, 680px);
    }

    .industry-solutions {
        padding: 68px 0;
    }

    .industry-solutions__grid,
    .auto-card-grid,
    .auto-card-grid--five,
    .auto-tools,
    .auto-process,
    .auto-expertise,
    .auto-case__grid,
    .auto-audit__grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        min-height: 230px;
    }

    .industry-card__status {
        margin-bottom: 30px;
    }

    .auto-expertise__image {
        min-height: 230px;
    }

    .auto-hero {
        padding-top: 120px;
    }

    .auto-hero h1 {
        font-size: clamp(39px, 11vw, 56px);
    }

    .auto-flow-list article {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .auto-card {
        min-height: 190px;
    }

    .auto-tools li {
        min-height: 110px;
    }

    .auto-actions,
    .auto-expertise__actions {
        display: grid;
    }

    .auto-button,
    .auto-expertise__link {
        width: 100%;
        justify-content: center;
    }

    .auto-process li {
        min-height: 190px;
    }
}

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