/* 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: 300 17px/1.55 "Geologica", 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.1; letter-spacing: -0.02em; font-weight: 700; }
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 { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 6px; font-weight: 500; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(23,24,25,.14); padding: 6px; display: grid; min-width: 84px; z-index: 20; }
.lang-menu a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.lang-menu a:hover { background: #f2f4f6; }
.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; } }
.center-title { text-align: center; margin: 0 auto; }

/* Новый лендинг (главная EN), по макету прежнего сайта */
.nl-hero { background: #fefbed; text-align: center; padding: 56px 0 0; border-radius: 0 0 50% 50% / 0 0 72px 72px; overflow: hidden; }
.nl-hero h1 { font-size: clamp(38px, 6.2vw, 76px); }
.nl-sub { margin-top: 18px; font-size: clamp(18px, 2vw, 22px); color: #3a3d40; }
.nl-hero .stores, .nl-band .stores { justify-content: center; }
.nl-hero-art { position: relative; max-width: 560px; margin: 36px auto 0; }
.nl-phones { position: relative; z-index: 1; width: 100%; }
.nl-squiggle { position: absolute; width: 32%; z-index: 0; }
.nl-squiggle-y { left: -4%; top: 0; }
.nl-squiggle-p { right: -6%; bottom: 6%; }
.nl-proof .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.nl-rating { text-align: center; }
.nl-rating .stars { justify-content: center; }
.nl-rating h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 46px); }
.nl-stores-rating { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.nl-stores-rating img { height: 28px; width: auto; }
.nl-steps, .nl-whys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.nl-step-art { border-radius: var(--radius); aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding: 28px 28px 0; }
.nl-step-art img { width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; }
.nl-purple { background: #f2ecfe; }
.nl-pink { background: #ffebf2; }
.nl-blue { background: #d6f1ff; }
.nl-step h3, .nl-why h3 { margin-top: 22px; font-size: 22px; }
.nl-step p, .nl-why p { margin-top: 8px; color: var(--muted); }
.nl-why { text-align: center; }
.nl-why img { width: 100%; max-width: 380px; margin: 0 auto; }
.nl-band { text-align: center; position: relative; overflow: hidden; }
.nl-band h2 { font-size: clamp(32px, 4.6vw, 54px); }
.nl-band p { margin-top: 14px; font-size: 19px; color: #3a3d40; }
.nl-band-yellow { background: #fff6d1; }
.nl-band-blue { background: #d6f1ff; }
.nl-band .wrap { position: relative; }
.nl-band-deco { position: absolute; width: 96px; top: -20px; }
.nl-band-deco-l { left: 4%; transform: rotate(-12deg); }
.nl-band-deco-r { right: 4%; transform: rotate(10deg); }
.nl-faq { max-width: 820px; }
.nl-faq .title { margin-bottom: 36px; }
.nl-faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.nl-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 20px; font-weight: 500; }
.nl-faq summary::-webkit-details-marker { display: none; }
.nl-faq summary::after { content: "+"; font-size: 28px; line-height: 1; font-weight: 300; }
.nl-faq details[open] summary::after { content: "–"; }
.nl-faq details p { margin-top: 12px; color: var(--muted); }
footer ul { align-content: start; }

@media (max-width: 980px) {
  .nl-proof .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .nl-proof img { max-width: 420px; width: 100%; }
  .nl-steps, .nl-whys { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-left: auto; margin-right: auto; }
  .nl-band-deco { width: 64px; top: -36px; }
}
@media (max-width: 600px) {
  .nl-hero { padding-top: 36px; border-radius: 0 0 50% 50% / 0 0 40px 40px; }
  .nl-band-deco { display: none; }
  .nl-faq summary { font-size: 18px; }
}
.nl-band-blue .nl-band-deco-r { top: auto; bottom: -70px; right: 0; width: 84px; }
