/* Страница набора партнёров Shark (babyshark.space/partner).
   Раскладка как у easyfitness.fit: узкая колонка по центру, белые блоки,
   крупные заголовки Unbounded, яркая карточка-оффер и кнопка снизу. */

:root {
  --navy: #3A2414;
  --navy-2: #5A3A22;
  --tq: #F27A1A;
  --tq-2: #DD5E12;
  --tq-soft: #FFF0D6;
  --y: #FFC619;
  --y-soft: #FFF1C2;
  --bg: #FBEEDB;
  --card: #FFFFFF;
  --muted: #87705C;
  --line: #F2E2CA;
  --r: 24px;
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--navy);
  font: 500 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
b { font-weight: 800; }

/* ---------- колонка ---------- */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 8px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 560px) {
  .page { padding-top: 16px; }
  .block { box-shadow: 0 10px 40px -20px rgba(90, 50, 15, .25); }
}
.block {
  background: var(--card);
  border-radius: var(--r);
  padding: 28px 20px;
}

/* ---------- типографика ---------- */
.h1, .h2 {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-align: center;
}
.h1 { font-size: clamp(27px, 8vw, 36px); font-weight: 800; }
.h2 { font-size: clamp(22px, 6.4vw, 28px); font-weight: 700; }
.acc { color: var(--tq); }
.sub, .lead {
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
}
.sub { font-size: 16px; }
.sub b, .lead b { color: var(--navy); }
.num {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 600;
  color: var(--tq);
  letter-spacing: .04em;
}

/* ---------- первый экран ---------- */
.hero { padding-top: 16px; overflow: hidden; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.logo { width: 92px; }
.topbar-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  background: #E7F8EE;
  color: #128C4A;
  font-weight: 700;
  font-size: 14px;
}
.pill {
  display: flex;
  width: max-content;
  margin: 0 auto 14px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--y-soft);
  font-size: 13px;
  font-weight: 700;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: ping 1.8s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* три плитки «что даём» */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.perk {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 6px 12px;
  border-radius: 16px;
  background: var(--tq-soft);
  text-align: center;
}
.perk-i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-bottom: 6px;
  border-radius: 12px;
  background: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px -6px rgba(90, 50, 15, .3);
}
.perk b { font-size: 14px; line-height: 1.2; }
.perk small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* полка с упаковками: всё стоит ровно, по одной линии */
.shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 18px 8px 0;
  border-radius: 20px;
  background: linear-gradient(to bottom, #FFF6E6, #FFE6BC);
  overflow: hidden;
}
.shelf::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 16px;
  background: #F6CF8E;
}
.sh { position: relative; z-index: 1; flex: none; margin-bottom: 10px; filter: drop-shadow(0 10px 14px rgba(90, 50, 15, .2)); }
.sh-pants   { width: 28%; }
.sh-diapers { width: 32%; }
.sh-lady    { width: 30%; border-radius: 8px; }

/* номер и название раздела над заголовком */
.kick {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  background: var(--tq-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--tq-2);
}
.kick span {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--tq);
  color: #fff;
  font-family: var(--head);
  font-size: 11px;
}

/* ---------- карточка-оффер ---------- */
.offer {
  margin-top: 22px;
  padding: 20px 18px 18px;
  border-radius: var(--r);
  background: linear-gradient(140deg, #FFA733 0%, var(--tq) 45%, var(--tq-2) 100%);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(242, 122, 26, .8);
}
.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.offer-head em {
  flex: none;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--y);
  color: var(--navy);
  font-family: var(--body);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.bill { list-style: none; margin-top: 4px; }
.bill li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .4);
  font-size: 15px;
  font-weight: 600;
}
.bill b { flex: none; font-family: var(--head); font-size: 15px; font-weight: 700; }
.offer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .16);
}
.offer-total span { font-size: 15px; font-weight: 700; line-height: 1.3; }
.offer-total b { flex: none; font-family: var(--head); font-size: 40px; font-weight: 800; line-height: 1; }
.offer-note { margin-top: 12px; font-size: 14px; opacity: .95; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 60px;
  padding: 8px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
}
.offer-foot { margin-top: 12px; font-size: 13px; opacity: .9; text-align: center; }
.final .offer { text-align: left; }

/* ---------- бегущая строка городов ---------- */
.cities { margin-top: 22px; text-align: center; }
.cities-t { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.marquee {
  overflow: hidden;
  margin: 0 -20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-in {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: run 40s linear infinite;
}
.marquee-in span {
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--tq-soft);
  font-size: 14px;
  font-weight: 700;
}
@keyframes run { to { transform: translateX(calc(-50% - 4px)); } }

/* ---------- как зарабатываете ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin: 22px 0 6px;
  padding: 18px 16px 14px;
  border-radius: 18px;
  background: var(--tq-soft);
}
.flow-col { display: grid; gap: 8px; text-align: center; }
.flow-k { font-weight: 800; font-size: 14px; }
.flow-v { font-size: 12px; color: var(--muted); font-weight: 600; }
.flow-bar { display: block; border-radius: 12px; position: relative; }
.flow-bar-buy { height: 80px; background: var(--navy); }
.flow-bar-sell {
  height: 130px;
  background: linear-gradient(to top, var(--navy) 0 61.5%, var(--y) 61.5% 100%);
}
.flow-bar-sell i {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38.5%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.steps { display: grid; gap: 10px; margin-top: 14px; }
.step {
  padding: 18px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
}
.step h3 { font-size: 18px; font-weight: 800; line-height: 1.25; margin: 6px 0 4px; }
.step p { color: var(--muted); font-size: 15px; }
.step-hl { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-hl p { color: #E9D6C3; }
.step-hl .num { color: var(--y); }

/* ---------- бесплатно ---------- */
.gifts { display: grid; gap: 10px; margin-top: 20px; }
.gift {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: #FFF8EE;
}
.gift-i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
  box-shadow: 0 4px 12px -6px rgba(90, 50, 15, .3);
}
.gift h3 { font-size: 16px; font-weight: 800; line-height: 1.25; }
.gift p { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.free {
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--y);
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.sum b { font-family: var(--head); font-size: 20px; color: var(--y); text-transform: uppercase; }

/* ---------- таймлайн ---------- */
.timeline { list-style: none; margin-top: 22px; counter-reset: s; }
.timeline li {
  position: relative;
  padding: 0 0 22px 56px;
  counter-increment: s;
}
.timeline li::before {
  content: counter(s);
  position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tq);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
}
.timeline li::after {
  content: '';
  position: absolute; left: 19px; top: 40px; bottom: 2px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--tq) 0 5px, transparent 5px 10px);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--y); color: var(--navy); }
.timeline b { display: block; font-size: 17px; line-height: 1.3; }
.timeline span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- продукция ---------- */
.prods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.prod {
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: #FFF8EE;
  display: grid;
  align-content: start;
  gap: 10px;
}
.prod img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.prod figcaption b { display: block; font-size: 15px; line-height: 1.25; }
.prod figcaption span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- кому подходит ---------- */
.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.who-c {
  padding: 16px 14px;
  border-radius: 18px;
  background: var(--tq-soft);
}
.who-c span { font-size: 28px; line-height: 1; }
.who-c b { display: block; margin-top: 10px; font-size: 15px; line-height: 1.25; }
.who-c p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ---------- города ---------- */
.map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.map-c {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
}
.map-c b { display: block; font-family: var(--head); font-size: 15px; font-weight: 600; }
.map-c span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.map-c:not(.map-you) span::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
}
.map-you {
  grid-column: 1 / -1;
  background: var(--y);
  border-color: var(--y);
  text-align: center;
}
.map-you b { font-size: 18px; }
.map-you span { justify-content: center; color: var(--navy); font-weight: 700; }

/* ---------- автор ---------- */
.author {
  position: relative;
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
}
.author img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; }
.author-b {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 50px 18px 16px;
  background: linear-gradient(transparent, rgba(90, 50, 15, .92));
  color: #fff;
}
.author-n { font-family: var(--head); font-size: 20px; font-weight: 700; }
.author-r { font-size: 14px; opacity: .9; }
.facts { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.facts li { padding: 14px 16px; border-radius: 16px; background: #FFF8EE; }
.facts p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.facts p b { color: var(--navy); }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 8px; margin-top: 20px; }
.faq details {
  border-radius: 16px;
  background: #FFF8EE;
  padding: 0 18px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 30px 16px 0;
  position: relative;
  font-weight: 800;
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tq);
  color: #fff;
  font-weight: 700;
}
.faq details[open] summary::after { content: '−'; background: var(--navy); }
.faq details p { padding-bottom: 16px; color: var(--muted); font-size: 15px; }

/* ---------- финал ---------- */
.final { text-align: center; padding-top: 18px; }
.final-mascot { width: 110px; margin: 0 auto 10px; filter: drop-shadow(0 10px 14px rgba(90, 50, 15, .2)); }
.legal { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ---------- закреплённая кнопка ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 0 8px calc(8px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .3s ease;
  pointer-events: none;
}
.sticky.on { transform: none; pointer-events: auto; }
.sticky-in {
  max-width: 464px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 -4px 30px -6px rgba(90, 50, 15, .3);
}
.sticky-t b { display: block; font-family: var(--head); font-size: 20px; line-height: 1.1; }
.sticky-t span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(140deg, #FFA733, var(--tq-2));
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- появление блоков (только когда JS точно работает) ---------- */
.js-anim .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .rv.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee-in, .dot { animation: none; }
}
@media (max-width: 360px) {
  .block { padding: 24px 14px; }
  .btn { font-size: 14px; padding-left: 16px; }
  .gift { grid-template-columns: 40px 1fr; }
  .free { display: none; }
}

/* ---------- ссылка на квиз ---------- */
.quiz-link {
  display: block;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px dashed var(--tq);
  color: var(--tq-2);
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

/* ---------- квиз ---------- */
.qz {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: 20px;
  background: var(--tq-soft);
}
.qz-bar { height: 6px; border-radius: 99px; background: #fff; overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 20%; border-radius: 99px; background: var(--tq); transition: width .35s ease; }
.qz-step { margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.qz-q h3, .qz-res h3 { font-size: 19px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.qz-q > button {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font: 700 15px/1.3 var(--body);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.qz-q > button:hover { border-color: var(--tq); }
.qz-q > button:active { transform: scale(.98); }
.qz-q > button.picked { border-color: var(--tq); background: #FFF8EE; }
.qz-city, .cc-row { display: flex; gap: 8px; }
.qz-city input, .cc-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font: 600 16px var(--body);
}
.qz-city input:focus, .cc-row input:focus { outline: none; border-color: var(--tq); }
.qz-city button, .cc-row button {
  flex: none;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--tq);
  color: #fff;
  font: 700 14px var(--head);
  cursor: pointer;
}
.qz-res { text-align: left; }
.qz-res-k {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--y);
  font-size: 12px;
  font-weight: 800;
}
.qz-res p { color: var(--muted); font-size: 15px; }
.qz-res .btn { background: var(--tq); color: #fff; }
.qz-note { margin-top: 10px; font-size: 12px !important; text-align: center; }
.qz-again {
  display: block;
  margin: 8px auto 0;
  border: 0;
  background: none;
  color: var(--tq-2);
  font: 700 13px var(--body);
  text-decoration: underline;
  cursor: pointer;
}
.qz-anim { animation: qzIn .35s ease; }
@keyframes qzIn { from { opacity: 0; transform: translateX(14px); } }

/* ---------- проверка города ---------- */
.city-check {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: var(--tq-soft);
}
.city-check label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 15px; }
.cc-out {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.cc-out a { color: var(--tq-2); font-weight: 800; text-decoration: underline; }

/* ---------- уведомления как на телефоне ---------- */
.toasts {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  pointer-events: none;
}
.toast {
  width: 100%;
  max-width: 400px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 14px 11px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 12px 34px -10px rgba(40, 20, 5, .4);
  color: #1C1410;
  transform: translateY(-140%);
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: auto;
}
.toast.on { transform: none; }
.toast-i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: var(--y);
}
.toast-i img { width: 34px; height: auto; object-fit: contain; }
.toast-i.kaspi { background: #F14635; color: #fff; font: 800 11px/1 var(--body); letter-spacing: -.02em; }
.toast-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #7A7068; font-weight: 600; }
.toast-h b { color: #1C1410; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; }
.toast-t { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 1px; }
.toast-s { font-size: 12px; color: #7A7068; margin-top: 1px; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
