:root {
  --ink: #111111;
  --ink-soft: #30332f;
  --paper: #f7f8f3;
  --paper-strong: #ffffff;
  --muted: #62665f;
  --line: #dfe4d8;
  --lime: #c8ff3d;
  --teal: #2bb8a8;
  --coral: #ff7a59;
  --gold: #f7c948;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(247, 248, 243, 0.88);
  border-bottom: 1px solid rgba(223, 228, 216, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav button,
.footer button {
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.nav button:hover,
.footer button:hover {
  color: var(--ink);
}

.top-actions,
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  padding: 4px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-btn {
  min-width: 44px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--lime);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper-strong);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(200, 255, 61, 0.24);
}

.btn-glass {
  color: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-plain {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: calc(100svh - 106px);
  overflow: hidden;
  background: var(--ink);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.58) 48%, rgba(17, 17, 17, 0.16)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.08) 36%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 106px);
  margin: 0 auto;
  padding: 76px 0 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200, 255, 61, 0.16);
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow.dark {
  background: rgba(43, 184, 168, 0.12);
  color: #087b70;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--paper-strong);
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  width: min(680px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.75;
}

.hero-chips,
.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chips {
  margin-top: 28px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.hero-chips span:nth-child(2) {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.hero-actions {
  margin-top: 34px;
}

.hero-meta {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-meta div {
  min-width: 128px;
  color: var(--paper-strong);
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  font-size: 30px;
  line-height: 1;
}

.hero-meta span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
}

.source-panel {
  position: absolute;
  right: 0;
  bottom: 50px;
  display: grid;
  gap: 7px;
  width: min(300px, 34%);
  padding: 18px;
  background: rgba(247, 248, 243, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.source-panel span,
.fit-source span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.source-panel strong,
.fit-source strong {
  color: var(--ink);
  font-size: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip article {
  min-height: 210px;
  padding: 30px;
  background: var(--paper-strong);
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.trust-strip h2,
.task-card h3,
.timeline h3,
.fit-panel h3,
.success-panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.trust-strip h2 {
  font-size: 21px;
}

.trust-strip p,
.task-card p,
.timeline p,
.section-head p,
.fit-panel li,
.success-panel p,
.faq-item p,
.apply-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.trust-strip p {
  margin: 10px 0 0;
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head.narrow {
  display: block;
  max-width: 760px;
}

.section-head h2,
.apply-copy h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -14px;
}

.section-head p {
  margin: 0;
  font-size: 16px;
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.task-card,
.fit-panel,
.timeline article,
.apply-panel,
.faq-item {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.task-card {
  min-height: 220px;
  padding: 26px;
}

.task-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--teal);
  font-weight: 900;
}

.task-card h3 {
  font-size: 24px;
}

.task-card p {
  margin: 12px 0 0;
  font-size: 15px;
}

.task-card.accent {
  background: var(--ink);
  color: var(--paper-strong);
  border-color: var(--ink);
}

.task-card.accent p {
  color: rgba(255, 255, 255, 0.7);
}

.task-card.accent span {
  color: var(--lime);
}

.fit-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(200, 255, 61, 0.28), transparent 42%),
    var(--paper-strong);
}

.fit-panel h3 {
  font-size: 28px;
}

.fit-panel ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.fit-panel li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}

.fit-panel li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.fit-source {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.process-section {
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline article {
  position: relative;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
}

.timeline article::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  border: 14px solid rgba(43, 184, 168, 0.12);
  border-radius: 50%;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 54px;
  background: var(--lime);
  border-radius: 8px;
  font-weight: 900;
}

.timeline h3 {
  font-size: 22px;
}

.timeline p {
  margin: 10px 0 0;
  font-size: 14px;
}

.apply-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: start;
  padding-top: 96px;
  border-top: 1px solid var(--line);
}

.apply-copy {
  position: sticky;
  top: 100px;
}

.apply-copy p {
  font-size: 17px;
}

.apply-panel {
  padding: 26px;
  box-shadow: var(--shadow);
}

.stepper {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.step-pill {
  flex: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.step-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.wide,
.checks {
  grid-column: 1 / -1;
}

.field span,
.checks legend {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.field textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(43, 184, 168, 0.12);
}

.field small,
.consent-error {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.field.has-error input,
.field.has-error select {
  border-color: #e5484d;
}

.form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #7a271a;
  background: #fff3ed;
  border: 1px solid #ffc9b8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checks legend {
  width: 100%;
  margin-bottom: 2px;
}

.checks label,
.consent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.checks label {
  min-height: 36px;
  padding: 0 12px;
  background: var(--paper);
  border-radius: 999px;
}

.file-field input {
  padding: 12px;
}

.file-field strong {
  color: var(--muted);
  font-size: 13px;
}

.form-next {
  width: 100%;
  margin-top: 18px;
}

.consent {
  align-items: flex-start;
  margin-top: 18px;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.success-panel {
  display: grid;
  place-items: start;
  gap: 14px;
  padding: 30px;
  background: var(--ink);
  color: var(--paper-strong);
  border-radius: 8px;
}

.success-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.success-panel strong {
  color: var(--lime);
  font-size: 18px;
}

.success-panel .telegram-link {
  margin-top: 4px;
}

.expiry-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 22px;
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  text-align: left;
}

.faq-item b {
  color: var(--teal);
  font-size: 24px;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 0 24px;
  max-width: 760px;
}

.faq-item.open p {
  display: block;
}

.faq-item.open b {
  transform: rotate(45deg);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 96px;
  padding: 24px max(22px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer span {
  font-weight: 900;
}

.footer button {
  color: var(--lime);
}

.mobile-cta {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav {
    display: none;
  }

  .top-actions {
    justify-content: end;
  }

  .hero h1 {
    font-size: 56px;
  }

  .source-panel {
    position: static;
    width: min(420px, 100%);
    margin-top: 32px;
  }

  .trust-strip,
  .timeline,
  .task-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .role-grid,
  .apply-section {
    grid-template-columns: 1fr;
  }

  .apply-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 68px;
    padding: 10px 14px;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10px;
  }

  .brand > span:last-child {
    min-width: 0;
    max-width: 132px;
  }

  .top-actions .btn-dark {
    display: none;
  }

  .lang-switch {
    gap: 2px;
    padding: 3px;
  }

  .lang-btn {
    min-width: 32px;
    padding: 7px 6px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.62)),
      linear-gradient(90deg, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.3));
  }

  .hero-inner {
    width: calc(100% - 28px);
    max-width: 362px;
    min-height: calc(100svh - 150px);
    padding: 58px 0 36px;
    overflow: hidden;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: 38px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-chips {
    gap: 8px;
  }

  .hero-chips span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 36px;
  }

  .hero-meta div {
    min-width: 0;
  }

  .hero-meta strong {
    font-size: 22px;
    word-break: keep-all;
  }

  .hero-meta span {
    font-size: 12px;
  }

  .trust-strip,
  .timeline,
  .task-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip article {
    min-height: auto;
    padding: 24px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 68px 0;
  }

  .section-head h2,
  .apply-copy h2 {
    font-size: 34px;
  }

  .role-grid {
    gap: 14px;
  }

  .task-card,
  .fit-panel,
  .timeline article,
  .apply-panel {
    padding: 22px;
  }

  .task-card {
    min-height: 190px;
  }

  .task-card span,
  .timeline span {
    margin-bottom: 34px;
  }

  .apply-section {
    gap: 22px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .footer {
    padding-bottom: 84px;
  }

  .mobile-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.22);
    font-weight: 900;
  }
}
