:root {
  color-scheme: light;
  --bg: #f7fbf4;
  --paper: #fffefa;
  --ink: #172018;
  --muted: #637062;
  --line: #dce8d9;
  --accent: #1f8f5f;
  --accent-strong: #12613f;
  --accent-soft: #dff3e5;
  --sun: #ffcc66;
  --rose: #f48b78;
  --shadow: 0 24px 70px rgba(40, 73, 44, 0.16);
  --radius: 8px;
  --max: 1240px;
  --content: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 204, 102, 0.22), transparent 28rem),
    linear-gradient(180deg, #fbfff8 0%, var(--bg) 48%, #eef8ee 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 232, 217, 0.9);
  background: rgba(251, 255, 248, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--content), calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(31, 143, 95, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-height: 44px;
}

.nav-links a,
.lang-switch button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a:hover,
.lang-switch button:hover,
.lang-switch button.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-links a:focus-visible,
.lang-switch button:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(31, 143, 95, 0.42);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.lang-switch button {
  min-width: 34px;
  padding: 0 8px;
}

.hero,
.page-hero,
.section,
.legal-layout {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: 56px;
  padding: 66px 0 42px;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions,
.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(31, 143, 95, 0.24);
}

.button.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--accent-strong);
}

.hero-visual {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.phone-stack {
  position: relative;
  width: min(76%, 390px);
}

.phone-frame {
  overflow: hidden;
  border: 10px solid #172018;
  border-radius: 34px;
  background: #172018;
  box-shadow: 0 30px 70px rgba(23, 32, 24, 0.22);
}

.phone-frame img {
  display: block;
  width: 100%;
}

.mini-panel {
  position: absolute;
  left: -34px;
  bottom: 74px;
  width: min(230px, 58%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 18px 38px rgba(40, 73, 44, 0.14);
}

.mini-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.mini-panel span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  padding: 86px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-header p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.support-card,
.download-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 14px 34px rgba(40, 73, 44, 0.08);
}

.feature-card {
  padding: 24px;
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature-card h3,
.support-card h2,
.download-card h2,
.legal-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.feature-card p,
.support-card p,
.download-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.screen-row img {
  width: 100%;
  border-radius: 22px;
  border: 6px solid #172018;
  background: #172018;
  box-shadow: 0 20px 38px rgba(23, 32, 24, 0.16);
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.principle {
  min-height: 138px;
  border-radius: 8px;
  padding: 18px;
  background: #e8f5dc;
}

.principle:nth-child(2) {
  background: #fff1ca;
}

.principle:nth-child(3) {
  background: #e6f4f7;
}

.principle:nth-child(4) {
  background: #fae6dc;
}

.principle strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.principle span {
  color: #4f5f4e;
  font-size: 14px;
  line-height: 1.45;
}

.page-hero {
  padding: 72px 0 42px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0 92px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 254, 250, 0.84);
}

.toc a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-stack {
  display: grid;
  gap: 16px;
}

.legal-card,
.support-card,
.download-card {
  padding: 28px;
}

.support-grid,
.download-grid {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 92px;
}

.download-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: center;
}

.app-icon-large {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(31, 143, 95, 0.25);
}

.qr-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed #b8cbb6;
  border-radius: 8px;
  background: #f7fbf4;
  color: var(--muted);
  text-align: center;
  padding: 22px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: rgba(255, 254, 250, 0.72);
}

.footer-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.footer a {
  font-weight: 800;
  text-decoration: none;
}

[data-i18n-list] {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 560px;
    justify-content: center;
  }

  .feature-grid,
  .showcase,
  .support-grid,
  .download-grid,
  .legal-layout,
  .download-card.featured {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .page-hero {
    width: min(100% - 24px, var(--max));
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 44px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .phone-stack {
    width: min(82%, 340px);
  }

  .mini-panel {
    left: 0;
    width: min(230px, 66%);
  }

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

  .screen-row img {
    max-width: 290px;
    margin: 0 auto;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
