:root {
  /* Brand */
  --primary: #4E87E5;
  --primary-hover: #3e77d5;

  /* Text */
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #777777;
  --text-on-primary: #FFFFFF;

  /* Neutral */
  --white: #FFFFFF;
  --surface: #F5F8FD;
  --border: #EBEFF6;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background: var(--white);
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  width: 100%;
  height: 90px;
  background: var(--white);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1380px;
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: 48px;
  border-radius: 8px;
}

.brand-icon {
  display: block;
  flex: none;
  width: 41px;
  height: 48px;
}

.brand span {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 45px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.nav-link.is-current {
  color: var(--text-primary);
  background: var(--surface);
}

.header-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: auto;
  height: 48px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0;
  width: auto;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.language-option {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 16px;
  cursor: pointer;
}

.language-option:first-child {
  width: 48px;
}

.language-option:last-child {
  width: 44px;
}

.language-option.is-active {
  border: 1px solid var(--border);
  background: var(--border);
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 48px;
  border-radius: 8px;
  color: var(--text-on-primary);
  background: var(--primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.login-button:hover {
  background: var(--primary-hover);
}

.hero-section {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 821px;
  padding: 130px 30px;
  background: var(--surface);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1320px;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100%, 720px);
  text-align: center;
}

.hero-heading h1 {
  width: 460px;
  max-width: 100%;
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 48px;
}

.hero-heading h1 span {
  color: var(--primary);
}

.hero-heading p {
  width: 100%;
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
}

.search-container {
  display: flex;
  justify-content: center;
  width: 397px;
  height: 183px;
  margin: 0;
  padding: 40px 0 80px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 397px;
  height: 63px;
  padding: 20px;
  border-radius: 50px;
  background: var(--white);
  box-shadow: 4px 16px 32px rgba(205, 212, 223, 0.4);
}

.search-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-linecap: round;
  stroke-width: 1.5px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 23px;
}

.search-box input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.search-box:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 96px;
  padding: 8px 24px 8px 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.service-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.service-icon svg {
  width: 32px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5px;
}

.service-icon.shop {
  color: #3D8DAF;
  background: #DBF1F6;
}

.service-icon.job {
  color: #25573A;
  background: #E8F4D9;
}

.service-icon.offer {
  color: #499488;
  background: #D7F4ED;
}

.service-icon.course {
  color: #B162CC;
  background: #EEE5FF;
}

.service-icon.abroad {
  color: #8E8136;
  background: #FFF8CA;
}

.service-icon.services {
  color: #AE783D;
  background: #FDEBD8;
}

.service-icon.food {
  color: #843548;
  background: #FBEDED;
}

.service-icon.kajerbuuya {
  color: #4D77A6;
  background: #E9F0F6;
}

.service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.service-title {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
}

.service-link > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow-wrap {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  overflow: hidden;
}

.external-icon {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5px;
  transition: transform 240ms ease;
}

.arrow-current {
  transform: translate(0, 0);
}

.arrow-enter {
  transform: translate(-100%, 100%);
}

.service-card:hover .arrow-current,
.service-card:focus-visible .arrow-current {
  transform: translate(100%, -100%);
}

.service-card:hover .arrow-enter,
.service-card:focus-visible .arrow-enter {
  transform: translate(0, 0);
}

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

@media (max-width: 1100px) {
  .header-inner {
    padding: 0 30px;
  }

  .brand span {
    font-size: 28px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    padding-right: 24px;
  }

  .service-icon {
    width: 80px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 12px;
    min-height: 90px;
    padding: 16px 24px;
  }

  .brand span {
    font-size: 26px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
    width: auto;
  }

  .hero-section {
    min-height: 0;
    padding: 80px 24px;
  }

  .hero-heading p br {
    display: none;
  }
}

@media (max-width: 540px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    gap: 6px;
    height: 40px;
  }

  .brand-icon {
    width: 34px;
    height: 40px;
  }

  .brand span {
    font-size: 23px;
  }

  .login-button {
    width: 76px;
    height: 42px;
  }

  .header-action {
    gap: 8px;
  }

  .hero-section {
    padding: 64px 16px;
  }

  .hero-heading {
    gap: 18px;
  }

  .hero-heading h1 {
    width: 100%;
    font-size: 38px;
    line-height: 40px;
  }

  .hero-heading p {
    font-size: 16px;
    line-height: 24px;
  }

  .search-container,
  .search-box {
    width: 100%;
  }

  .search-container {
    height: 151px;
    padding: 32px 0 56px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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