@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Montserrat-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Montserrat-Bold.ttf") format("truetype");
}

:root {
  --auth-container: 1620px;
  --auth-header-height: 112px;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  width: min(var(--auth-container), 100%);
  min-height: var(--auth-header-height);
  margin: 0 auto;
  padding: 0 clamp(24px, 3.1vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 3, 2, .94);
}

.site-header::before {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(227, 230, 1, .22), transparent);
}

.brand,
.footer-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(214px, 14.8vw, 260px);
  height: auto;
}

.menu-state,
.menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 3.2vw, 58px);
  margin-right: clamp(28px, 3.2vw, 58px);
  color: rgba(247, 247, 243, .86);
  font-size: 16px;
  line-height: 1;
}

.site-nav a {
  position: relative;
  padding: 16px 0;
  color: inherit;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--acid);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 48px;
  min-width: 188px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid rgba(227, 230, 1, .72);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: #050505;
}

.hero,
main,
.site-footer {
  width: min(1180px, calc(100% - 48px));
}

.hero h1,
main h2 {
  font-family: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
}

.hero h1 {
  max-width: 980px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.3fr) auto auto;
  gap: 28px;
  align-items: center;
  margin: 52px auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
}

.footer-brand img {
  display: block;
  width: clamp(174px, 12vw, 220px);
  height: auto;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav a,
.footer-main-link {
  color: inherit;
  transition: color 180ms ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.footer-main-link:hover,
.footer-main-link:focus-visible {
  color: var(--acid);
}

.footer-main-link {
  color: var(--acid);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.footer-legal {
  grid-column: 1 / -1;
  max-width: 1040px !important;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(247, 247, 243, .44) !important;
  font-size: 11px !important;
}

.callback-page main {
  width: min(680px, calc(100% - 32px));
}

.callback-brand {
  display: inline-flex;
  margin-bottom: 34px;
}

.callback-brand img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
}

@media (max-width: 1180px) {
  :root {
    --auth-header-height: 96px;
  }

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

  .brand img {
    width: 190px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 22;
    width: 48px;
    height: 48px;
    display: grid;
    place-content: center;
    padding: 0;
    border: 1px solid rgba(227, 230, 1, .42);
    border-radius: 8px;
    background: transparent;
    color: var(--acid);
    cursor: pointer;
    list-style: none;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle span + span {
    margin-top: 6px;
  }

  .menu-state:checked + .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-state:checked + .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: var(--auth-header-height);
    right: 16px;
    left: 16px;
    z-index: 21;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(227, 230, 1, .24);
    border-radius: 8px;
    background: rgba(5, 6, 6, .98);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
  }

  .menu-state:checked + .menu-toggle + .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }

  .site-footer > p:not(.footer-legal) {
    grid-column: 2;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  :root {
    --auth-header-height: 86px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand img {
    width: 164px;
  }

  .topbar,
  .hero,
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.02;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
    padding-bottom: 32px;
  }

  .footer-brand,
  .site-footer > p:not(.footer-legal),
  .site-footer nav,
  .footer-main-link,
  .footer-legal {
    grid-column: 1;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
  }
}

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