/*
 * NEXOACERO UX overrides
 * Loaded after the page-specific styles. Keeps the existing industrial visual
 * language while improving reading width, mobile density and accessibility.
 */

:root {
  --nexo-ux-orange: #ff7a1a;
  --nexo-ux-orange-hover: #ff9848;
  --nexo-ux-focus: #ffc27d;
  --nexo-ux-danger: #ff9b8d;
  --nexo-ux-readable: 72ch;
  --nexo-ux-safe-left: max(12px, env(safe-area-inset-left));
  --nexo-ux-safe-right: max(12px, env(safe-area-inset-right));
  --nexo-ux-safe-bottom: max(10px, env(safe-area-inset-bottom));
}

html {
  scroll-padding-top: calc(var(--v2-header, 78px) + 18px + env(safe-area-inset-top));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.nexo-v2 {
  min-width: 320px;
}

img,
svg,
video {
  max-inline-size: 100%;
}

button,
input,
select,
textarea {
  max-inline-size: 100%;
}

/* Keep long technical copy comfortable to scan on wide screens. */
:where(
  .v2-hero__lead,
  .v2-region__copy > p,
  .v2-section__intro > p:not(.v2-kicker),
  .v2-section__heading p:not(.v2-kicker),
  .v2-quote__aside > p,
  .v2-talent__box p,
  .nexo-page-header__subtitle,
  .nexo-section__heading > p,
  .nexo-detail > p,
  .nexo-detail li,
  .nx-section-head > p,
  .nx-service-feature p,
  .nx-cert-intro p,
  .nx-cert-flow p,
  .nx-machine-card p
) {
  max-inline-size: var(--nexo-ux-readable);
}

:where(h1, h2, h3, p, li, dd, a, button, label) {
  overflow-wrap: break-word;
}

/* Strong, consistent keyboard focus across both the v2 and legacy components. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--nexo-ux-focus);
  outline-offset: 3px;
}

:where(
  .v2-region__flags,
  .v2-process,
  .v2-sector-grid,
  .v2-service-grid,
  .v2-project-grid,
  .v2-cert-strip,
  .v2-filter-pills,
  .nexo-filters
):focus-visible {
  border-radius: 14px;
  outline-offset: 5px;
}

/* CTA hierarchy and contrast: dark ink on orange passes comfortably. */
.v2-btn--primary,
.nexo-btn--primary {
  color: #071012;
  background: linear-gradient(135deg, var(--nexo-ux-orange), #ffad5e);
  border-color: #ffb56d;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.24);
  text-shadow: none;
}

.v2-btn--outline,
.nexo-btn--outline {
  color: #f8fbfa;
  border-color: rgba(235, 244, 245, 0.58);
  background: rgba(3, 7, 8, 0.62);
}

.v2-btn--solidarity {
  color: #fff;
  border-color: #c76e5d;
  background: #7d2b20;
  box-shadow: none;
}

.nexo-filter-btn--active {
  color: #071012;
  background: var(--nexo-ux-orange);
  border-color: #ffac61;
}

/* Home categories are descriptive tags, not interactive filters. */
.v2-filter-pills span:first-child {
  color: var(--v2-soft, #d8e3e3);
  background: transparent;
  border-color: var(--v2-line, rgba(214, 232, 235, 0.16));
}

@media (hover: hover) {
  .v2-btn--primary:hover,
  .nexo-btn--primary:hover {
    color: #071012;
    background: linear-gradient(135deg, var(--nexo-ux-orange-hover), #ffc17f);
  }

  .v2-btn--outline:hover,
  .nexo-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.11);
  }
}

:where(.v2-btn, .nexo-btn, .v2-menu-button, .v2-menu__close, .nexo-filter-btn) {
  min-block-size: 44px;
}

.v2-nav a,
.v2-service-card a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

.v2-menu__section a {
  min-block-size: 44px;
}

.v2-footer a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
}

.v2-header {
  padding-top: env(safe-area-inset-top);
}

.v2-header.is-scrolled {
  min-height: 64px;
  background: rgba(3, 7, 8, 0.96);
}

.v2-header.is-scrolled .v2-logo__image {
  width: 146px;
}

.v2-menu__panel {
  padding-top: calc(26px + env(safe-area-inset-top));
  padding-right: calc(26px + env(safe-area-inset-right));
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  padding-left: calc(26px + env(safe-area-inset-left));
  overscroll-behavior: contain;
}

/* A shorter opening frame keeps the value proposition and first CTA in view. */
.v2-hero {
  min-height: min(700px, 86svh);
}

.v2-hero__content {
  padding-block: clamp(58px, 7vh, 76px) clamp(64px, 8vh, 78px);
}

/* Desktop WhatsApp control remains visible but secondary to quoting. */
.nexo-whatsapp-float {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

/* Reserve the visual footprint while delayed backgrounds are fetched. */
[data-nexo-lazy-bg] {
  background-color: var(--v2-panel2, #12262b);
}

[data-nexo-lazy-bg]:not(.is-bg-visible) {
  background-image: none !important;
}

.v2-quote__aside[data-nexo-lazy-bg]:not(.is-bg-visible)::after {
  background-image: none !important;
}

/* RFQ wizard ------------------------------------------------------------ */
.v2-form.v2-rfq {
  --rfq-progress: 33.333%;
}

.v2-rfq [hidden] {
  display: none !important;
}

.v2-rfq-progress {
  display: grid;
  gap: 13px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(3, 7, 8, 0.34);
}

.v2-rfq-progress__status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--v2-muted, #aebdc0);
  font-size: 0.84rem;
}

.v2-rfq-progress__status > strong {
  color: #fff;
}

.v2-rfq-progress__bar {
  position: relative;
  block-size: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.v2-rfq-progress__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: var(--rfq-progress, 33.333%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nexo-ux-orange), #ffc071);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.34);
  transition: inline-size 240ms ease;
}

.v2-rfq-progress__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-rfq-progress__steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #94a6aa;
  font-size: 0.75rem;
  font-weight: 750;
}

.v2-rfq-progress__steps li > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  inline-size: 28px;
  block-size: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #dbe5e5;
  background: rgba(255, 255, 255, 0.05);
}

.v2-rfq-progress__steps li[aria-current="step"] {
  color: #fff;
}

.v2-rfq-progress__steps li[aria-current="step"] > span:first-child {
  color: #071012;
  border-color: #ffb46c;
  background: var(--nexo-ux-orange);
}

.v2-rfq-step {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.v2-rfq-step > legend {
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  color: #fff;
  font-family: var(--v2-head, sans-serif);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.v2-rfq-step > legend span {
  color: var(--nexo-ux-orange-hover);
  font-size: 0.55em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v2-rfq-step__intro {
  max-inline-size: var(--nexo-ux-readable);
  margin: 0 0 20px;
  color: var(--v2-muted, #aebdc0);
}

.v2-form__field {
  display: grid;
  min-inline-size: 0;
  gap: 7px;
}

.v2-form__field.has-error :where(input, select, textarea),
.v2-form__privacy.has-error {
  border-color: var(--nexo-ux-danger);
  box-shadow: 0 0 0 3px rgba(255, 116, 96, 0.13);
}

.v2-form__error {
  color: #ffd9d2;
  font-size: 0.82rem;
  font-weight: 700;
}

.v2-form__error p {
  margin: 0;
}

.v2-form__errors {
  margin: 0 0 22px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 155, 141, 0.6);
  border-radius: 14px;
  color: #ffe4df;
  background: rgba(91, 25, 18, 0.72);
}

.v2-form__errors h4,
.v2-form__errors p {
  margin: 0 0 7px;
}

.v2-form__errors ul {
  margin: 8px 0 0;
  padding-inline-start: 1.2rem;
}

.v2-form__errors a {
  min-block-size: 44px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v2-rfq-step__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.v2-rfq-step__actions .v2-btn {
  min-block-size: 48px;
}

.v2-rfq-step__actions [data-rfq-prev] {
  margin-right: auto;
}

.v2-rfq .v2-form__upload label {
  display: grid;
  gap: 8px;
  min-block-size: 96px;
  cursor: pointer;
}

.v2-rfq .v2-form__upload label > span:first-child {
  color: #fff;
}

.v2-rfq .v2-form__upload small {
  color: var(--v2-muted, #aebdc0);
  font-weight: 600;
}

.v2-rfq .v2-form__privacy {
  min-block-size: 44px;
}

/* Mobile conversion dock. JS adds .is-visible after the hero. */
.nexo-mobile-actions {
  display: none;
}

@media (max-width: 1024px) {
  .v2-capacity {
    background-attachment: scroll;
  }
}

@media (max-width: 720px) {
  :root {
    --v2-container: calc(100vw - 28px);
    --v2-header: 64px;
    --v2-radius: 17px;
  }

  body.nexo-v2 {
    font-size: 15px;
    line-height: 1.58;
  }

  main [id] {
    scroll-margin-top: calc(var(--v2-header) + 14px + env(safe-area-inset-top));
  }

  .v2-header__inner {
    width: auto;
    margin-right: calc(12px + env(safe-area-inset-right));
    margin-left: calc(12px + env(safe-area-inset-left));
  }

  .v2-header,
  .v2-header.is-scrolled {
    min-height: var(--v2-header);
  }

  .v2-logo__image,
  .v2-header.is-scrolled .v2-logo__image {
    width: 138px;
    max-width: 48vw;
  }

  .v2-menu-button,
  .v2-menu__close {
    inline-size: 44px;
    block-size: 44px;
  }

  .v2-menu__panel {
    width: min(100%, 390px);
    min-height: 100dvh;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-right: calc(18px + env(safe-area-inset-right));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    padding-left: calc(18px + env(safe-area-inset-left));
  }

  .v2-menu__section {
    gap: 4px;
    padding-block: 16px;
  }

  /* The full service catalogue remains one tap away from the primary link. */
  .v2-menu__services {
    display: none;
  }

  .v2-menu__section a {
    min-height: 46px;
    padding: 10px 11px;
  }

  .v2-section,
  .nexo-section {
    padding-block: clamp(48px, 13vw, 62px);
  }

  .v2-section__heading {
    margin-bottom: 24px;
  }

  .v2-section__intro h2,
  .v2-section__heading h2,
  .v2-capacity h2,
  .v2-quote h2,
  .v2-talent h2,
  .nexo-page-header__title {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
    line-height: 0.96;
  }

  .v2-kicker,
  .nexo-kicker,
  .nx-kicker,
  .nx-mini-label {
    margin-bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.11em;
  }

  /* Compact mobile hero, preserving every demo message. */
  .v2-hero {
    min-height: 0;
    padding-top: calc(var(--v2-header) + env(safe-area-inset-top));
  }

  .v2-hero__image {
    background-image: url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1400&q=80");
  }

  .v2-hero__content {
    gap: 17px;
    padding-block: clamp(26px, 7vw, 38px) 54px;
  }

  .v2-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.65rem, 13.8vw, 3.65rem);
    line-height: 0.9;
  }

  .v2-hero__lead {
    margin-top: 14px;
    font-size: 0.95rem;
  }

  .v2-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  .v2-hero__actions .v2-btn {
    width: 100%;
    min-height: 50px;
    padding-inline: 15px;
    font-size: 0.88rem;
  }

  .v2-hero__card {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 3px 13px;
    padding: 15px 16px;
    border-radius: 15px;
  }

  .v2-hero__card > span {
    grid-row: 1 / 3;
    width: 4px;
    height: 100%;
    min-height: 54px;
    margin: 0;
  }

  .v2-hero__card p {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.42;
  }

  .v2-hero__card strong {
    font-size: 1.35rem;
    line-height: 1;
  }

  /* Trust metrics remain visible in a dense 2 x 2 matrix. */
  .v2-stats {
    margin-top: -28px;
  }

  .v2-stats__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border-radius: 16px;
  }

  .v2-stat {
    min-width: 0;
    min-height: 98px;
    padding: 14px 11px;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 8px;
    border: 0;
  }

  .v2-stat:nth-child(odd) {
    border-right: 1px solid var(--v2-line);
  }

  .v2-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--v2-line);
  }

  .v2-stat__icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .v2-stat__icon::after {
    inset: 7px;
  }

  .v2-stat strong {
    font-size: clamp(1.65rem, 8.5vw, 2.15rem);
  }

  .v2-stat span:last-child {
    font-size: 0.69rem;
    line-height: 1.28;
  }

  .v2-region__panel,
  .v2-relief__box,
  .v2-talent__box {
    padding: 20px;
  }

  .v2-region__copy {
    margin-bottom: 19px;
  }

  /*
   * Touch shelves. A partial next card plus a persistent thin scrollbar makes
   * the horizontal direction discoverable; JS supplies tabindex/role labels.
   */
  :where(
    .v2-region__flags,
    .v2-process,
    .v2-sector-grid,
    .v2-service-grid,
    .v2-project-grid,
    .v2-cert-strip
  ) {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 3px 15px;
    scroll-padding-inline: 3px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 152, 72, 0.78) rgba(255, 255, 255, 0.08);
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  :where(
    .v2-region__flags,
    .v2-process,
    .v2-sector-grid,
    .v2-service-grid,
    .v2-project-grid,
    .v2-cert-strip
  )::-webkit-scrollbar {
    height: 6px;
  }

  :where(
    .v2-region__flags,
    .v2-process,
    .v2-sector-grid,
    .v2-service-grid,
    .v2-project-grid,
    .v2-cert-strip
  )::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  :where(
    .v2-region__flags,
    .v2-process,
    .v2-sector-grid,
    .v2-service-grid,
    .v2-project-grid,
    .v2-cert-strip
  )::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 152, 72, 0.78);
  }

  :where(
    .v2-region__flags,
    .v2-process,
    .v2-sector-grid,
    .v2-service-grid,
    .v2-project-grid,
    .v2-cert-strip
  ) > * {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .v2-region__flags {
    grid-auto-columns: min(58vw, 210px);
  }

  .v2-process {
    grid-auto-columns: min(78vw, 300px);
  }

  .v2-sector-grid {
    grid-auto-columns: min(74vw, 278px);
  }

  .v2-service-grid {
    grid-auto-columns: min(86vw, 340px);
  }

  .v2-project-grid {
    grid-auto-columns: min(88vw, 355px);
  }

  .v2-cert-strip {
    grid-auto-columns: min(78vw, 300px);
  }

  .v2-process article {
    min-height: 176px;
    padding: 20px;
  }

  .v2-sector-card {
    min-height: 250px;
  }

  .v2-service-card {
    min-height: 276px;
    padding: 21px;
  }

  .v2-service-card h3 {
    margin-top: 16px;
    font-size: 1.8rem;
  }

  .v2-project-card__image {
    height: 190px;
  }

  .v2-project-card__content {
    padding: 18px;
  }

  .v2-project-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-project-card dl > div:last-child {
    grid-column: 1 / -1;
  }

  .v2-cert-strip article {
    min-height: 176px;
    padding: 20px;
  }

  /* Filters scroll instead of wrapping into several noisy rows. */
  .v2-filter-pills,
  .nexo-filters {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding: 3px 3px 10px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 152, 72, 0.72) rgba(255, 255, 255, 0.08);
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .v2-filter-pills > *,
  .nexo-filters > * {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  /* Four capacity facts stay visible as a compact 2 x 2 block. */
  .v2-capacity {
    padding-block: 52px;
  }

  .v2-capacity__grid {
    gap: 24px;
  }

  .v2-capacity__items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .v2-capacity__items article {
    min-width: 0;
    min-height: 112px;
    padding: 15px 13px;
  }

  .v2-capacity__items strong {
    font-size: clamp(1.38rem, 7vw, 1.8rem);
    line-height: 0.98;
  }

  .v2-capacity__items span {
    display: block;
    margin-top: 7px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .v2-quote {
    padding-block: 52px;
  }

  .v2-quote__aside,
  .v2-form {
    padding: 20px;
  }

  .v2-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .v2-form input,
  .v2-form select,
  .v2-form textarea,
  .nexo-form input,
  .nexo-form select,
  .nexo-form textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .v2-form__privacy,
  .nexo-form__checkbox {
    min-height: 44px;
  }

  .v2-rfq-progress {
    margin-bottom: 22px;
    padding: 15px;
  }

  .v2-rfq-progress__steps li {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .v2-rfq-step__actions {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 9px;
    margin-top: 20px;
    padding-top: 17px;
  }

  .v2-rfq-step__actions:has([data-rfq-next]:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-rfq-step__actions .v2-btn {
    width: 100%;
    min-height: 50px;
    padding-inline: 12px;
    font-size: 0.83rem;
    line-height: 1.2;
  }

  .v2-rfq-step__actions [data-rfq-prev] {
    margin-right: 0;
  }

  .v2-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  /* Bottom actions use the thumb zone and leave iOS/Android safe areas clear. */
  .nexo-mobile-actions {
    position: fixed;
    z-index: 60;
    right: var(--nexo-ux-safe-right);
    bottom: var(--nexo-ux-safe-bottom);
    left: var(--nexo-ux-safe-left);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 17px;
    background: rgba(3, 7, 8, 0.95);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom)));
    transition: opacity 180ms ease, transform 220ms ease;
  }

  .nexo-mobile-actions.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nexo-mobile-actions__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
    padding-inline: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
  }

  .nexo-mobile-actions__link--quote {
    color: #071012;
    border-color: #ffb66f;
    background: linear-gradient(135deg, var(--nexo-ux-orange), #ffad5e);
  }

  .nexo-mobile-actions__link--whatsapp {
    color: #fff;
    border-color: #4bc77d;
    background: #176a3c;
  }

  .nexo-mobile-actions__quote-icon,
  .nexo-mobile-actions__whatsapp-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
    inline-size: 22px;
    block-size: 22px;
    border: 2px solid currentColor;
    border-radius: 7px;
  }

  .nexo-mobile-actions__whatsapp-icon {
    border-radius: 50%;
  }

  body.nexo-mobile-actions-visible {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .nexo-whatsapp-float {
    display: none !important;
  }
}

@media (min-width: 360px) and (max-width: 720px) {
  .v2-hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-hero__actions .v2-btn {
    width: auto;
  }
}

@media (max-width: 359px) {
  :root {
    --v2-container: calc(100vw - 24px);
  }

  .v2-header__inner {
    margin-right: calc(10px + env(safe-area-inset-right));
    margin-left: calc(10px + env(safe-area-inset-left));
  }

  .v2-logo__image,
  .v2-header.is-scrolled .v2-logo__image {
    width: 126px;
  }

  .v2-hero h1 {
    font-size: clamp(2.45rem, 13.5vw, 2.75rem);
  }

  .v2-hero__content {
    padding-bottom: 48px;
  }

  .v2-stat {
    grid-template-columns: 26px minmax(0, 1fr);
    padding-inline: 9px;
  }

  .v2-stat__icon {
    width: 25px;
    height: 25px;
  }

  .v2-stat strong {
    font-size: 1.55rem;
  }

  .v2-capacity__items article {
    min-height: 108px;
    padding: 13px 11px;
  }

  .v2-capacity__items strong {
    font-size: 1.28rem;
  }

  .v2-rfq-progress__steps li > span:last-child {
    font-size: 0.61rem;
  }

  .nexo-mobile-actions {
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  }

  .nexo-mobile-actions__link {
    gap: 5px;
    padding-inline: 8px;
    font-size: 0.77rem;
  }
}

@media (pointer: coarse) {
  :where(
    a,
    button,
    input:not([type="hidden"]),
    select,
    summary,
    [role="button"]
  ) {
    min-block-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .v2-hero__image,
  .v2-sector-card__photo,
  .nexo-animate-in {
    transform: none !important;
  }

  .v2-capacity {
    background-attachment: scroll !important;
  }

  [data-nexo-lazy-bg] {
    transition: none !important;
  }
}
