@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --suzuki-blue: #213a8e;
  --suzuki-blue-dark: #172b6d;
  --suzuki-red: #bf033d;
  --ink: #1e2532;
  --steel: #586170;
  --line: #c3c9d3;
  --paper: #ffffff;
  --alu: #eceef0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--suzuki-blue);
  outline-offset: 2px;
}

.gate__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(26rem, 38vw, 36rem);
  min-height: 100vh;
  min-height: 100dvh;
}

.gate__visual {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d9dde2;
}

.gate__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  background: var(--paper);
  border-top: 6px solid var(--suzuki-red);
}

.gate__inner {
  width: 100%;
  max-width: 26rem;
  margin-block: auto;
}

.gate__logo {
  width: 7.5rem;
  margin-bottom: 2.5rem;
}

.gate__dealer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--steel);
}

.gate__plate {
  display: inline-block;
  padding: 0.12em 0.55em 0.1em;
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  background: var(--alu);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gate__title {
  margin: 0;
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: clamp(2.125rem, 1.6rem + 1.6vw, 2.875rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--suzuki-blue);
  text-wrap: balance;
}

.gate__text {
  margin: 1rem 0 2rem;
  color: var(--steel);
}

.gate__form {
  display: grid;
}

.gate__label {
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.gate__field {
  position: relative;
}

.gate__input {
  width: 100%;
  min-height: 3.375rem;
  padding: 0.7rem 7.5rem 0.7rem 1rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.gate__input:hover {
  border-color: var(--steel);
}

.gate__input:focus-visible {
  outline: none;
  border-color: var(--suzuki-blue);
  box-shadow: 0 0 0 3px rgb(33 58 142 / 0.25);
}

.gate__input[aria-invalid="true"] {
  border-color: var(--suzuki-red);
}

.gate__toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  min-height: 2.5rem;
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--suzuki-blue);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.gate__toggle:hover,
.gate__toggle[aria-pressed="true"] {
  background: var(--alu);
}

.gate__error {
  margin: 0.6rem 0 0;
  font-weight: 600;
  color: var(--suzuki-red);
}

.gate__submit {
  min-height: 3.375rem;
  margin-top: 1.5rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--suzuki-blue);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.gate__submit:hover {
  background: var(--suzuki-blue-dark);
}

.gate__footer {
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  color: var(--steel);
}

@media (max-width: 47.99rem) {
  .gate__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .gate__visual {
    height: 30vh;
    height: 30svh;
    min-height: 12rem;
  }

  .gate__visual img {
    object-position: 40% 100%;
  }

  .gate__panel {
    padding: 2rem 1.25rem 1.5rem;
  }

  .gate__logo {
    width: 5.5rem;
    margin-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate__submit {
    transition: none;
  }
}
