/* Собака-Занимака — тёплая бежево-золотая гамма (референс копилыч.рф). Шрифт Manrope. */
:root {
  --ink:        #17233f;   /* заголовки, тёмный текст */
  --body:       #4b5878;   /* основной текст */
  --muted:      #8b93ab;
  --accent:     #f4801f;   /* оранжевый CTA */
  --accent-dark:#e0680a;
  --gold:       #f0b429;   /* монеты, акценты */
  --gold-deep:  #c1963c;
  --cream:      #f8efd9;   /* тёплый акцент-фон */
  --cream-2:    #f1e0bd;
  --navy:       #1e2f52;   /* тёмные секции */
  --navy-2:     #17233f;
  --bg:         #eaedf6;   /* фон страницы */
  --card:       #ffffff;
  --line:       #e4e8f1;
  --ok:         #16a34a;
  --radius:     22px;
  --radius-sm:  13px;
  --pill:       999px;
  --shadow:     0 18px 44px rgba(30,40,80,.12);
  --shadow-sm:  0 8px 22px rgba(30,40,80,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--body); background: var(--bg); line-height: 1.55; overflow-x: hidden; }
h1,h2,h3 { font-family: 'Manrope', sans-serif; color: var(--ink); }
a { color: var(--accent-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: 'Manrope'; font-weight: 800; font-size: 16px; border: none; border-radius: var(--pill); padding: 13px 26px; cursor: pointer; transition: transform .12s, box-shadow .2s; text-align: center; line-height: 1.1; }
.btn--accent { background: linear-gradient(180deg, #ff9838, var(--accent)); color: #fff; box-shadow: 0 10px 22px rgba(244,128,31,.34); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(244,128,31,.46); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--xl { padding: 17px 34px; font-size: 18px; }

/* Topbar */
.topbar { background: var(--cream); color: var(--ink); font-size: 13.5px; font-weight: 700; border-bottom: 1px solid var(--cream-2); }
.topbar__in { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0; flex-wrap: wrap; }
.topbar i { color: var(--accent); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark { width: 46px; height: 46px; border-radius: 14px; background: url(../img/mascot.svg) center/92% no-repeat, var(--cream); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm); }
.logo__txt { font-weight: 800; font-size: 19px; color: var(--ink); line-height: 1.05; display: flex; flex-direction: column; }
.logo__txt small { font-size: 11px; font-weight: 700; color: var(--muted); }
.header__btn { padding: 10px 18px; font-size: 15px; }

/* Hero */
.hero { padding: 34px 0 48px; background:
  radial-gradient(700px 340px at 14% 0%, #eef1fb 0%, transparent 60%),
  radial-gradient(620px 360px at 100% 10%, #f7ecd6 0%, transparent 55%); }
.hero__top { max-width: 780px; margin-bottom: 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; padding: 8px 15px; border-radius: var(--pill); box-shadow: var(--shadow-sm); }
.hero__badge i { color: var(--accent); }
.hero__badge--hot { background: linear-gradient(135deg, #fff1da, #ffe1b8); color: var(--accent-dark); }
.hero__title { font-size: 44px; line-height: 1.05; font-weight: 800; color: var(--ink); letter-spacing: -.6px; margin-bottom: 12px; }
.hero__title span { color: var(--accent); }
.hero__title b { color: var(--accent); font-weight: 800; }
.hero__lead { font-size: 18px; color: var(--body); margin-bottom: 18px; max-width: 560px; }
.hero__lead b { color: var(--accent-dark); }
.hero__timer { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 18px; box-shadow: var(--shadow-sm); font-weight: 700; font-size: 15px; color: var(--body); }
.hero__timer i { color: var(--accent); }
.hero__timer b { color: var(--accent-dark); font-size: 18px; font-variant-numeric: tabular-nums; }

.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }

/* Lead form card */
.hero__form { display: flex; }
.lead-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); width: 100%; display: flex; flex-direction: column; }
.lead-card__head { background: linear-gradient(135deg, #fbf2dc, #f2e2bd); color: var(--ink); padding: 18px 22px; text-align: center; border-bottom: 1px solid var(--cream-2); }
.lead-card__sum { font-size: 32px; font-weight: 800; line-height: 1; color: var(--ink); }
.lead-card__sum b { color: var(--accent); }
.lead-card__cap { font-size: 14px; color: var(--gold-deep); font-weight: 700; margin-top: 4px; }
.lead-card__cap b { color: var(--accent); }
.lead-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.lead-card__ttl { font-weight: 800; font-size: 19px; color: var(--ink); text-align: center; margin-bottom: 14px; }
.fld { display: flex; align-items: center; gap: 10px; background: #f5f7fc; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; margin-bottom: 11px; transition: border-color .15s, background .15s; }
.fld:focus-within { border-color: var(--accent); background: #fff; }
.fld.is-error { border-color: #ef4444; background: #fff5f5; }
.fld__ic { color: var(--muted); font-size: 15px; }
.fld input { flex: 1; border: none; background: transparent; padding: 14px 0; font-size: 16px; font-family: 'Manrope'; color: var(--ink); outline: none; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.agree input { margin-top: 2px; accent-color: var(--accent); }
.lead-card__trust { display: flex; justify-content: center; gap: 18px; margin-top: auto; padding-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lead-card__trust i { color: var(--ok); }
.lead-card__trust span:last-child i { color: var(--gold); }

/* Правая карточка со сценой маскота */
.hero__visual { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: end center; min-height: 470px; }
.hero__disc { position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%); width: 88%; max-width: 380px; aspect-ratio: 1/1; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fdf3dd 0%, #f7e6c2 58%, #f0d6a0 100%); z-index: 1; }
.hero__marquee-bg { position: absolute; top: 9%; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 40px; color: rgba(193,150,60,.16); white-space: nowrap; z-index: 2; letter-spacing: 1px; pointer-events: none; }
.mascot-hero { position: relative; z-index: 3; width: 94%; max-width: 420px; align-self: end; }
.mascot-hero img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 22px rgba(30,40,80,.18)); }
.mascot-hero--ph { min-height: 300px; background: url(../img/mascot.svg) center/76% no-repeat; }
.coin { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold)); color: #a9720c; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(240,180,41,.5); animation: bob 2.6s ease-in-out infinite; z-index: 4; }
.hero__visual .coin--1 { left: 6%; top: 12%; }
.hero__visual .coin--2 { right: 6%; top: 22%; }
.hero__visual .coin--3 { right: 12%; bottom: 12%; }
.hero__visual .coin--4 { left: 10%; bottom: 18%; }
.hero__visual .coin--5 { right: 24%; top: 8%; width: 32px; height: 32px; animation-delay: .8s; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }

/* Бегущая строка */
.ticker { background: var(--navy); overflow: hidden; padding: 12px 0; }
.ticker__row { display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; animation: tickerscroll 28s linear infinite; padding-left: 34px; }
.ticker__row span { color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.ticker__row i { color: var(--gold); }
@keyframes tickerscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section title */
.sec-ttl { font-size: 32px; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 30px; }
.sec-ttl--light { color: #fff; }

/* Steps */
.steps { padding: 56px 0; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.step__n { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(244,128,31,.4); }
.step__ic { width: 66px; height: 66px; margin: 8px auto 14px; border-radius: 18px; background: var(--cream); color: var(--gold-deep); display: grid; place-items: center; font-size: 27px; }
.step h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--body); }
.steps__cta { text-align: center; margin-top: 32px; }

/* Гео-блок «по всей России» */
.geo { padding: 56px 0; }
.geo__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.geo__visual { position: relative; text-align: center; background: linear-gradient(135deg, #f1f4fc, #e9eefa); border-radius: 26px; padding: 34px 20px; }
.geo__map { width: 100%; max-width: 320px; margin: 0 auto; }
.geo__cap { font-weight: 800; color: var(--ink); font-size: 18px; margin-top: 8px; }
.geo__ttl { font-size: 30px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.geo-point { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 15px; }
.geo-point__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #ffb057, var(--accent)); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 8px 18px rgba(244,128,31,.3); }
.geo-point p { color: var(--body); font-size: 15.5px; font-weight: 600; padding-top: 3px; }
.geo__btn { margin-top: 10px; }

/* Why (тёмная секция) */
.why { padding: 58px 0; background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px 18px; text-align: center; color: #fff; }
.why-card i { font-size: 30px; color: var(--gold); margin-bottom: 10px; }
.why-card h3 { font-size: 18px; color: #fff; margin-bottom: 5px; }
.why-card p { font-size: 13.5px; color: #cdd5e8; }
.why__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat { text-align: center; color: #fff; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--gold); }
.stat span { font-size: 13px; color: #c3cce2; }

/* FAQ */
.faq { padding: 56px 0; }
.faq__list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: none; padding: 17px 20px; font-family: 'Manrope'; font-weight: 800; font-size: 16.5px; color: var(--ink); cursor: pointer; text-align: left; }
.faq-item__q i { color: var(--accent); transition: transform .2s; flex: 0 0 auto; }
.faq-item.active .faq-item__q i { transform: rotate(180deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; padding: 0 20px; color: var(--body); font-size: 15px; }
.faq-item.active .faq-item__a { max-height: 260px; padding: 0 20px 18px; }

/* Final */
.final { padding: 56px 0; }
.final__in { background: linear-gradient(135deg, var(--navy-2), var(--navy)); border-radius: 26px; padding: 26px 40px; color: #fff; box-shadow: var(--shadow); display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: center; overflow: hidden; }
.final__img { align-self: end; }
.final__img img { width: 100%; max-width: 250px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.32)); }
.final__txt h2 { font-size: 30px; color: #fff; margin-bottom: 10px; }
.final__txt p { font-size: 17px; margin-bottom: 22px; color: #dce2f0; }

/* Footer */
.footer { background: #0f1730; color: #97a1c2; padding: 34px 0 26px; font-size: 13px; }
.footer__disc { max-width: 900px; line-height: 1.6; margin-bottom: 12px; }
.footer__disc b { color: #cdd4ee; }
.footer__disc--small { font-size: 12px; color: #7d88ad; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.footer__row a { color: #aeb7d8; }

/* Notification + loader */
#notification { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; background: #fff; box-shadow: var(--shadow); border-radius: 14px; padding: 13px 18px; display: flex; align-items: center; gap: 11px; max-width: 92%; border-left: 4px solid var(--accent); }
.notif-ic { color: var(--accent); font-size: 19px; }
#notification p { color: var(--ink); font-weight: 700; font-size: 14px; }
.loader-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(23,35,63,.5); display: grid; place-items: center; }
.loader { width: 52px; height: 52px; border: 5px solid rgba(255,255,255,.35); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Онлайн-эфир заявок (плавающий тост) */
.livefeed { position: fixed; left: 18px; bottom: 18px; z-index: 150; width: 310px; max-width: calc(100vw - 36px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; align-items: center; gap: 12px; transform: translateY(140%); opacity: 0; transition: transform .4s cubic-bezier(.2,.9,.3,1.2), opacity .3s; }
.livefeed.show { transform: translateY(0); opacity: 1; }
.livefeed__ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #e9f9ef, #cdeed6); color: var(--ok); display: grid; place-items: center; font-size: 18px; }
.livefeed__b { min-width: 0; }
.livefeed__t { font-size: 13.5px; color: var(--ink); font-weight: 700; line-height: 1.25; }
.livefeed__t b { color: var(--accent-dark); }
.livefeed__s { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.livefeed__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.5)} 70%{box-shadow:0 0 0 7px rgba(22,163,74,0)} 100%{box-shadow:0 0 0 0 rgba(22,163,74,0)} }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
  .hero__grid { grid-template-columns: 1fr; gap: 18px; }
  .hero__title { font-size: 32px; }
  .hero__visual { min-height: 300px; order: 2; }
  .hero__disc { max-width: 240px; }
  .mascot-hero { max-width: 240px; }
  .hero__marquee-bg { font-size: 28px; }
  .steps__grid { grid-template-columns: 1fr; }
  .geo__grid { grid-template-columns: 1fr; gap: 24px; }
  .geo__visual { max-width: 420px; margin: 0 auto; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__stats { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
}
@media (max-width: 560px) {
  .header__btn span { display: none; }
  .hero { padding: 22px 0 30px; }
  .hero__title { font-size: 27px; }
  .sec-ttl { font-size: 24px; }
  .lead-card__sum { font-size: 28px; }
  .final h2 { font-size: 23px; }
  .footer__row { justify-content: center; text-align: center; }
  .livefeed { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

/* ===== Онлайн-эфир: таблица ===== */
.feed { padding: 48px 0 6px; }
.feed__bar { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.feed__live { display: inline-flex; align-items: center; gap: 7px; background: #fdecec; color: #dc2626; font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.feed__live .livefeed__dot { background: #dc2626; }
.feed__ttl { font-size: 28px; font-weight: 800; color: var(--ink); }
.feed__sub { color: var(--muted); font-size: 14px; }
.feed__table { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.feed__thead, .feed__row { display: grid; grid-template-columns: 1.3fr 1.3fr 1.2fr 1fr .9fr; gap: 12px; align-items: center; padding: 13px 22px; }
.feed__thead { background: #f6f8fc; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.feed__row { border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink); font-weight: 600; animation: rowin .5s ease; }
.feed__c-name { font-weight: 800; }
.feed__c-sum { color: var(--accent-dark); font-weight: 800; }
.feed__c-time { color: var(--muted); }
.feed__c-st { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 13px; }
@keyframes rowin { from { opacity: 0; transform: translateY(-9px); background: #fff7ec; } to { opacity: 1; transform: none; } }

/* плашка: пульс при обновлении (плашка постоянна, синхронна с таблицей) */
.livefeed.pop { animation: lfpop .45s ease; }
@keyframes lfpop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(0) scale(1.045); } 100% { transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
  .final__in { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; gap: 14px; }
  .final__img { max-width: 200px; margin: 0 auto; order: -1; }
  .final__img img { max-width: 200px; }
}
@media (max-width: 640px) {
  .feed__thead { display: none; }
  .feed__row { grid-template-columns: 1fr auto; row-gap: 2px; padding: 12px 16px; }
  .feed__c-name { grid-column: 1; grid-row: 1; }
  .feed__row > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .feed__c-sum { grid-column: 2; grid-row: 1; text-align: right; }
  .feed__c-time { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; }
  .feed__c-st { display: none; }
}
