:root {
  --green: #63b84c;
  --green-d: #4f9e3b;
  --purple: #4c37d1;
  --purple-l: #6b57e9;
  --gold: #e1a500;
  --ink: #1b1b1b;
  --gray: #565656;
  --gray-l: #909090;
  --line: #ececec;
  --bg: #f6f6f6;
  --card: #ffffff;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "TildaSans", -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1080px, 92vw); margin: 0 auto; }
a { color: inherit; }

/* Header */
.header { background: rgba(255,255,255,.9); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(20,20,40,.05); }
.header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--purple), var(--green)); }
.header__inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 800; }
.logo__text b { color: var(--purple); }
.logo__img { height: 42px; display: block; }
.nav { display: flex; gap: 8px; margin-left: 14px; }
.nav a { position: relative; text-decoration: none; color: var(--gray); font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 9px; transition: .15s; }
.nav a:hover { color: var(--green-d); background: #e9f6e4; }
.header__cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header__note { color: var(--gray-l); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.header__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(99,184,76,.2); }
.header__btn { padding: 11px 20px; font-size: 14px; border-radius: 11px; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff, var(--bg)); padding: 56px 0 40px; overflow-x: clip; }
.hero__inner { display: flex; align-items: center; gap: 40px; }
.hero__text { flex: 1 1 50%; }
.hero__title { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
.hero__lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--purple); font-weight: 700; margin: 0 0 6px; }
.hero__sub { color: var(--gray-l); margin: 0; font-size: 16px; }
.hero__badges { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero__badge { height: 40px; width: auto; opacity: .85; }
@media (max-width: 860px) {
  .hero__inner { flex-direction: column; text-align: center; gap: 20px; }
  .hero__badges { justify-content: center; }
}

/* Hero: стопка наклонённых карточек с авто-анимацией */
.dcards { flex: 1 1 50%; display: grid; grid-template-areas: "stack"; place-items: center; min-height: 280px; }
.dcard {
  grid-area: stack;
  width: 320px; height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 14px 34px rgba(20,20,50,.12);
  text-align: left; transform: translate(var(--x), var(--y)) skewY(-8deg);
  animation: dfloat 4.5s ease-in-out infinite; will-change: transform;
}
.dcard--1 { --x: -130px; --y: -8px; z-index: 1; animation-delay: 0s; }
.dcard--2 { --x: 0px;    --y: 26px; z-index: 2; animation-delay: .5s; }
.dcard--3 { --x: 130px;  --y: 60px; z-index: 3; animation-delay: 1s; }
@keyframes dfloat {
  0%, 100% { transform: translate(var(--x), var(--y)) skewY(-8deg); }
  50%      { transform: translate(var(--x), calc(var(--y) - 14px)) skewY(-8deg); }
}
.dcard__row { display: flex; align-items: center; gap: 9px; }
.dcard__ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.dcard__ic--green { background: var(--green); }
.dcard__ic--purple { background: var(--purple); }
.dcard__ic--gold { background: var(--gold); }
.dcard__title { font-size: 17px; font-weight: 800; margin: 0; color: var(--ink); }
.dcard__desc { font-size: 14px; margin: 0; color: var(--gray); white-space: nowrap; }
.dcard__date { font-size: 12px; margin: 0; color: var(--gray-l); }
@media (prefers-reduced-motion: reduce) { .dcard { animation: none; } }
@media (max-width: 560px) {
  .dcards { min-height: 240px; }
  .dcard { width: 74vw; max-width: 285px; padding: 14px 16px; }
  .dcard--1 { --x: -26px; --y: -2px; }
  .dcard--2 { --x: 0;     --y: 20px; }
  .dcard--3 { --x: 26px;  --y: 42px; }
  .dcard__desc { white-space: normal; }
}

/* Toolbar / chips */
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--gray); border-radius: 999px; padding: 8px 15px; font-size: 14px; cursor: pointer; transition: .12s; }
.chip:hover { border-color: var(--purple-l); color: var(--purple); }
.chip--active { background: var(--purple); border-color: var(--purple); color: #fff; }
.sort { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 14px; color: var(--ink); cursor: pointer; }

.status { color: var(--gray-l); min-height: 18px; margin: 6px 0; }

/* Обёртка списка: офферы группами-сетками, баннеры — полосами между ними */
.cards-wrap { display: flex; flex-direction: column; gap: 16px; }
.cards--list { display: flex; flex-direction: column; gap: 14px; }
.cards--grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.09); transform: translateY(-2px); }
/* Рекомендуемые офферы: зелёный акцент + бегущая линия по обводке */
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card--featured { border: 2px solid rgba(99,184,76,.35); box-shadow: 0 8px 26px rgba(99,184,76,.16); }
.card--featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 3;
  background: conic-gradient(from var(--beam-angle),
    transparent 0 62%, rgba(99,184,76,.25) 70%, #4fe07d 80%, rgba(99,184,76,.25) 90%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beam-run 3s linear infinite; pointer-events: none;
}
@keyframes beam-run { to { --beam-angle: 360deg; } }
.card.card--featured .btn--get { background: var(--green); box-shadow: 0 4px 14px rgba(99,184,76,.4); }
.card.card--featured .btn--get:hover { background: var(--green-d); }
@media (prefers-reduced-motion: reduce) { .card--featured::before { animation: none; } }

/* Список — горизонтальная строка */
.card--list { display: grid; align-items: center; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 18px; }

/* Сетка — вертикальная карточка с «шапкой»-логотипом вверху */
.card--grid { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.gcard__head {
  position: relative; height: 124px; display: grid; place-items: center;
  background: #fafbfc; border-bottom: 1px solid var(--line);
}
.gcard__logo { max-height: 64px; max-width: 72%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.12)); }
.gcard__ph { width: 76px; height: 76px; border-radius: 18px; background: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: hsl(var(--h), 55%, 40%); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
/* flex:1 — тело тянется на всю высоту карточки, чтобы кнопка (margin-top:auto)
   у всех офферов была на одном уровне независимо от длины текста/бейджа. */
.gcard__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px 20px 20px; }
/* Бейдж может переноситься на свою строку — длинным тегам («с плохой КИ») хватает места. */
.gcard__titlerow { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; }
.gcard__titlerow .brand__name { flex: 1 1 auto; min-width: 0; }
.gcard__titlerow .brand__tag { margin: 0; flex: 0 0 auto; max-width: 100%; line-height: 1.3; white-space: normal; }
.gcard__body .brand__rating { align-self: flex-start; }
.card--grid .brand__name { font-size: 20px; }
.card--grid .brand__rating { margin: 0; }
.grid-rows { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 2px; }
.grow { display: flex; align-items: baseline; justify-content: space-between; }
.grow span { color: var(--gray-l); font-size: 15px; }
.grow b { font-size: 18px; }
.grow b.ok { color: var(--green-d); }
.card--grid .card__cta { margin-top: auto; }
.card--grid .btn--get { padding: 15px; font-size: 16px; background: var(--purple); box-shadow: 0 4px 14px rgba(76,55,209,.3); }
.card--grid .btn--get:hover { background: #3d2cb0; }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand__logo { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; flex: 0 0 auto; }
.brand__logo--ph { display: grid; place-items: center; color: var(--purple); font-weight: 800; font-size: 22px; background: #f0eefc; }
.brand__name { font-weight: 750; font-size: 17px; line-height: 1.2; }
.brand__tag { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--green-d); background: #e9f6e4; border-radius: 6px; padding: 2px 8px; }
.brand__tag--top { color: #fff; background: linear-gradient(135deg, var(--purple-l), var(--purple)); padding: 5px 14px; font-size: 13px; border-radius: 8px; }
.brand__rating { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 13px; color: var(--gray-l); }
.stars { color: var(--gold); letter-spacing: 1px; }

.cell { text-align: center; }
.cell__label { font-size: 12px; color: var(--gray-l); margin-bottom: 4px; }
.cell__value { font-size: 16px; font-weight: 700; }
.cell__value--accent { color: var(--green-d); }

.card__cta { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.card__more { font-size: 13px; color: var(--gray-l); text-align: center; cursor: pointer; background: none; border: none; }
.card__more:hover { text-decoration: underline; }

/* Buttons */
.btn { border: none; border-radius: 12px; padding: 13px 24px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap; }
.btn--get { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(99,184,76,.35); }
.btn--get:hover { background: var(--green-d); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.loadmore { display: grid; place-items: center; padding: 26px 0; }

/* Форма заявки */
.leadform { padding: 44px 0 12px; }
.leadform__card {
  display: grid; grid-template-columns: 300px 1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(20,20,50,.10); max-width: 920px; margin: 0 auto;
}
/* Левая колонка с анимированной монетой */
.leadform__aside {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 34px 24px; text-align: center;
  background: linear-gradient(160deg, #eaf2ff, #f3f7ff 60%, #eef9f0);
  border-right: 1px solid var(--line);
}
.leadform__pitch { font-weight: 800; font-size: 18px; margin: 14px 0 0; color: var(--ink); }
.leadform__pitch-sub { font-size: 13px; color: var(--gray-l); margin: 4px 0 0; max-width: 220px; }
.leadform__main { padding: 30px 32px; }
.leadform__h { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.leadform__lead { margin: 0 0 18px; }
.leadform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 15px; width: 100%; font-family: inherit; background: #fbfcfe; transition: .15s; }
.field:focus { outline: none; border-color: var(--purple-l); background: #fff; box-shadow: 0 0 0 3px rgba(108,87,233,.12); }
.field--error { border-color: #e05656 !important; background: #fff6f6; box-shadow: 0 0 0 3px rgba(224,86,86,.15); }
.field-wrap { position: relative; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,20,50,.14); overflow: hidden; max-height: 240px; overflow-y: auto; }
.suggest__item { display: block; width: 100%; text-align: left; border: none; background: none; padding: 10px 14px; font-size: 14px; cursor: pointer; font-family: inherit; }
.suggest__item:hover { background: #f3f1fd; }
.consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 14px; }
.captcha { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha__q { color: var(--gray); font-size: 14px; }
.captcha__q b { color: var(--ink); font-size: 16px; }
.captcha__input { max-width: 120px; }
.leadform__submit { grid-column: 1 / -1; background: var(--purple); box-shadow: 0 4px 14px rgba(76,55,209,.3); }
.leadform__submit:hover { background: #3d2cb0; }
.leadform__msg { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; font-size: 14px; }

/* Сумма займа: пресеты + ползунок */
.amount { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #fbfcfe; }
.amount__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.amount__head span { color: var(--gray); font-size: 14px; }
.amount__head b { font-size: 20px; font-weight: 800; color: var(--ink); }
.amount__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.amount__preset { flex: 1 1 auto; min-width: 64px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.amount__preset:hover { border-color: var(--purple-l); }
.amount__preset.is-active { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 3px 10px rgba(76,55,209,.28); }
.amount__range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--purple) 0%, var(--purple) var(--p,15%), #e6e6f0 var(--p,15%)); outline: none; }
.amount__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.amount__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.amount__scale { display: flex; justify-content: space-between; margin-top: 7px; color: var(--gray-l); font-size: 12px; }

/* Спиннер загрузки на кнопке отправки заявки */
.btn--loading { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: progress; opacity: .92; }
.btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: btn-spin .7s linear infinite; flex: 0 0 auto; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.leadform__msg.ok { color: var(--green-d); }
.leadform__msg.error { color: #d33; }
.geo-block { text-align: center; padding: 60px 20px; color: var(--gray); }
.geo-block b { display: block; font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* Монета-рубль с орбитой и искрой (CSS) */
.coin-illus { position: relative; width: 180px; height: 180px; }
.coin {
  position: absolute; left: 50%; top: 50%; width: 116px; height: 116px; border-radius: 50%;
  transform: translate(-50%, -50%); display: grid; place-items: center;
  font-size: 56px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 35% 28%, #a9ccff, #2f6bff 72%);
  box-shadow: 0 16px 30px rgba(47,107,255,.35), inset 0 -7px 14px rgba(0,0,0,.18), inset 0 5px 10px rgba(255,255,255,.45);
}
.coin--main { z-index: 3; animation: coin-float 4s ease-in-out infinite; }
.coin--ghost { opacity: .45; filter: blur(1px); font-size: 42px; width: 88px; height: 88px; }
.coin--g1 { transform: translate(-118%, -18%) rotate(-12deg); z-index: 1; }
.coin--g2 { transform: translate(20%, 26%) rotate(10deg); z-index: 1; }
.coin-orbit {
  position: absolute; left: 50%; top: 50%; width: 178px; height: 178px; z-index: 2;
  transform: translate(-50%, -50%) rotateX(72deg);
  transform-style: preserve-3d; animation: orbit-spin 6s linear infinite;
}
.coin-orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(95,157,255,.55); }
.coin-spark { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: var(--green); border-radius: 3px; transform: rotate(45deg); box-shadow: 0 0 12px rgba(99,184,76,.8); }
@keyframes coin-float { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,-62%); } }
@keyframes orbit-spin { to { transform: translate(-50%,-50%) rotateX(72deg) rotateZ(360deg); } }
@media (prefers-reduced-motion: reduce) { .coin--main, .coin-orbit { animation: none; } }

@media (max-width: 720px) {
  .leadform__card { grid-template-columns: 1fr; }
  .leadform__aside { border-right: none; border-bottom: 1px solid var(--line); padding: 26px; }
  .leadform__main { padding: 24px 20px; }
}
@media (max-width: 560px) { .leadform__grid { grid-template-columns: 1fr; } }

/* How it works */
.how { padding: 40px 0; }
.section__h { text-align: center; font-size: 28px; font-weight: 800; margin: 0 0 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.step__n { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; font-size: 18px; line-height: 1; margin: 0 auto 12px; }
.step b { display: block; font-size: 17px; }
.step p { color: var(--gray-l); margin: 8px 0 0; font-size: 14px; }

/* Блок «Финансовые услуги предоставляют» */
.legalblock { padding: 30px 0; }
.legalblock .section__h { font-size: 24px; }
.legalblock__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.legalblock__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.legalblock__item b { font-size: 14px; }
.legalblock__item span { color: var(--gray-l); font-size: 12px; line-height: 1.4; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0; }
.footer__disc { color: var(--gray-l); font-size: 12.5px; max-width: 80ch; margin: 0 0 10px; }
.footer__contacts { margin-bottom: 16px; }
.footer__contacts b { display: block; font-size: 15px; margin-bottom: 8px; }
.footer__contacts p { margin: 4px 0; font-size: 14px; color: var(--ink); }
.footer__contacts a { color: var(--purple); text-decoration: none; }
.footer__contacts a:hover { text-decoration: underline; }
.footer__links { margin: 0 0 8px; display: flex; align-items: center; gap: 14px; }
.footer__links a { color: var(--purple); text-decoration: none; font-size: 14px; }
.footer__links a:hover { text-decoration: underline; }
.footer__age { border: 1px solid #d33; color: #d33; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.footer__copy { color: var(--gray); font-size: 14px; margin: 0; }

.error { color: #d33; }

/* Виджет-баннер (подсказка) */
.tip { display: flex; gap: 16px; align-items: flex-start; border-radius: 18px; padding: 18px 24px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.cards--grid .tip { grid-column: 1 / -1; } /* в сетке — на всю ширину */
.tip--green { background: linear-gradient(135deg, #7ed07a, #3f9e5a); }
.tip--purple { background: linear-gradient(135deg, #6b57e9, #4c37d1); }
.tip--blue { background: linear-gradient(135deg, #4aa3f0, #2563eb); }
.tip--orange { background: linear-gradient(135deg, #f7b955, #e1820a); }
.tip__pin { position: absolute; top: 12px; right: 16px; font-size: 20px; transform: rotate(8deg); }
.tip__icon { width: 50px; height: 50px; border-radius: 13px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; }
.tip__title { font-weight: 800; letter-spacing: .02em; margin: 2px 0 5px; font-size: 16px; }
.tip__body { margin: 0; font-size: 15px; line-height: 1.45; opacity: .97; max-width: 70ch; }
.tip__btn { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.95); color: #1b1b1b; font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 10px; font-size: 14px; }
.tip__btn:hover { background: #fff; }
@keyframes tip-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px) rotate(-.6deg); }
  40%, 60% { transform: translateX(8px) rotate(.6deg); }
}
.tip--shake { animation: tip-shake .8s cubic-bezier(.36,.07,.19,.97) both; }
@media (prefers-reduced-motion: reduce) { .tip--shake { animation: none; } }

/* Попап-баннер (карточка в нашем стиле) */
/* Компактный тост в правом нижнем углу (без затемнения, страница активна). */
.popup { position: fixed; z-index: 80; right: 20px; bottom: 20px; left: auto; top: auto; width: min(300px, calc(100vw - 24px)); }
.popup__backdrop { display: none; }
.popup__card { position: relative; z-index: 1; width: 100%; background: #0f2038; color: #fff; border-radius: 18px; padding: 12px 14px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: popup-in .35s ease both; }
@keyframes popup-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.popup__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.popup__ad { font-size: 10px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); border-radius: 999px; padding: 2px 9px; }
.popup__close { border: none; background: none; color: rgba(255,255,255,.8); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.popup__illus { display: block; width: 100%; height: auto; margin: 2px 0 9px; }
.popup__title { font-size: 18px; font-weight: 800; margin: 2px 0 5px; }
.popup__sub { font-size: 13px; color: rgba(255,255,255,.82); margin: 0 0 11px; line-height: 1.35; }
.popup__btn { display: block; text-align: center; background: #2f6bff; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; padding: 11px; border-radius: 11px; }
.popup__btn:hover { background: #2257e6; }
.popup__disc { font-size: 10px; color: rgba(255,255,255,.55); margin: 10px 0 0; line-height: 1.4; }
.popup__disc a { color: rgba(255,255,255,.8); }

/* Блок «Рекомендуем» (избранные офферы) */
.featured { margin-top: 26px; }
.featured .section__h { font-size: 22px; margin-bottom: 14px; }

/* Онлайн эфир по выдачам (бегущая строка) */
#topWidgets:not(:empty) { margin-top: 22px; }
#listWidgets:not(:empty) { margin-top: 26px; }
.ticker { padding: 4px 2px; }
.cards--grid .ticker { grid-column: 1 / -1; }
.ticker__title { font-weight: 800; font-size: 20px; margin: 0 0 12px; color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.ticker__live { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-d); background: #e9f6e4; border-radius: 999px; padding: 3px 10px; }
.ticker__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(99,184,76,.6); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(99,184,76,.55); } 70% { box-shadow: 0 0 0 7px rgba(99,184,76,0); } 100% { box-shadow: 0 0 0 0 rgba(99,184,76,0); } }
.ticker__track { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(#fff,#fbfdfb); padding: 13px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ticker__run { display: flex; width: max-content; white-space: nowrap; will-change: transform; animation: ticker-scroll 60s linear infinite; }
.ticker__half { display: inline-flex; }
.ticker__item { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--gray); font-weight: 600; padding: 0 20px; border-right: 1px solid var(--line); }
.ticker__chk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e9f6e4; color: var(--green-d); font-size: 11px; font-weight: 800; }
.ticker__sum { color: var(--green-d); font-weight: 800; }
.ticker__track:hover .ticker__run { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal__dialog { position: relative; z-index: 1; width: min(680px, 94vw); max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px; padding: 26px; }
.modal__close { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 28px; color: var(--gray-l); cursor: pointer; }
.modal__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.goals { width: 100%; border-collapse: collapse; margin: 14px 0; }
.goals th, .goals td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.goals th { color: var(--gray-l); font-weight: 600; }
.goals td.payout { color: var(--green-d); font-weight: 700; white-space: nowrap; }
.section-title { font-size: 13px; color: var(--gray-l); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.richtext { font-size: 14px; color: var(--gray); max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.richtext :where(p, span, font) { color: var(--gray) !important; background: none !important; font-family: inherit !important; font-size: 14px !important; }
.richtext img { max-width: 100%; height: auto; }

/* Responsive */
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .brand { grid-column: 1 / -1; }
  .card__cta { grid-column: 1 / -1; }
  .nav { display: none; }
  .header__note { display: none; }
  .steps { grid-template-columns: 1fr; }
}
