:root {
  --leaf: #63bd38;
  --leaf-deep: #245f1d;
  --lemon: #f4d94f;
  --paper: #fbfbf1;
  --paper-soft: #f3f6e9;
  --ink: #11170f;
  --muted: #64705f;
  --line: rgba(35, 64, 29, .14);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
}

.hero-section {
  position: relative;
  min-height: 760px;
  color: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #dce8cc;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(.94) brightness(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 251, 241, .88) 0%, rgba(251, 251, 241, .68) 34%, rgba(251, 251, 241, .1) 67%, rgba(251, 251, 241, .35) 100%),
    linear-gradient(180deg, rgba(251, 251, 241, .24) 0%, rgba(251, 251, 241, .08) 62%, var(--paper) 100%);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(1280px, calc(100% - 72px));
  height: 76px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-logo,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(58, 112, 35, .16);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 50px);
  font-size: 15px;
  font-weight: 850;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a:first-child::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--leaf);
}

.header-download {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: var(--leaf);
  box-shadow: 0 14px 28px rgba(86, 172, 48, .26);
  display: inline-flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 64px;
  width: min(1280px, calc(100% - 72px));
  min-height: 670px;
  margin: 0 auto;
  padding: 52px 0 96px;
}

.hero-copy {
  position: relative;
  max-width: 690px;
  padding-top: 42px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(58px, 6vw, 92px);
  line-height: .96;
  font-weight: 1000;
  letter-spacing: 0;
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 248px;
  height: 22px;
  margin: -8px 0 16px 74px;
  background: linear-gradient(90deg, rgba(244, 217, 79, .9), rgba(244, 217, 79, 0));
  transform: skew(-16deg);
}

.hero-copy p {
  margin: 0 0 46px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 900;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.download-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 178px;
  height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 13px;
  color: #fff;
  background: rgba(22, 22, 18, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 44px rgba(35, 64, 29, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .18s ease, background .18s ease;
}

.download-badge:hover,
.download-badge:focus-visible {
  transform: translateY(-2px);
  background: rgba(22, 22, 18, .72);
}

.platform-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #1f2a1a;
  background: rgba(255, 255, 255, .92);
  font-weight: 950;
  font-size: 13px;
}

.download-badge small,
.download-badge strong {
  display: block;
  letter-spacing: 0;
}

.download-badge small {
  font-size: 12px;
  opacity: .78;
}

.download-badge strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1;
}

.qr-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  width: 178px;
  padding: 12px 12px 13px;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 22px 58px rgba(22, 38, 17, .26);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity .18s ease, transform .18s ease;
}

.qr-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.qr-popover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
}

.qr-popover em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  color: #33402e;
}

.download-badge.miniapp:hover .qr-popover,
.download-badge.miniapp:focus-visible .qr-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-mascot {
  position: absolute;
  left: 650px;
  bottom: -10px;
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(40, 75, 29, .22));
}

.phone-preview {
  align-self: stretch;
  min-height: 580px;
  padding: 18px;
  border: 1px solid rgba(42, 70, 35, .12);
  border-radius: 36px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 90px rgba(35, 64, 29, .22);
  overflow: hidden;
}

.phone-head,
.phone-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-head {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 950;
}

.phone-head span {
  padding: 2px 10px;
  border-radius: 999px;
  background: #f0f3eb;
  font-size: 14px;
}

.phone-tabs {
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 16px;
  color: #7b8573;
  font-weight: 850;
  font-size: 13px;
}

.phone-tabs .active {
  color: var(--leaf-deep);
  border-bottom: 3px solid var(--leaf);
  padding-bottom: 7px;
}

.phone-feed {
  display: grid;
  gap: 14px;
}

.phone-feed article {
  position: relative;
  height: 142px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #dce8cc;
}

.phone-feed article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-feed article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .58));
}

.phone-feed article div {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 13px;
  z-index: 1;
}

.phone-feed article strong,
.phone-feed article span {
  display: block;
}

.phone-feed article strong {
  font-size: 15px;
}

.phone-feed article span {
  margin-top: 4px;
  font-size: 12px;
  opacity: .86;
}

.story-section,
.entry-section,
.cooperation-section,
.tile-section,
.site-footer {
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr);
  gap: 74px;
  align-items: center;
  padding: 110px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf-deep);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.section-copy h2,
.entry-copy h2,
.cooperation-card h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1.06;
  font-weight: 1000;
  letter-spacing: 0;
}

.section-copy p,
.entry-copy p,
.cooperation-card p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  font-weight: 650;
}

.text-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 950;
}

.text-link {
  color: var(--leaf-deep);
  background: rgba(99, 189, 56, .1);
}

.primary-link {
  color: #fff;
  background: var(--leaf);
}

.story-collage {
  position: relative;
  min-height: 560px;
}

.story-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(35, 64, 29, .16);
}

.story-main {
  inset: 42px auto auto 0;
  width: 64%;
  height: 410px;
}

.story-side.top {
  right: 0;
  top: 0;
  width: 42%;
  height: 230px;
}

.story-side.bottom {
  right: 8%;
  bottom: 0;
  width: 46%;
  height: 260px;
}

.mini-strip {
  position: absolute;
  left: 8%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 22, 18, .52);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mini-strip span,
.mini-strip em {
  font-size: 13px;
  font-style: normal;
  opacity: .78;
}

.entry-section {
  padding: 84px 0 96px;
}

.entry-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) 230px minmax(260px, .75fr);
  gap: 34px;
  align-items: center;
  padding: 52px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42)),
    linear-gradient(90deg, #f3f7e9, #fbfbf1);
  border: 1px solid var(--line);
}

.entry-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.entry-downloads a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1d2519;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.entry-downloads span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fff;
  color: #1d2519;
  font-size: 11px;
}

.qr-feature {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 28px 54px rgba(35, 64, 29, .14);
}

.qr-feature > img:first-child {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.qr-feature strong,
.qr-feature span {
  display: block;
}

.qr-feature strong {
  margin-top: 12px;
  font-size: 16px;
}

.qr-feature span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.qr-mascot {
  position: absolute;
  right: -20px;
  bottom: -22px;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.product-preview {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background: #dfe9d2;
  box-shadow: 0 28px 70px rgba(35, 64, 29, .16);
}

.product-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.preview-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(21, 31, 18, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.preview-note span,
.preview-note strong {
  display: block;
}

.preview-note span {
  font-size: 12px;
  opacity: .78;
}

.preview-note strong {
  margin-top: 4px;
  font-size: 16px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-row span {
  padding: 22px 8px;
  text-align: center;
  font-weight: 950;
  color: var(--leaf-deep);
}

.proof-row span + span {
  border-left: 1px solid var(--line);
}

.tile-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px 0 88px;
}

.tile-section article {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
  background: #dde8d0;
}

.tile-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-section article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .52));
}

.tile-section strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
  font-size: 20px;
}

.cooperation-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 44px;
  align-items: stretch;
  padding: 42px 0 96px;
}

.cooperation-photo,
.cooperation-card {
  border-radius: 30px;
  overflow: hidden;
}

.cooperation-photo {
  min-height: 520px;
  background: #dce8cc;
}

.cooperation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cooperation-card {
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(35, 64, 29, .12);
}

.cooperation-options {
  display: grid;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cooperation-options span {
  padding: 16px 0;
  font-weight: 950;
}

.cooperation-options span + span {
  border-top: 1px solid var(--line);
}

.contact-lines {
  display: grid;
  gap: 9px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 750;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  padding: 42px 0 48px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 460px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px 26px;
  flex-wrap: wrap;
  max-width: 520px;
  font-weight: 850;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #7d8876;
  font-size: 13px;
}

.agreement-page {
  min-height: 100vh;
  padding: 32px 20px 72px;
  background: #f8faf5;
}

.back-home {
  display: inline-flex;
  margin: 0 0 24px calc((100% - min(860px, 100%)) / 2);
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--leaf-deep);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}

.agreement-document {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 44px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.agreement-document h1 {
  margin: 0;
  font-size: 42px;
}

.agreement-meta {
  display: flex;
  gap: 16px;
  margin: 14px 0 28px;
  color: var(--muted);
}

.agreement-content {
  color: #33402e;
  line-height: 1.9;
}

@media (max-width: 1050px) {
  .site-header,
  .hero-content,
  .story-section,
  .entry-section,
  .cooperation-section,
  .tile-section,
  .site-footer {
    width: min(100% - 36px, 760px);
  }

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

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content,
  .story-section,
  .entry-panel,
  .cooperation-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 34px;
    min-height: 0;
    padding: 54px 0 72px;
  }

  .phone-preview {
    min-height: 0;
  }

  .hero-mascot {
    left: auto;
    right: 12px;
    bottom: -38px;
  }

  .story-section {
    gap: 34px;
    padding: 76px 0 64px;
  }

  .entry-panel {
    padding: 28px;
  }

  .tile-section {
    grid-template-columns: 1fr;
  }
}

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

  .header-download {
    display: none;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-copy p {
    font-size: 25px;
  }

  .download-row,
  .entry-downloads {
    flex-direction: column;
    align-items: stretch;
  }

  .download-badge {
    width: 100%;
  }

  .download-row .qr-popover {
    display: none;
  }

  .hero-mascot {
    position: static;
    margin: 18px 0 0 auto;
  }

  .story-collage {
    min-height: 470px;
  }

  .story-main {
    width: 78%;
    height: 300px;
  }

  .story-side.top,
  .story-side.bottom {
    width: 52%;
  }

  .proof-row {
    grid-template-columns: 1fr;
  }

  .proof-row span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
