:root {
  color-scheme: light;
  --ink: #111317;
  --ink-soft: #384152;
  --muted: #626975;
  --paper: #ffffff;
  --paper-soft: #f3f6f9;
  --paper-warm: #f8fafc;
  --line: rgba(17, 19, 23, 0.12);
  --line-strong: rgba(17, 19, 23, 0.18);
  --green: #18a66a;
  --green-strong: #0f7d52;
  --blue: #2737ff;
  --shadow: rgba(68, 82, 98, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
}

.brand,
.header-nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.header-nav {
  gap: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.header-download {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 17px;
  background: rgba(255, 255, 255, 0.52);
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.language-choice {
  min-width: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.language-choice.is-active {
  background: var(--ink);
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.88fr) minmax(540px, 1fr);
  gap: 32px;
  width: min(1240px, calc(100% - 72px));
  min-height: 82vh;
  min-height: 82svh;
  margin: 0 auto;
  padding: 132px 0 56px;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(44px, 4.5vw, 60px);
  line-height: 0.96;
  font-weight: 950;
}

.hero-lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.48;
}

.use-disclaimer {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.download-action-stack,
.platform-download-stack {
  display: inline-grid;
  gap: 12px;
  justify-items: start;
}

.download-count {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.primary-action,
.secondary-action {
  display: inline-grid;
  min-height: 54px;
  align-items: center;
  border-radius: 8px;
  font-weight: 950;
}

.primary-action {
  padding: 0 24px;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(24, 166, 106, 0.28);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--green-strong);
}

.secondary-action {
  border: 1px solid var(--line);
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-actions .primary-action,
.hero-actions .secondary-action {
  min-height: 68px;
}

.secondary-action:not(.is-disabled):hover,
.secondary-action:not(.is-disabled):focus-visible,
.header-download:hover,
.header-download:focus-visible,
.language-toggle:hover,
.language-toggle:focus-within {
  background: #ffffff;
  border-color: var(--line-strong);
}

.is-disabled {
  cursor: not-allowed;
  opacity: 0.64;
  pointer-events: none;
}

.product-board {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 36px 120px var(--shadow);
}

.board-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  border-bottom: 1px solid rgba(17, 19, 23, 0.08);
  padding: 0 18px;
}

.board-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3dbe4;
}

.board-top strong {
  margin-left: 2px;
  font-size: 18px;
}

.board-logo {
  width: 34px;
  height: 34px;
  margin-left: 8px;
  object-fit: contain;
}

.board-main {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 20px;
  min-height: 410px;
  padding: 22px;
  background: var(--paper-soft);
}

.portrait-feed {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 31%, #f0c9a4 0 62px, transparent 64px),
    linear-gradient(180deg, #dbe9f2 0 48%, #aebfca 48% 100%);
}

.portrait-feed::before {
  content: "";
  position: absolute;
  left: calc(50% - 104px);
  top: 150px;
  width: 208px;
  height: 250px;
  border-radius: 104px 104px 18px 18px;
  background: #192633;
}

.portrait-feed span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(17, 19, 23, 0.82);
  color: #ffffff;
  font-weight: 900;
}

.loop-builder {
  display: grid;
  align-content: center;
  gap: 18px;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 8px;
  padding: 30px;
  background: #ffffff;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2933;
  font-size: 14px;
  font-weight: 900;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.loop-builder h2 {
  max-width: 300px;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.loop-builder p {
  color: var(--muted);
  font-size: 18px;
}

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

.duration-row span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  font-weight: 950;
}

.duration-row .selected {
  border-color: var(--ink);
  background: #ffffff;
}

.wide-action {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.release-strip {
  display: grid;
  grid-template-columns: 0.7fr 1.1fr 0.9fr auto;
  gap: 1px;
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.release-strip div,
.release-action,
.release-download-cell {
  background: #ffffff;
}

.release-strip div {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 114px;
  padding: 24px;
}

.release-label,
.platform-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.release-strip strong {
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.release-strip p {
  color: var(--muted);
}

.release-action {
  min-width: 176px;
  min-height: 114px;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
}

.release-download-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 114px;
  padding: 18px;
}

.release-download-cell .release-action {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
}

.section {
  padding: 76px 24px;
}

.section-how {
  background: var(--paper-warm);
}

.section-platforms {
  background: #ffffff;
}

.section-safety {
  background: #ffffff;
  padding-top: 42px;
  padding-bottom: 48px;
}

.section-resources {
  background: var(--paper-warm);
}

.section-heading,
.steps-grid,
.platform-grid,
.resources-grid,
.checksum {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 950;
}

.section-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.inline-link {
  width: fit-content;
  color: var(--green-strong);
  font-size: 15px;
  font-weight: 950;
}

.steps-grid,
.platform-grid {
  display: grid;
  gap: 12px;
}

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

.steps-grid article,
.platform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.steps-grid article {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 236px;
  padding: 26px;
}

.steps-grid span {
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 950;
}

.steps-grid h3,
.platform-card h3 {
  font-size: 25px;
  line-height: 1.12;
}

.steps-grid p,
.platform-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.resources-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 12px;
}

.resources-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
}

.resources-grid [data-locale-content="ru"] {
  display: none;
}

html[lang="ru"] .resources-grid [data-locale-content="en"] {
  display: none;
}

html[lang="ru"] .resources-grid [data-locale-content="ru"] {
  display: grid;
}

.resources-grid h3 {
  font-size: 25px;
  line-height: 1.12;
}

.resources-grid a,
.guide-link-grid a {
  color: var(--green-strong);
  font-weight: 950;
  line-height: 1.35;
}

.platform-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
}

.platform-card-muted {
  background: var(--paper-soft);
}

.platform-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.platform-card dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.platform-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-card dd {
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.platform-action {
  justify-content: center;
  width: fit-content;
  min-width: 190px;
  margin-top: 2px;
}

.platform-download-stack {
  width: fit-content;
}

.platform-card .secondary-action {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  box-shadow: none;
}

.checksum {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.checksum code {
  color: var(--ink-soft);
  font-family: Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, auto) minmax(220px, 1fr);
  grid-template-areas: "identity links community";
  gap: 18px 28px;
  align-items: start;
  width: min(1400px, calc(100% - 48px));
  box-sizing: border-box;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-identity {
  grid-area: identity;
  display: inline-grid;
  gap: 8px;
  max-width: 320px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.footer-community {
  grid-area: community;
  display: grid;
  gap: 10px;
  justify-items: end;
  align-items: start;
  color: var(--muted);
  font-weight: 800;
}

.reddit-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.reddit-mark {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.reddit-link:hover,
.reddit-link:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  color: var(--green-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  background: var(--paper-warm);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 34px;
}

.legal-shell {
  display: grid;
  gap: 22px;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  background: #ffffff;
}

.legal-shell h1 {
  max-width: 820px;
}

.legal-shell h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.legal-shell p,
.legal-list {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.legal-shell section p + p,
.legal-shell section .legal-list + .legal-list {
  margin-top: 10px;
}

.legal-shell a {
  color: var(--green-strong);
  font-weight: 850;
}

.legal-shell a.primary-action,
.legal-shell a.primary-action:hover,
.legal-shell a.primary-action:focus-visible {
  color: #ffffff;
}

.legal-shell a.secondary-action,
.legal-shell a.secondary-action:hover,
.legal-shell a.secondary-action:focus-visible {
  color: var(--green-strong);
}

.guide-shell {
  gap: 24px;
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.guide-breadcrumb a {
  color: var(--green-strong);
  text-decoration: none;
}

.guide-lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.5;
}

.guide-actions {
  margin-top: 2px;
}

.guide-facts {
  margin-top: 4px;
}

.guide-faq {
  margin-top: 18px;
}

.guide-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.guide-link-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper-warm);
  color: var(--green-strong);
  font-weight: 950;
  line-height: 1.35;
  text-decoration: none;
}

.legal-updated {
  color: var(--muted);
  font-weight: 800;
}

.legal-list {
  margin: 0;
  padding-left: 22px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper-warm);
}

.legal-dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-dl div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
}

.legal-dl dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-dl dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.download-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.download-facts div {
  display: grid;
  gap: 8px;
  min-height: 110px;
  align-content: center;
  padding: 20px;
  background: #ffffff;
}

.download-facts span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.download-facts strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.checksum-code {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper-warm);
  color: var(--muted);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.verification-mini {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.verification-mini h2,
.verification-mini summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.verification-mini p {
  font-size: 12px;
  line-height: 1.45;
}

.contact-mini {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.contact-mini .legal-dl {
  margin-top: 10px;
}

.download-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 142px;
  }

  .product-board {
    width: min(760px, 100%);
  }

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

  .release-action {
    min-height: 84px;
  }

  .site-footer {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr);
    grid-template-areas:
      "identity links"
      "identity community";
  }

  .footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 16px;
  }

  .brand span:last-child,
  .header-nav a:not(.header-download) {
    display: none;
  }

  .hero {
    width: min(100% - 32px, 760px);
    min-height: auto;
    padding: 110px 0 42px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-action-stack,
  .platform-download-stack {
    width: 100%;
    justify-items: stretch;
  }

  .download-count {
    text-align: center;
  }

  .primary-action,
  .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .board-main {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
  }

  .portrait-feed {
    min-height: 320px;
  }

  .loop-builder {
    padding: 22px;
  }

  .loop-builder h2 {
    font-size: 38px;
  }

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

  .release-strip {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
    margin-bottom: 20px;
  }

  .release-strip div,
  .release-action {
    min-height: 88px;
  }

  .release-download-cell {
    min-height: 88px;
  }

  .section {
    padding: 52px 16px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .steps-grid,
  .platform-grid,
  .resources-grid,
  .guide-link-grid {
    grid-template-columns: 1fr;
  }

  .platform-action {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "links"
      "community";
    gap: 18px;
    width: min(100% - 32px, 760px);
    padding: 24px 0;
  }

  .footer-identity {
    max-width: none;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-community {
    justify-items: start;
  }

  .legal-header {
    padding: 18px 16px;
  }

  .legal-shell {
    width: min(100% - 32px, 760px);
    padding: 26px;
  }

  .legal-dl div,
  .download-facts {
    grid-template-columns: 1fr;
  }

  .download-page-actions {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 39px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .loop-builder h2 {
    font-size: 34px;
  }
}
