:root {
  color-scheme: light;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #68736b;
  --subtle: #929a94;
  --line: #e4e9e4;
  --accent: #326146;
  --accent-strong: #234b34;
  --accent-tint: #e9f0e9;
  --page-width: 1240px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(50 97 70 / 60%);
  outline-offset: 3px;
}

.site-header,
.hero,
.catalog,
.closing,
.site-footer {
  width: min(calc(100% - 80px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
}

.brand-name {
  font-size: 15px;
  font-weight: 720;
}

.brand-name-light {
  color: var(--muted);
  font-weight: 470;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link:hover,
.closing a:hover {
  color: var(--accent);
}

.nav-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.nav-action:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.hero {
  min-height: 466px;
  display: grid;
  grid-template-columns: 0.91fr 1.09fr;
  align-items: center;
  gap: 52px;
  padding-block: 46px 42px;
}

.hero-copy {
  padding-bottom: 9px;
}

.hero-eyebrow,
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 640;
}

.eyebrow-line {
  width: 17px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 23px 0 16px;
  font-size: 63px;
  font-weight: 690;
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 388px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.hero-link {
  width: fit-content;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 19px;
  margin-top: 24px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 590;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.hero-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.hero-link-icon {
  font-size: 16px;
}

.hero-art {
  position: relative;
  min-width: 0;
  height: 354px;
}

.art-caption {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.art-caption-top {
  top: 0;
  left: 8px;
}

.caption-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.screen {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgb(23 33 27 / 9%);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(20 36 26 / 12%);
}

.screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.screen figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 3px;
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  font-size: 10px;
  font-weight: 560;
}

.caption-square {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.screen-main {
  z-index: 0;
  inset: 39px 29% 32px 0;
}

.screen-main img {
  object-position: 50% 10%;
}

.screen-worldcup {
  z-index: 1;
  top: 15px;
  right: 0;
  width: 39%;
  height: 153px;
}

.screen-kousuan {
  z-index: 1;
  right: 0;
  bottom: 43px;
  width: 36%;
  height: 129px;
}

.screen-worldcup img {
  object-position: top;
}

.screen-kousuan img {
  object-position: 12% 11%;
}

.art-caption-bottom {
  right: 0;
  bottom: 8px;
}

.art-rule {
  width: 18px;
  height: 1px;
  background: #a8b2aa;
}

.catalog {
  padding-block: 52px 63px;
  border-top: 1px solid var(--line);
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-eyebrow {
  margin: 0 0 9px;
}

.catalog-heading h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 630;
  line-height: 1.5;
}

.catalog-count {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-count span {
  padding-right: 4px;
  color: var(--accent);
  font-weight: 720;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  margin-bottom: 14px;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-button {
  min-height: 33px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.filter-button:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.filter-button.is-active {
  border-color: var(--accent-tint);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 610;
}

.search-field {
  width: min(100%, 228px);
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: border-color 140ms ease;
}

.search-field:focus-within {
  border-color: var(--accent);
}

.search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1.5px solid var(--subtle);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--subtle);
  content: "";
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-field input::placeholder {
  color: #8c948e;
}

.search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-field kbd {
  min-width: 17px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--subtle);
  font-family: inherit;
  font-size: 11px;
}

.results-message {
  min-height: 14px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.app-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 28px;
}

.app-group {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.app-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.group-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgb(23 33 27 / 6%);
  border-radius: 15px;
  background: #edf2ed;
  font-size: 24px;
  box-shadow: 0 5px 14px rgb(20 36 26 / 6%);
}

.group-mark-life { background: #e9f1ff; }
.group-mark-health { background: #fff0e9; }
.group-mark-learning { background: #f1ebff; }
.group-mark-fun { background: #fff1dc; }

.group-eyebrow {
  margin: 0 0 3px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 690;
  letter-spacing: 0.1em;
}

.app-group-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 680;
  line-height: 1.35;
}

.group-meta {
  min-width: 0;
  text-align: right;
}

.group-description {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.group-count {
  color: var(--subtle);
  font-size: 10px;
  white-space: nowrap;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.group-grid .app-card:only-child {
  grid-column: 1 / -1;
}

.app-card {
  min-width: 0;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgb(50 97 70 / 35%);
  box-shadow: 0 12px 28px rgb(20 36 26 / 8%);
}

.app-card-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.app-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgb(23 33 27 / 7%);
  border-radius: 18px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 31px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), 0 6px 15px rgb(20 36 26 / 7%);
  transition: transform 180ms ease;
}

.app-card:hover .app-icon { transform: rotate(-4deg) scale(1.04); }
.app-icon-family { background: linear-gradient(145deg, #eaf2ff, #d9e7ff); }
.app-icon-food { background: linear-gradient(145deg, #fff5df, #ffe7b4); }
.app-icon-fitness { background: linear-gradient(145deg, #ffefe7, #ffd4bd); }
.app-icon-teeth { background: linear-gradient(145deg, #e8f7fa, #cbeef2); }
.app-icon-dance { background: linear-gradient(145deg, #f6e9ff, #e8d2ff); }
.app-icon-worldcup { background: linear-gradient(145deg, #e6f6e8, #c8ebce); }
.app-icon-math { background: linear-gradient(145deg, #efeaff, #dcd2ff); }
.app-icon-ticketseat { background: linear-gradient(145deg, #fff0db, #ffdbab); }

.app-arrow {
  color: #849188;
  font-size: 16px;
  line-height: 1;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.app-card:hover .app-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.app-card-copy {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 15px;
}

.app-category {
  color: var(--accent);
  font-size: 10px;
  font-weight: 620;
}

.app-title {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.app-description {
  max-width: 37ch;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.empty-state {
  margin: 15px 0 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.closing {
  min-height: 79px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 19px;
  border-top: 1px solid var(--line);
}

.closing-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #dde6de;
  border-radius: 6px;
  background: #edf2ed;
  color: var(--accent);
  font-size: 15px;
  font-weight: 690;
}

.closing p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.closing a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 10px;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@media (min-width: 1440px) {
  .site-header,
  .hero,
  .catalog,
  .closing,
  .site-footer {
    width: min(calc(100% - 112px), var(--page-width));
  }
}

@media (max-width: 1199px) {
  .app-groups { grid-template-columns: 1fr; gap: 30px; }

  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {

  .site-header,
  .hero,
  .catalog,
  .closing,
  .site-footer {
    width: calc(100% - 52px);
  }

  .hero {
    min-height: 420px;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-art {
    height: 306px;
  }

  .screen-main {
    inset: 39px 25% 34px 0;
  }

  .screen-worldcup {
    height: 136px;
  }

  .screen-kousuan {
    height: 114px;
    bottom: 45px;
  }

  

  .app-card {
    min-height: 175px;
  }

  

  

  
}

@media (max-width: 720px) and (min-width: 621px) {
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .app-groups { gap: 24px; }

  .app-group { padding-top: 15px; }

  .app-group-heading { gap: 8px; }

  .group-title-wrap { gap: 9px; }

  .group-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }

  .app-group-heading h3 { font-size: 19px; }

  .group-description { max-width: 160px; font-size: 9px; }

  .group-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }

  .app-card { min-height: 178px; padding: 15px; border-radius: 11px; }

  .app-icon { width: 55px; height: 55px; border-radius: 16px; font-size: 28px; }

  .app-card-copy { padding-top: 11px; }

  .app-title { font-size: 16px; }

  .app-description { font-size: 11px; }

  html {
    scroll-padding-top: 20px;
  }

  .site-header,
  .hero,
  .catalog,
  .closing,
  .site-footer {
    width: calc(100% - 36px);
  }

  .site-header {
    height: 64px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .brand-name {
    font-size: 14px;
  }

  .primary-nav {
    gap: 13px;
  }

  .primary-nav > .nav-link:nth-child(2) {
    display: none;
  }

  .nav-link,
  .nav-action {
    font-size: 11px;
  }

  .nav-action {
    min-height: 35px;
    gap: 8px;
    padding-inline: 10px;
  }

  .hero {
    min-height: unset;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 37px 31px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    margin-block: 15px 12px;
    font-size: 38px;
    line-height: 1.36;
  }

  .hero-intro {
    max-width: 38ch;
    font-size: 13px;
    line-height: 1.85;
  }

  .hero-link {
    min-height: 40px;
    margin-top: 17px;
    font-size: 12px;
  }

  .hero-art {
    height: 238px;
  }

  .art-caption {
    font-size: 9px;
  }

  .screen-main {
    inset: 33px 22% 27px 0;
  }

  .screen-worldcup {
    top: 17px;
    width: 38%;
    height: 99px;
  }

  .screen-kousuan {
    width: 36%;
    height: 82px;
    bottom: 39px;
  }

  .screen figcaption {
    right: 5px;
    bottom: 5px;
    gap: 5px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .catalog {
    padding-block: 31px 38px;
  }

  .catalog-heading {
    align-items: end;
    gap: 8px;
  }

  .section-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .catalog-heading h2 {
    font-size: 22px;
  }

  .catalog-count {
    flex: 0 0 auto;
    margin-bottom: 4px;
    font-size: 10px;
  }

  .catalog-tools {
    align-items: start;
    flex-direction: column-reverse;
    gap: 11px;
    margin-top: 14px;
    margin-bottom: 12px;
  }

  .search-field {
    width: 100%;
    min-height: 38px;
  }

  .category-filters {
    max-width: 100%;
    overflow-x: auto;
    gap: 3px;
    padding-block: 1px;
    scrollbar-width: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    min-height: 31px;
    flex: 0 0 auto;
    padding-inline: 10px;
    font-size: 11px;
  }

  

  .app-card {
    min-height: 178px;
    padding: 15px;
    border-radius: 11px;
  }

  .app-card-topline {
    align-items: center;
  }

  .app-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    font-size: 28px;
  }

  .app-card-copy {
    gap: 4px;
    padding-top: 13px;
  }

  .app-category {
    font-size: 10px;
  }

  .app-title {
    font-size: 16px;
  }

  .app-description {
    max-width: 45ch;
    font-size: 11px;
    line-height: 1.7;
  }

  

  

  

  .closing {
    min-height: 68px;
    gap: 9px;
  }

  .closing-mark {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    font-size: 13px;
  }

  .closing p,
  .closing a {
    font-size: 10px;
  }

  .closing p {
    max-width: 25ch;
    line-height: 1.6;
  }

  .closing a {
    gap: 4px;
    flex: 0 0 auto;
  }

  .site-footer {
    min-height: 43px;
    gap: 8px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
