@font-face {
  font-family: Pretendard;
  src: url('./fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10223b;
  --deep: #0b1729;
  --blue: #245d9e;
  --sky: #dceaf6;
  --amber: #d2a35a;
  --paper: #f6f5f0;
  --white: #fff;
  --muted: #627188;
  --line: #d7dce1;
  font-family: Pretendard, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 104px, 1540px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -100px;
  left: 20px;
  padding: 12px 18px;
  color: white;
  background: var(--blue);
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(247, 247, 244, 0.97);
  border-bottom: 1px solid rgba(16, 34, 59, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 45px;
  height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-symbol {
  display: flex;
  align-items: end;
  gap: 4px;
  width: 24px;
  height: 29px;
  transform: skewY(-16deg);
}

.brand-symbol i {
  display: block;
  width: 5px;
  background: var(--blue);
}

.brand-symbol i:nth-child(1) {
  height: 12px;
}

.brand-symbol i:nth-child(2) {
  height: 20px;
}

.brand-symbol i:nth-child(3) {
  height: 29px;
  background: var(--amber);
}

.brand-type {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.brand-type small {
  display: block;
  padding-top: 7px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.31em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 55px);
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  padding-block: 32px;
  font-size: 15px;
  font-weight: 730;
  white-space: nowrap;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 13px 17px 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.header-contact:hover {
  color: white;
  background: var(--ink);
}

.header-contact span {
  font-size: 20px;
  line-height: 0.7;
}

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 45px;
  height: 45px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.all-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - 88px);
  overflow: auto;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(-15px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.all-menu[hidden] {
  display: none;
}

.all-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.all-menu-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr;
  gap: 8vw;
  padding-block: 70px 80px;
}

.menu-lead {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.menu-lead > span,
.small-label {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.menu-lead > span {
  color: var(--amber);
}

.menu-lead p {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 570;
  line-height: 1.3;
  letter-spacing: -0.065em;
}

.menu-lead a {
  margin-top: auto;
  padding-bottom: 9px;
  border-bottom: 1px solid currentColor;
  font-weight: 750;
}

.menu-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 60px;
}

.menu-groups h2 {
  margin: 0 0 18px;
  color: #b5c6d7;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.menu-groups a {
  display: flex;
  justify-content: space-between;
  padding-block: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 19px;
  font-weight: 550;
  transition: color 0.2s ease;
}

.menu-groups a:hover {
  color: var(--amber);
}

.nojs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 15px;
}

.nojs-nav a {
  text-decoration: underline;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-width: 195px;
  padding: 17px 17px 17px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.pill-link:hover {
  transform: translateY(-4px);
}

.pill-link span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 17px;
}

.pill-link.light {
  color: var(--ink);
  background: white;
}

.pill-link.light span {
  color: white;
  background: var(--blue);
}

.pill-link.dark {
  color: white;
  background: var(--ink);
}

.pill-link.dark span {
  color: var(--ink);
  background: white;
}

.under-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

.under-link span {
  transition: transform 0.25s ease;
}

.under-link:hover span {
  transform: translate(3px, -3px);
}

.site-footer {
  color: white;
  background: var(--deep);
}

.footer-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  padding-block: 110px 95px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-top .small-label {
  color: var(--amber);
}

.footer-top h2 {
  margin: 25px 0 0;
  font-size: clamp(42px, 5.3vw, 84px);
  font-weight: 580;
  line-height: 1.15;
  letter-spacing: -0.075em;
}

.footer-top h2 em {
  color: #9abfe4;
  font-style: normal;
}

.footer-cta {
  display: inline-flex;
  justify-content: space-between;
  gap: 80px;
  min-width: 240px;
  padding: 18px 0;
  border-bottom: 1px solid white;
  font-size: 17px;
  font-weight: 750;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  padding-block: 70px;
}

.footer-brand {
  font-size: 31px;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.footer-brand span {
  display: block;
  margin-top: 3px;
  color: #a1c2e3;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.footer-main p {
  color: #a9bbcf;
  font-size: 14px;
  line-height: 1.8;
}

.footer-main nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px 45px;
  align-content: start;
  font-size: 14px;
  font-weight: 650;
}

.footer-main nav a:hover,
.footer-legal a:hover {
  color: #a1c2e3;
}

.footer-bottom {
  padding-block: 25px 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #a9bbcf;
  font-size: 12px;
  line-height: 1.75;
}

.websave-company-info p {
  margin: 2px 0;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 1000px) {
  .primary-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 36px, 640px);
  }

  .header-inner {
    height: 72px;
  }

  .header-contact {
    display: none;
  }

  .all-menu-inner {
    display: block;
    padding-block: 35px 60px;
  }

  .menu-lead p {
    margin-block: 15px 26px;
  }

  .menu-groups {
    gap: 28px 20px;
    margin-top: 55px;
  }

  .menu-groups a {
    font-size: 16px;
  }

  .footer-top,
  .footer-main,
  .footer-legal {
    display: block;
  }

  .footer-top {
    padding-block: 75px 65px;
  }

  .footer-cta {
    margin-top: 35px;
  }

  .footer-main nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
  }

  .footer-legal > div {
    margin-top: 18px;
  }
}

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

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