:root {
  color-scheme: light;
  --bg: #f4f1e9;
  --paper: #fffdf7;
  --ink: #141414;
  --muted: #6f706b;
  --line: rgba(20, 20, 20, 0.12);
  --dark: #15171c;
  --green: #35c99b;
  --blue: #3867ff;
  --coral: #ff735c;
  --yellow: #f5c24b;
  --radius: 8px;
  --container: min(1180px, calc(100vw - 48px));
  --shadow: 0 28px 70px rgba(19, 22, 28, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  background: rgba(244, 241, 233, 0.9);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.68);
}

.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: #343631;
  font-size: 14px;
  font-weight: 760;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.telegram-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 850;
  box-shadow: none;
  transition: background 180ms ease, color 180ms ease;
}

.telegram-link:hover {
  background: #000;
  color: var(--paper);
}

.main-nav .telegram-link {
  margin-left: 2px;
  color: var(--paper);
}

.support-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-radius: 999px;
  background: transparent;
  color: #343631;
  font-size: 14px;
  font-weight: 850;
  box-shadow: none;
  transition: color 180ms ease, transform 180ms ease;
}

.support-link:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

main {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(44px, 7vw, 88px);
}

.eyebrow,
.app-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 30px;
  font-size: clamp(42px, 6.8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(240px, 1fr);
  gap: 34px;
  align-items: end;
}

.intro {
  color: #2c2d2a;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.38;
  font-weight: 560;
}

.intro p {
  margin-bottom: 0;
}

.intro p + p {
  margin-top: 5px;
}

.intro p:last-child {
  margin-top: 24px;
}

.hero-note {
  width: min(100%, 390px);
  justify-self: end;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  background: rgba(255, 253, 247, 0.72);
}

.hero-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.hero-note strong {
  display: block;
  font-size: 20px;
  line-height: 1.08;
}

.apps {
  display: grid;
  gap: 28px;
  padding-bottom: 84px;
}

.app-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(430px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  min-height: 560px;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-showcase::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--ink);
}

.app-showcase::after {
  content: "";
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  top: clamp(22px, 4vw, 46px);
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.88;
}

.app-showcase.trainer::after {
  background: var(--coral);
}

.app-copy,
.app-visual {
  position: relative;
  z-index: 1;
}

.app-copy {
  max-width: 500px;
}

.app-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-lead {
  margin-bottom: 28px;
  color: #2d2f2d;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.28;
  font-weight: 580;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: #171918;
  font-size: 16px;
  font-weight: 820;
}

.feature-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.feature-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 43%, var(--paper) 44% 56%, transparent 57%),
    var(--green);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.1);
}

.trainer .feature-list li::before {
  background:
    linear-gradient(135deg, transparent 43%, var(--paper) 44% 56%, transparent 57%),
    var(--blue);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 880;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  min-width: 230px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.18);
}

.button.ghost {
  background: #ebe7dc;
  color: #363630;
  border: 1px solid var(--line);
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.is-disabled:hover {
  transform: none;
}

.download-link {
  display: inline-block;
  margin-top: 14px;
  color: #343631;
  font-size: 15px;
  font-weight: 780;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.download-link:hover {
  color: var(--ink);
}

.updated {
  margin: 54px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.app-visual {
  display: block;
  padding: 10px;
  border-radius: var(--radius);
  background: #0c1118;
  box-shadow: 0 22px 50px rgba(15, 18, 24, 0.24);
  transform: rotate(1.4deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.trainer .app-visual {
  transform: rotate(-1.2deg);
}

.app-visual:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 30px 58px rgba(15, 18, 24, 0.3);
}

.app-visual::before {
  content: "";
  display: block;
  height: 24px;
  margin: -10px -10px 10px;
  background:
    radial-gradient(circle at 18px 12px, #ff735c 0 4px, transparent 5px),
    radial-gradient(circle at 36px 12px, #f5c24b 0 4px, transparent 5px),
    radial-gradient(circle at 54px 12px, #35c99b 0 4px, transparent 5px),
    #090d13;
}

.app-visual img {
  width: 100%;
  aspect-ratio: 653 / 404;
  object-fit: cover;
  border-radius: 4px;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0 38px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 780;
}

.support-hero {
  max-width: 860px;
  padding: clamp(56px, 8vw, 108px) 0 36px;
}

.support-hero h1 {
  margin-bottom: 24px;
}

.support-intro {
  max-width: 680px;
  color: #2c2d2a;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.38;
  font-weight: 580;
}

.support-details {
  max-width: calc((100% - 18px) / 2);
  margin-bottom: 24px;
}

.support-line {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.76);
}

.support-line span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-line strong,
.support-line a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.requisites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 86px;
}

.requisite-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 46px rgba(19, 22, 28, 0.1);
}

.requisite-card.wide {
  grid-column: span 2;
}

.requisite-card h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.04;
}

.requisite-note {
  margin: 0;
  color: #343632;
  font-size: 16px;
  line-height: 1.36;
  font-weight: 560;
}

.copy-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: auto;
}

.copy-row code {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: var(--radius);
  background: #ebe7dc;
  color: #171918;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  user-select: text;
}

.copy-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}

.copy-button:hover {
  transform: translateY(-2px);
}

.copy-button.is-copied {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(53, 201, 155, 0.28);
}

.donation-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 86px;
}

.donation-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 46px rgba(19, 22, 28, 0.1);
}

.donation-card h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
}

.donation-card p {
  color: #343632;
  font-size: 16px;
  line-height: 1.36;
  font-weight: 560;
}

.donation-card .button {
  margin-top: auto;
}

.donation-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.muted-card {
  background: rgba(255, 253, 247, 0.72);
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 28px, 760px);
  }

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

  .header-actions {
    grid-column: 2;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-grid,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .hero-note {
    justify-self: start;
  }

  .app-showcase {
    min-height: auto;
  }

  .donation-panel {
    grid-template-columns: 1fr;
  }

  .support-details,
  .requisites {
    grid-template-columns: 1fr;
  }

  .support-details {
    max-width: none;
  }

  .requisite-card.wide {
    grid-column: auto;
  }

  .app-showcase::after {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100% - 24px);
  }

  body {
    background-size: 42px 42px;
  }

  .site-header {
    padding: 12px;
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .support-link {
    min-height: 38px;
    padding: 8px 0;
    font-size: 12px;
  }

  .telegram-link {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .main-nav {
    gap: 4px;
    padding: 4px;
  }

  .main-nav a {
    padding: 8px 11px;
    font-size: 13px;
  }

  .main-nav .telegram-link {
    padding: 7px 12px;
    color: var(--paper);
  }

  h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .hero-note {
    max-width: none;
    width: 100%;
  }

  .hero-note strong {
    white-space: normal;
  }

  .app-showcase {
    padding: 24px;
  }

  .app-showcase::before {
    width: 7px;
  }

  .app-showcase::after {
    width: 72px;
    height: 72px;
  }

  .actions,
  .copy-row,
  .button,
  .button.primary {
    width: 100%;
  }

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

  .updated {
    margin-top: 36px;
  }
}
