:root {
  color-scheme: light;
  --ink: #16161d;
  --muted: #5a6070;
  --line: #ecedf3;
  --violet: #6d4dff;
  --violet-dark: #5a3bec;
}

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

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

body {
  min-width: 320px;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

.slot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(109, 77, 255, 0.35);
  outline-offset: 3px;
}

[data-screen-label] {
  scroll-margin-top: 88px;
}

.site-header > div {
  position: relative;
}

.site-nav a[aria-current="page"] {
  color: var(--violet) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
  content: "";
}

.menu-toggle span {
  margin: 4px 0;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

#form-status:not([hidden]) {
  display: block;
}

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

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

@media (max-width: 1040px) {
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .site-header > div {
    gap: 16px !important;
  }

  .site-nav {
    gap: 18px !important;
  }
}

@media (max-width: 900px) {
  [style*="grid-template-columns:1.05fr 1fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns:1.15fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns:1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .header-cta {
    display: none !important;
  }

  .site-nav {
    position: absolute;
    z-index: 5;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    display: none !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(22, 22, 29, 0.14);
  }

  .site-nav.is-open {
    display: flex !important;
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: #f5f3ff;
  }

  [style*="animation:floatChip"] {
    display: none !important;
  }
}

@media (max-width: 680px) {
  [style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-auto-rows:150px"] {
    grid-auto-rows: 120px !important;
  }

  section[style*="padding:96px 24px"],
  section[style*="padding:88px 24px"],
  section[style*="padding:0 24px 96px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  section[style*="padding:96px 24px"],
  section[style*="padding:88px 24px"] {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .site-header > div {
    height: 68px !important;
    padding: 0 18px !important;
  }

  .site-nav {
    left: 18px;
    right: 18px;
  }

  .site-footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  h1,
  h2 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .site-header a > span > span:last-child {
    display: none !important;
  }

  .site-header a > svg {
    width: 36px;
    height: 36px;
  }
}
