:root {
  --bg: #F6F1E8;
  --bg-2: #EFE7DB;
  --surface: #F3EBDF;
  --surface-2: #F0E7DA;
  --line: #D8CDBF;
  --heading: #4E5358;
  --title: #56514B;
  --body: #666057;
  --muted: #7E7468;
  --accent: #4F6A78;
  --accent-2: #5A7583;
  --accent-3: #4C6673;
  --max: 1120px;
  --narrow: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background:
    radial-gradient(circle at 1px 1px, rgba(60,56,50,0.018) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(255,250,242,0.45), rgba(160,148,136,0.03)),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container, .container-narrow {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}
.container-narrow { width: min(100% - 48px, var(--narrow)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  backdrop-filter: blur(8px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo,
.footer-logo {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--heading);
}
.logo { font-size: 1.45rem; }
.footer-logo { font-size: 1.25rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  color: #6A6259;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #FBF8F2;
  color: var(--heading);
  width: 40px;
  height: 40px;
  border-radius: 2px;
}
.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.mobile-panel.open { display: block; }
.mobile-panel .inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-panel a:not(.btn) { color: #6A6259; font-size: 0.95rem; }

.mobile-panel .btn-primary { color: #FFFDF8; }
.mobile-panel .btn-secondary { color: #615A52; }

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }
.hero { padding-top: 132px; }

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1 {
  color: var(--heading);
  letter-spacing: -0.06em;
  line-height: 0.96;
  font-size: clamp(2.9rem, 8vw, 4.7rem);
}
h2 {
  color: var(--heading);
  letter-spacing: -0.04em;
  line-height: 1.04;
  font-size: clamp(2rem, 5vw, 3rem);
}

.article-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
}


h3, h4 {
  color: var(--title);
  letter-spacing: -0.03em;
}
h3 { font-size: 1.25rem; }
h4 { font-size: 1.15rem; }

.lead { font-size: 1.17rem; line-height: 1.75; color: var(--body); }
.body-lg { font-size: 1.08rem; line-height: 1.75; color: var(--body); }
.body { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.manifesto { font-size: clamp(1.5rem, 3vw, 1.8rem); line-height: 1.25; color: var(--heading); letter-spacing: -0.04em; }

.stack-3 > * + * { margin-top: 12px; }
.stack-4 > * + * { margin-top: 16px; }
.stack-5 > * + * { margin-top: 20px; }
.stack-6 > * + * { margin-top: 24px; }
.stack-8 > * + * { margin-top: 32px; }
.mt-7 { margin-top: 28px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--accent-2);
  color: #FFFDF8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover { background: var(--accent-3); }
.btn-secondary {
  border: 1px solid #D1C5B8;
  background: #FBF8F2;
  color: #615A52;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: #46616F;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  border-radius: 2px;
}
.card.soft { background: #F4ECE1; }
.card.unit { background: var(--surface-2); }
.card-title { color: var(--title); font-size: 1.15rem; }
.card-kicker {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card p { color: var(--muted); line-height: 1.75; }
.card.flex { display: flex; flex-direction: column; height: 100%; }
.card.flex .cta-row { margin-top: auto; padding-top: 40px; }

.list-rows,
.steps,
.article-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.row,
.step,
.article-row {
  border-bottom: 1px solid var(--line);
}
.row:last-child,
.step:last-child,
.article-row:last-child { border-bottom: 0; }

.capability {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.capability p { margin-top: 12px; color: var(--muted); }

.step {
  display: grid;
  grid-template-columns: 70px 180px 1fr;
  gap: 16px;
  padding: 32px 0;
}
.step-no,
.short-step-no,
.kicker-blue { color: var(--accent); }
.step-no, .short-step-no {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}
.short-steps .row {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  align-items: flex-start;
}
.short-step-text { color: var(--title); font-size: 1.08rem; line-height: 1.75; }

.article-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 120px;
  gap: 16px;
  padding: 28px 0;
  transition: color 0.2s ease;
}
.article-row:hover { color: #46616F; }
.article-row .meta { color: var(--accent); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.article-row .excerpt,
.article-row .date { color: var(--muted); }
.article-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--body);
}
.article-body p { margin: 0 0 28px; }

.contact-box {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  border-radius: 2px;
}
.form-label { display: block; margin-bottom: 8px; font-size: 0.95rem; color: var(--body); }
.input, .textarea {
  width: 100%;
  border: 1px solid #D1C5B8;
  background: #FCF8F2;
  color: var(--title);
  padding: 12px 16px;
  border-radius: 2px;
  outline: none;
  font: inherit;
}
.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { min-height: 170px; resize: vertical; }
.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 0.95rem;
}
.notice.success { background: #edf3ee; border: 1px solid #c6d8ca; color: #56735d; }
.notice.error { background: #f7ebe6; border: 1px solid #dec1b7; color: #8a5e51; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px) auto;
  gap: 32px;
  align-items: end;
}
.footer-links {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-links a {
  display: block;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--accent);
}
.small { font-size: 0.95rem; color: var(--muted); }

@media (max-width: 900px) {
  .nav-links, .desktop-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
  .grid-2, .card-grid, .article-row, .step { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .step { gap: 10px; }
}

.x-link {
  display: inline-flex;
  align-items: center;
  color: var(--heading);
}

.x-link:hover {
  color: var(--accent);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

@media (min-width: 900px) {
  .footer-links {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
}

.tg-link {
  display: inline-flex;
  align-items: center;
  color: var(--heading);
}

.tg-link:hover {
  color: var(--accent);
}

.apk-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #D1C5B8;
  background: transparent;
  color: var(--heading);
  border-radius: 999px;
  transition: 0.2s ease;
}

.apk-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.apk-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #5A7583;
}

.apk-pill-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.apk-pill-text {
  font-size: 0.9rem;
  line-height: 1;
  color: inherit;
}

.footer-links-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.footer-cta {
  margin-top: 0;
}

.language-menu {
  position: relative;
  margin-top: 20px;
  width: fit-content;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid #D1C5B8;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  transition: 0.2s ease;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.language-menu-arrow {
  margin-left: auto;
  color: var(--accent-2);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.language-menu[open] .language-menu-arrow {
  transform: rotate(180deg);
}

.language-menu-list {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: 220px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #FBF8F2;
  box-shadow: 0 8px 24px rgba(78, 83, 88, 0.08);
}

.language-menu-list a {
  display: block;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.language-menu-list a:last-child {
  border-bottom: 0;
}

.language-menu-list a:hover {
  background: var(--surface);
  color: var(--accent);
}

.language-menu-list a.active {
  color: var(--accent);
  font-weight: 600;
}

[dir="rtl"] .language-menu-list {
  left: auto;
  right: 0;
}



@media (max-width: 900px) {
  .footer-grid {
    row-gap: 28px;
  }

  .footer-links-wrap {
    gap: 28px;
  }

  .footer-cta {
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
}
