:root {
  color-scheme: light;
  --deep: #071c16;
  --ink: #17211c;
  --muted: #59665f;
  --green: #1f6846;
  --green-soft: #ddede3;
  --green-pale: #eef3ef;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --line: #d3dbd6;
  --focus: #0b6f63;
  --shadow: 0 24px 70px rgba(7, 28, 22, .09);
  --radius: 20px;
  --radius-lg: 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); line-height: 1.6; text-rendering: optimizeLegibility; }
[data-language] { display: none !important; }
html[data-lang="en"] [data-language="en"],
html[data-lang="ru"] [data-language="ru"] { display: block !important; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.shell { width: min(calc(100% - 40px), 1160px); margin-inline: auto; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(211, 219, 214, .82); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--deep); font-size: 17px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.wordmark::before { content: "e"; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--deep); color: #fff; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.wordmark span { color: var(--green); }
.language { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.language button { min-width: 42px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.language button[aria-pressed="true"] { color: #fff; background: var(--deep); }

.hero { min-height: min(700px, calc(100svh - 72px)); display: flex; align-items: center; padding: 96px 0 112px; }
.hero > div { max-width: 950px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3 { color: var(--deep); }
h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 8vw, 104px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
h1 em { color: inherit; font-style: normal; font-weight: inherit; }
.hero-copy { max-width: 680px; margin: 30px 0 0; color: #405049; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; letter-spacing: -.02em; }

.manifesto { padding: 96px 0; display: grid; grid-template-columns: .42fr 1.58fr; gap: clamp(40px, 8vw, 110px); border-top: 1px solid var(--line); }
.section-label { margin: 6px 0 0; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.manifesto h2, .approach h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5.4vw, 68px); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
.manifesto p:not(.section-label) { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 1.8vw, 23px); line-height: 1.55; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 104px; }
.value { min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value b { display: inline-flex; margin-bottom: 76px; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-family: Georgia, serif; font-size: 15px; font-weight: 500; }
.value h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.025em; }
.value p { margin: 0; color: var(--muted); line-height: 1.6; }
.value:nth-child(2) { background: var(--green-pale); }

.applications { padding: 100px 0; border-top: 1px solid var(--line); }
.applications-heading { max-width: 720px; margin-bottom: 40px; }
.applications-heading .section-label { margin-bottom: 18px; }
.applications-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5.4vw, 68px); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.application-card { min-height: 330px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.application-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 48px; border-radius: 16px; background: var(--green-soft); color: var(--green); font: 500 27px/1 Georgia, serif; }
.application-type { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.application-card h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.application-card p:not(.application-type) { max-width: 440px; margin: 0; color: var(--muted); }
.application-card a { margin-top: auto; padding-top: 32px; color: var(--green); font-size: 14px; font-weight: 800; text-decoration: none; }
.application-card a:hover { color: var(--deep); }

.approach { padding: 100px 0; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(54px, 9vw, 120px); align-items: start; border-top: 1px solid var(--line); }
.approach .section-label { margin-bottom: 20px; }
.approach-list { border-top: 1px solid var(--line); counter-reset: step; }
.approach-list p { counter-increment: step; margin: 0; padding: 22px 4px; display: grid; grid-template-columns: 48px 1fr; gap: 8px; border-bottom: 1px solid var(--line); color: #405049; font-size: 17px; line-height: 1.45; }
.approach-list p::before { content: "0" counter(step); color: var(--green); font-family: Georgia, serif; font-size: 16px; }
.footer { padding: 32px 0 46px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--green); text-underline-offset: 3px; }

.download-page { min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 14% 12%, rgba(221, 237, 227, .9), transparent 32rem), var(--paper); }
.download-main { min-height: calc(100svh - 72px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .72fr); gap: clamp(38px, 8vw, 108px); align-items: center; padding: clamp(38px, 7vh, 82px) 0; }
.download-main h1 { font-size: clamp(54px, 8vw, 96px); }
.product-description { max-width: 640px; margin: clamp(18px, 3vh, 28px) 0 0; color: #405049; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; letter-spacing: -.015em; }
.product-site-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--green); font-size: 14px; font-weight: 800; text-decoration: none; }
.product-site-link:hover { color: var(--deep); }
.store-area { padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); background: linear-gradient(155deg, #103329 0%, var(--deep) 76%); box-shadow: var(--shadow); color: #fff; }
.store-heading { margin: 0 0 20px; color: #9ed4b5; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.store-buttons { display: grid; gap: 12px; }
.store-button { min-height: 68px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; color: var(--deep); background: #f4f7f5; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.store-button:hover { border-color: #74c69d; background: #fff; transform: translateY(-2px); }
.store-button svg { flex: 0 0 29px; width: 29px; height: 29px; fill: currentColor; }
.store-button small, .store-button strong { display: block; }
.store-button small { margin-bottom: 1px; color: var(--muted); font-size: 11px; }
.store-button strong { font-size: 19px; line-height: 1.05; }
.store-button[aria-disabled="true"] { cursor: not-allowed; opacity: .48; transform: none; }
.store-note { margin: 18px 2px 0; color: #a6b8b0; font-size: 12px; line-height: 1.45; }
.role-downloads { display: grid; gap: 12px; }
.role-downloads > .store-heading { margin-bottom: 2px; }
.download-role { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.055); }
.download-role-copy { display: grid; gap: 2px; margin-bottom: 12px; }
.download-role-copy strong { color: #fff; font-size: 16px; }
.download-role-copy span { color: #a6b8b0; font-size: 12px; line-height: 1.35; }
.role-store-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-store-link { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 13px; background: #f4f7f5; color: var(--deep); font-size: 12px; font-weight: 800; text-decoration: none; }
.role-store-link:hover { background: #fff; }
.role-store-link svg { width: 21px; height: 21px; flex: 0 0 21px; fill: currentColor; }
.role-store-link[aria-disabled="true"] { cursor: not-allowed; opacity: .45; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), 1160px); }
  .topbar { min-height: 66px; }
  .hero { min-height: auto; padding: 64px 0 78px; }
  .manifesto, .approach { grid-template-columns: 1fr; gap: 32px; padding: 72px 0; }
  .values { grid-template-columns: 1fr; padding-bottom: 76px; }
  .value { min-height: 0; }
  .value b { margin-bottom: 48px; }
  .applications { padding: 72px 0; }
  .application-grid { grid-template-columns: 1fr; }
  .application-card { min-height: 300px; }
  .footer { flex-direction: column; }
  .download-main { min-height: calc(100svh - 66px); grid-template-columns: 1fr; align-content: center; gap: clamp(22px, 4vh, 34px); padding: 24px 0 30px; }
  .product-description { margin-top: 14px; }
  .store-area { padding: 20px; border-radius: 24px; }
  .store-heading { margin-bottom: 14px; }
  .store-button { min-height: 62px; }
  .role-downloads { padding: 16px; gap: 10px; }
  .download-role { padding: 13px; }
}

@media (max-height: 700px) and (max-width: 760px) {
  .download-main { align-content: start; gap: 12px; padding: 12px 0 16px; }
  .download-main .kicker { margin-bottom: 8px; font-size: 10px; }
  .download-main h1 { font-size: 40px; }
  .product-description { margin-top: 8px; font-size: 15px; line-height: 1.28; }
  .product-site-link { margin-top: 10px; font-size: 13px; }
  .store-area { padding: 12px; border-radius: 20px; }
  .store-heading { margin-bottom: 8px; font-size: 10px; }
  .store-buttons { gap: 8px; }
  .store-button { min-height: 50px; padding: 7px 12px; }
  .store-button svg { width: 25px; height: 25px; flex-basis: 25px; }
  .store-button strong { font-size: 17px; }
  .store-note { display: none; }
  .role-downloads { gap: 7px; padding: 9px; }
  .role-downloads > p:first-child { margin-bottom: 0; }
  .download-role { padding: 8px; border-radius: 14px; }
  .download-role-copy { gap: 0; margin-bottom: 6px; }
  .download-role-copy strong { font-size: 13px; }
  .download-role-copy span { font-size: 10px; line-height: 1.2; }
  .role-store-link { min-height: 38px; padding: 5px 7px; border-radius: 10px; font-size: 10px; }
  .role-store-link svg { width: 18px; height: 18px; flex-basis: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
