/* Страница партнёрской программы «ЛАВР». Цвета, шрифт и скругления приходят из base.css. */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { overflow-x: hidden; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 96px; padding-bottom: 32px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -14px var(--accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn--sm { min-height: 46px; padding: 0 18px; font-size: 15px; }
.btn--icon { min-height: 46px; width: 46px; padding: 0; }

/* ---------- Заголовки разделов ---------- */
.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-md);
  background: var(--soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}
.h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: var(--w-head);
}
.lead { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.head { max-width: 760px; }
.head--center { margin: 0 auto; text-align: center; }

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.site-header__bar {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: var(--r-md);
  /* Первая строка для браузеров без color-mix: Safari до 16.2, Chrome до 111. */
  background: rgba(255, 255, 255, .9);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(10, 20, 48, .35);
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; padding: 10px 12px; font-weight: 700; color: var(--muted); border-radius: var(--r-sm); }
.nav a:hover { color: var(--ink); background: var(--surface2); }
.header-actions { display: flex; gap: 8px; margin-left: auto; }

.burger { display: none; }
.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 700;
}
.mobile-menu a:not(.btn):hover { background: var(--surface2); }
.mobile-menu .btn { margin-top: 6px; }

/* ---------- Первый экран ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 32px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; color: var(--muted);
}
.hero__badge-dot {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--soft); color: var(--accent);
  display: grid; place-items: center;
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: var(--w-head);
  overflow-wrap: break-word;
}
.hero__lead { margin: 24px 0 0; font-size: 19px; color: var(--muted); max-width: 560px; }
.hero__proof { margin: 14px 0 0; font-size: 19px; font-weight: 700; max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }

.hero-art { flex: 1 1 400px; min-width: 0; position: relative; min-height: 480px; }
.hero-art__blob { position: absolute; inset: 40px 20px 30px 30px; background: var(--soft); border-radius: 46% 54% 58% 42% / 45% 42% 58% 55%; }
.hero-art__sun { position: absolute; width: 160px; height: 160px; right: 4%; top: 0; background: var(--warm); opacity: .5; border-radius: 50%; }
.hero-art__leaf { position: absolute; left: 4%; bottom: 14%; color: var(--accent); }

/* Четыре карточки выплат внахлёст: крупная в центре, остальные вокруг и чуть под ней. */
.payout {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
}
.payout__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.payout__sum { margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.payout__status { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ok-ink); white-space: nowrap; }
.payout--left { left: 0; top: 36px; width: 228px; z-index: 1; }
.payout--right { right: 0; top: 84px; width: 228px; z-index: 1; }
.payout--bottom { right: 6%; top: 332px; width: 228px; z-index: 3; }
.payout--main {
  left: calc(50% - 160px); top: 190px; width: 320px; z-index: 2;
  padding: 24px 26px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 30px 60px -30px rgba(10, 20, 48, .6);
}
.payout--main .payout__label { font-size: 15px; color: inherit; opacity: .8; }
.payout--main .payout__sum { font-size: 44px; }
.payout--main .payout__status { font-size: 15px; color: inherit; opacity: .92; }
.coin { position: absolute; border-radius: 50%; background: var(--warm); opacity: 0; }
.coin--1 { right: 26px; top: -6px; width: 26px; height: 26px; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .08); }
.coin--2 { right: 60px; top: 4px; width: 18px; height: 18px; animation-delay: 1.2s !important; }

/* ---------- Три карточки выгод ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { background: var(--soft); border-radius: var(--r-xl); padding: 32px; }
.benefit__title { margin: 0; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: var(--w-head); }
.benefit p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

/* Крупная цифра шага или блока. */
.num { display: block; font-size: 56px; line-height: 1; font-weight: var(--w-head); letter-spacing: -0.04em; color: var(--accent); }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step__title { margin: 8px 0 0; font-weight: var(--w-head); font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
.step__text { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- На чём вы зарабатываете ---------- */
.split-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.split-head > div { max-width: 680px; }
.split-head p { margin: 0; color: var(--muted); max-width: 420px; }
.grid-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.product { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.product h3 { margin: 8px 0 0; font-size: 22px; font-weight: var(--w-head); letter-spacing: -0.015em; line-height: 1.2; }
.product p { margin: 0; color: var(--muted); font-size: 16px; flex: 1; }
.product__income { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); font-size: 19px; font-weight: 800; line-height: 1.3; }
.product__income span { display: block; font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.footnote { margin: 22px 0 0; color: var(--muted); font-size: 15px; max-width: 820px; }

/* ---------- Поддержка и обучение ---------- */
.grid-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.support { padding: 28px; display: flex; gap: 24px; align-items: flex-start; }
.support .num { flex: 0 0 72px; }
.support h3 { margin: 0; font-size: 22px; font-weight: var(--w-head); letter-spacing: -0.015em; line-height: 1.2; }
.support__sub { margin-top: 6px; color: var(--accent); font-weight: 700; }
.support p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- Вопросы ---------- */
.faq { padding-top: 96px; padding-bottom: 32px; max-width: 900px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.faq details { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.faq summary {
  list-style: none;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; min-height: 44px;
  cursor: pointer; font-weight: 800; font-size: 18px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span:first-child { flex: 1; }
.faq__chip {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--surface2); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .4s var(--ease-out), background .25s, color .25s;
}
.faq details[open] .faq__chip { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq__answer { padding: 0 24px 22px; color: var(--muted); }
.faq__answer p { margin: 0; }
.faq__answer p + p { margin-top: 12px; }

/* ---------- Как стать партнёром ---------- */
.join { padding-bottom: 80px; }
.join-steps { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; align-items: stretch; margin: 48px 0 0; padding: 0; list-style: none; }
.join-step { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.join-step__art { width: 100%; max-width: 240px; height: auto; margin-bottom: 8px; }
.join-step h3 { margin: 4px 0 0; font-size: 22px; font-weight: var(--w-head); letter-spacing: -0.015em; line-height: 1.2; }
.join-step p { margin: 0; color: var(--muted); font-size: 16px; }
/* Третий шаг самый заметный: к нему ведём посетителя. */
.join-step--accent { border-radius: var(--r-lg); background: var(--accent); color: var(--accent-ink); box-shadow: 0 30px 60px -30px rgba(10, 20, 48, .6); }
.join-step--accent .join-step__art { max-width: 300px; }
.join-step--accent .num { color: var(--warm); font-size: 72px; }
.join-step--accent h3 { font-size: 28px; }
.join-step--accent p { color: inherit; opacity: .88; font-size: 17px; }

.join-cta { margin-top: 16px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); background: var(--soft); text-align: center; display: flex; flex-direction: column; align-items: center; }
.join-cta__title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: var(--w-head); }
.join-cta__text { margin: 14px 0 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.join-cta__button { margin-top: 28px; min-width: 260px; }
.join-cta__closed { margin: 28px 0 0; padding: 14px 20px; border-radius: var(--r-md); background: var(--surface); font-weight: 700; }

/* ---------- Подвал ---------- */
.footer { padding-top: 8px; padding-bottom: 40px; color: var(--muted); font-size: 15px; }
.footer__box { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: 40px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.footer__col { flex: 0 1 220px; display: flex; flex-direction: column; gap: 10px; }
.footer__col--brand { flex: 1 1 260px; gap: 14px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--ink); }
.footer__title { font-weight: 800; color: var(--ink); }
.footer__slogan { font-weight: 700; }
.footer__cabinet {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--ink); padding: 10px 16px; min-height: 44px;
  border-radius: var(--r-md); background: var(--bg); box-shadow: 0 0 0 1px var(--line);
}
.footer__tg { color: var(--accent) !important; font-weight: 800; }
.footer__legal { padding: 22px 8px 0; font-size: 14px; line-height: 1.6; }

/* ---------- Появление блоков (только когда скрипты работают: без них всё видно сразу) ---------- */
.js .rv { opacity: 0; transform: translateY(48px) scale(.97); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Фоновые анимации ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(12px) rotate(1deg); } }
@keyframes blob { 0%, 100% { border-radius: 46% 54% 58% 42% / 45% 42% 58% 55%; } 33% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; } 66% { border-radius: 40% 60% 52% 48% / 60% 40% 60% 40%; } }
@keyframes leaf { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(18px, -22px) rotate(25deg); } }
@keyframes coin { 0% { transform: translateY(0) scale(.9); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60px) scale(1); opacity: 0; } }

.a-float { animation: float 6s ease-in-out infinite; }
.a-float-late { animation: float 6s ease-in-out -2s infinite; }
.a-floatB { animation: floatB 7s ease-in-out infinite; }
.a-blob { animation: blob 14s ease-in-out infinite; }
.a-blob-fast { animation: blob 10s ease-in-out infinite; }
.a-leaf { animation: leaf 9s ease-in-out infinite; }
.coin { animation: coin 3.2s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .coin { opacity: 0; }
}

/* ---------- Адаптация ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 900px) {
  .hide-sm { display: none !important; }
  .benefits, .steps, .grid-products, .grid-support, .join-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 10px; }
  .site-header__bar { padding-left: 14px; gap: 8px; }
  .cabinet-link__text { display: none; }
  .header-actions .cabinet-link { width: 46px; padding: 0; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 72px; }
  .hero { padding-top: 40px; padding-bottom: 24px; gap: 32px; }
  .join { padding-bottom: 56px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero-art { flex-basis: 100%; min-height: 376px; }
  .hero-art__blob { inset: 30px 0 20px 0; }
  .payout { padding: 12px 14px; }
  .payout__label { font-size: 12px; white-space: nowrap; }
  .payout__sum { font-size: 21px; }
  .payout--left { top: 0; width: 172px; }
  .payout__status { font-size: 12px; }
  .payout--right { top: 56px; width: 172px; }
  .payout--bottom { right: 2%; top: 262px; width: 172px; }
  .payout--main { left: calc(50% - 128px); top: 150px; width: 256px; padding: 18px 20px; }
  .payout--main .payout__label, .payout--main .payout__status { font-size: 14px; }
  .payout--main .payout__sum { font-size: 34px; }
  .benefit, .step, .product, .support, .join-step { padding: 24px; }
  .join-cta__button { min-width: 0; width: 100%; }
  .join-step--accent .num { font-size: 56px; }
  .join-step--accent h3 { font-size: 24px; }
  .support { flex-direction: column; gap: 12px; }
  .support .num { flex-basis: auto; }
  .num { font-size: 44px; }
  .faq { padding-top: 72px; }
  .faq summary { padding: 16px 18px; font-size: 17px; }
  .faq__answer { padding: 0 18px 18px; }
  .footer__box { padding: 28px; }
}

/* Самые узкие телефоны (320–379 px): подпись боковых карточек в одну строку не помещается, переносим её. */
@media (max-width: 379px) {
  .payout--left .payout__label, .payout--right .payout__label, .payout--bottom .payout__label { white-space: normal; }
  .payout--left, .payout--right, .payout--bottom { width: 156px; }
  .payout--right { top: 64px; }
  .payout--main { top: 184px; }
  .payout--bottom { top: 304px; }
  .hero-art { min-height: 422px; }
}
