.landing-main { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0 70px; }
.landing-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; align-items: stretch;
}
.hero-copy,
.hero-index {
  border: 1px solid var(--rs-border); border-radius: 24px; background: var(--rs-surface); box-shadow: var(--rs-shadow);
}
.hero-copy { padding: clamp(28px, 6vw, 72px); position: relative; overflow: hidden; }
.hero-copy::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -120px;
  border-radius: 50%; background: var(--rs-accent-soft); border: 38px solid color-mix(in srgb, var(--rs-secondary-soft) 65%, transparent);
}
.landing-kicker { margin: 0 0 14px; color: var(--rs-accent-strong); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { position: relative; z-index: 1; max-width: 820px; margin: 0; font-size: clamp(2.7rem, 7vw, 6.7rem); line-height: .9; letter-spacing: -.075em; }
.hero-copy h1 em { color: var(--rs-accent); font-style: normal; }
.hero-copy > p:not(.landing-kicker) { position: relative; z-index: 1; max-width: 760px; color: var(--rs-muted); font-size: 1.04rem; line-height: 1.75; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-actions a { padding: 12px 16px; border-radius: 11px; text-decoration: none; font-weight: 850; }
.hero-actions .primary { color: #fffaf2; background: var(--rs-accent); box-shadow: 4px 4px 0 var(--rs-accent-strong); }
.hero-actions .secondary { border: 1px solid var(--rs-border); background: var(--rs-surface-2); }
.hero-index { padding: 24px; display: grid; align-content: start; gap: 12px; }
.hero-index__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--rs-border); }
.hero-index__head span { color: var(--rs-muted); font-size: .82rem; }
.index-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rs-border); text-decoration: none; }
.index-row:last-child { border-bottom: 0; }
.index-row b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fffaf2; background: var(--rs-secondary); }
.index-row strong { display: block; }
.index-row small { color: var(--rs-muted); }
.index-row i { color: var(--rs-accent-strong); font-style: normal; font-weight: 900; }
.section-block { padding-top: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -.05em; }
.section-heading p { max-width: 610px; margin: 0; color: var(--rs-muted); line-height: 1.65; }
.algorithm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.algorithm-card { min-height: 300px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--rs-border); border-radius: 20px; background: var(--rs-surface); box-shadow: var(--rs-shadow); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.algorithm-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(72,52,35,.16); }
.algorithm-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.algorithm-card__number { color: var(--rs-accent); font: 900 3.2rem/1 var(--rs-mono); letter-spacing: -.1em; }
.algorithm-card__tag { padding: 7px 10px; border: 1px solid var(--rs-border); border-radius: 999px; color: var(--rs-secondary); background: var(--rs-secondary-soft); font-size: .76rem; font-weight: 850; }
.algorithm-card h3 { margin: 30px 0 8px; font-size: 1.7rem; letter-spacing: -.035em; }
.algorithm-card p { margin: 0; color: var(--rs-muted); line-height: 1.65; }
.algorithm-card__meta { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--rs-border); color: var(--rs-muted); font-size: .82rem; }
.test-table-wrap { overflow-x: auto; border: 1px solid var(--rs-border); border-radius: 18px; background: var(--rs-surface); box-shadow: var(--rs-shadow); }
.test-table { width: 100%; min-width: 850px; border-collapse: collapse; }
.test-table th, .test-table td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--rs-border); }
.test-table th { color: var(--rs-text); background: var(--rs-secondary-soft); }
.test-table td { color: var(--rs-muted); }
.test-table code { color: var(--rs-code-text); background: var(--rs-code); border-radius: 7px; padding: 5px 7px; }
.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.workflow article { padding: 20px; border-left: 4px solid var(--rs-accent); border-radius: 0 16px 16px 0; background: var(--rs-surface); box-shadow: var(--rs-shadow); }
.workflow b { display: block; margin-bottom: 8px; color: var(--rs-accent-strong); }
.workflow p { margin: 0; color: var(--rs-muted); font-size: .9rem; line-height: 1.55; }
@media (max-width: 900px) { .landing-hero, .algorithm-grid { grid-template-columns: 1fr; } .workflow { grid-template-columns: repeat(2, 1fr); } .section-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .landing-main { width: calc(100% - 20px); padding-top: 24px; } .hero-copy { padding: 28px 22px; } .workflow { grid-template-columns: 1fr; } .algorithm-card { min-height: 270px; } }
