/* Главная страница. */
body { overflow-x: hidden; }
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px max(16px, calc((100vw - 1200px) / 2)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 17px; white-space: nowrap; }
@media (max-width: 420px) { .logo span:last-child { display: none; } }
.logo-mark { color: var(--accent); font-size: 20px; }
.site-nav { display: flex; gap: 22px; flex: 1; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.head-acts { display: flex; gap: 8px; align-items: center; }
.head-acts a.btn { text-decoration: none; }

main { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 17px; max-width: 540px; margin: 20px 0 28px; }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-acts a { text-decoration: none; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 10px; }

.hero-art { position: relative; aspect-ratio: 1.05; }
.hero-card { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); background: var(--panel2); opacity: 0; transition: opacity .6s, transform .3s; }
.hero-card.ready { opacity: 1; }
.hero-card canvas { width: 100%; height: 100%; display: block; }
.hero-card.c0 { left: 0; top: 14%; transform: rotate(-8deg); }
.hero-card.c1 { right: 0; top: 4%; transform: rotate(7deg); }
.hero-card.c2 { left: 19%; top: 24%; z-index: 2; }
.hero-card:hover { transform: rotate(0) scale(1.03); z-index: 3; }

.band { padding: 56px 0; border-top: 1px solid var(--line); }
.band[hidden] { display: none; }
.sec-head { max-width: 640px; margin-bottom: 28px; }
.sec-head h2, .final h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.sec-head p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.ex { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.ex canvas { width: 100%; aspect-ratio: 1; border-radius: 8px; display: block; background: var(--panel2); box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .2s; }
.ex:hover canvas { transform: translateY(-4px); }
.ex-name { color: var(--muted); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.step b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.feat { padding: 20px 4px; }
.feat-n { font-size: 15px; color: var(--muted); }
.feat-n b { font-family: var(--display); font-size: 34px; color: var(--text); }
.feat p { color: var(--muted); margin: 8px 0 0; }

.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 80px 0; }
.final a { text-decoration: none; }
.site-foot { max-width: 1200px; margin: 0 auto; padding: 28px 16px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .site-head { justify-content: space-between; }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .head-acts a.btn { padding: 0 12px; }
  .hero-acts .btn { width: 100%; }
}
