/* BuddyHub — общие стили лендинга и юридических страниц. */
:root {
  --ink: #171819;
  --muted: #5b5f66;
  --blue: #00aaff;
  --blue-dark: #0088d1;
  --sky: #e6f6ff;
  --mint: #d6f0e3;
  --green: #00a661;
  --yellow: #ffd117;
  --purple: #bf9ffc;
  --pink: #ff99c0;
  --card: #ffffff;
  --line: #e7ebef;
  --radius: 28px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.55 "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo img { width: 168px; }
.top nav { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 15px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #f2f4f6; }
.lang a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; border-radius: 999px; padding: 12px 22px; background: var(--blue); color: #fff; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); }
.top .btn { padding: 10px 18px; font-size: 15px; }

/* Первый экран */
.hero { background: var(--sky); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-top: 20px; font-size: clamp(18px, 2vw, 22px); color: #2d3136; max-width: 30ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores a { display: block; transition: transform .15s; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 52px; width: auto; }
.rating { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.stars { display: flex; gap: 2px; }
.stars img { width: 22px; height: 22px; }
.rating p { font-size: 15px; line-height: 1.3; color: var(--muted); }
.rating strong { display: block; color: var(--ink); font-size: 17px; }
.hero-art { position: relative; justify-self: center; max-width: 470px; }
.hero-art .proof { position: absolute; left: -22%; bottom: -6%; width: 64%; filter: drop-shadow(0 18px 30px rgba(23,24,25,.12)); }

/* Секции */
section { padding: 96px 0; }
.kicker { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.title { font-size: clamp(32px, 4.4vw, 52px); max-width: 18ch; }
.center { text-align: center; }
.center .title { margin-left: auto; margin-right: auto; }

/* Как это работает */
.steps { display: grid; gap: 28px; margin-top: 56px; }
.step { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; background: #f6f8fa; border-radius: var(--radius); padding: 40px 56px; }
.step:nth-child(even) .step-text { order: 2; }
.step-num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--blue); margin-bottom: 18px; }
.step:nth-child(2) .step-num { background: var(--purple); }
.step:nth-child(3) .step-num { background: var(--green); }
.step h3 { font-size: clamp(26px, 3vw, 36px); }
.step p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 34ch; }
.step-art { justify-self: center; width: 100%; max-width: 420px; }

/* Форматы */
.formats { background: var(--sky); }
.duo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; background: #fff; border-radius: var(--radius); padding: 40px 56px; margin-top: 48px; }
.duo h3 { font-size: clamp(26px, 3vw, 36px); }
.duo p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 34ch; }
.duo-art { justify-self: center; width: 100%; max-width: 460px; }
.challenges-head { margin-top: 72px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.challenges-head h3 { font-size: clamp(26px, 3vw, 36px); }
.badge { display: inline-block; background: var(--yellow); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 15px; }
.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 28px; }
.grid6 img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.review { margin: 0; background: #f6f8fa; border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.review .q { width: 36px; height: 36px; }
.review blockquote { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; flex: 1; }
.who { display: flex; align-items: center; gap: 12px; }
.who img.face { width: 48px; height: 48px; border-radius: 50%; }
.who b { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; }
.who b img { width: 18px; height: 18px; }
.who span { display: block; color: var(--muted); font-size: 14px; }

/* Финальный призыв */
.final { padding: 0 0 96px; }
.final-card { background: var(--ink); color: #fff; border-radius: 36px; padding: 72px 40px; text-align: center; position: relative; overflow: hidden; }
.final-card h2 { font-size: clamp(34px, 5vw, 60px); }
.final-card h2 span { color: var(--yellow); }
.final-card .lead { margin-top: 16px; font-size: 20px; color: #c9ccd1; }
.final-card .stores { justify-content: center; }
.final-card .stores img { filter: drop-shadow(0 0 0 #fff); border: 1px solid rgba(255,255,255,.35); border-radius: 10px; }
.final-card .join { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: #c9ccd1; font-size: 16px; }
.final-card .join img { width: 34px; height: 34px; }

/* Подвал */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer .logo img { width: 150px; }
footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #f2f4f6; display: inline-flex; align-items: center; justify-content: center; }
.social img { width: 20px; height: 20px; }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* Юридические страницы */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 24px; }
.legal h2 { font-size: 28px; margin: 40px 0 12px; }
.legal h3 { font-size: 21px; margin: 28px 0 10px; }
.legal h4 { font-size: 18px; margin: 22px 0 8px; }
.legal p, .legal li { color: #34383d; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-dark); }

@media (max-width: 980px) {
  .hero .wrap, .step, .duo { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 36px; gap: 48px; }
  .hero-art { max-width: 380px; }
  .hero-art .proof { left: -8%; width: 60%; }
  .step, .duo { padding: 32px 24px; gap: 28px; }
  .step:nth-child(even) .step-text { order: 0; }
  .grid6 { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .top .btn { display: none; }
  .logo img { width: 140px; }
  .stores img { height: 46px; }
  .hero-art .proof { position: static; width: 80%; margin: -18% auto 0; }
  .grid6 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .reviews { grid-template-columns: 1fr; }
  .final-card { padding: 52px 20px; border-radius: 28px; }
  .final { padding-bottom: 64px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
