/* t131: правки по макетам и сборке Никиты, раунд 2. Цвета, шрифты, радиусы сайтовые (Montserrat, #268bf3, #202838, #687388, #a0a8b5, #eef1f6). */

/* ===== 1. Слайдер на главной: круглые стрелки по краям баннера, точки снизу (nikita-home /t996/home-hero.css) ===== */
html body .hero{--n-arr:44px;--n-chev:20px;--n-dot:#eef1f6;--n-dot-h:#dfe4ec}
html[data-theme=dark] body .hero{--n-dot:#1e242f;--n-dot-h:#262d3a}
html[data-device=mobile] body .hero{--n-arr:32px;--n-chev:15px}
html body .hero .hero-nav{position:absolute!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;height:auto!important;
  display:block!important;padding:0!important;margin:0!important;gap:0!important;background:none!important;border-radius:0!important;pointer-events:none;z-index:4;overflow:visible!important}
html body .hero .hero-nav .arr{pointer-events:auto;position:absolute;top:50%;box-sizing:border-box!important;
  width:var(--n-arr)!important;height:var(--n-arr)!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
  display:grid!important;place-items:center;color:#202838!important;background:rgba(255,255,255,.92)!important;
  -webkit-backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) saturate(1.15);
  box-shadow:0 2px 12px rgba(0,0,0,.2),inset 0 0 0 1px rgba(255,255,255,.7)!important;cursor:pointer;opacity:1!important;
  transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease,color .2s ease}
html body .hero .hero-nav .arr[data-hero=prev]{left:0;right:auto;--n-ax:-50%;transform:translate(var(--n-ax),-50%)}
html body .hero .hero-nav .arr[data-hero=next]{right:0;left:auto;--n-ax:50%;transform:translate(var(--n-ax),-50%)}
html[data-device=mobile] body .hero .hero-nav{display:block!important}
html[data-device=mobile] body .hero .hero-nav .arr[data-hero=prev]{--n-ax:calc(-50% + 4px)}
html[data-device=mobile] body .hero .hero-nav .arr[data-hero=next]{--n-ax:calc(50% - 4px)}
html body .hero .hero-nav .arr svg{width:var(--n-chev)!important;height:var(--n-chev)!important;display:block;margin:0!important}
html[data-theme=dark] body .hero .hero-nav .arr{color:#f4f7fb!important;background:#1e242f!important;-webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 2px 12px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.08)!important}
@media (hover:hover){
  html body .hero .hero-nav .arr:hover,html body .hero .hero-nav .arr:focus-visible{background:#fff!important;color:#268bf3!important;
    box-shadow:0 4px 16px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.95)!important;transform:translate(var(--n-ax),-50%) scale(1.07)}
  html[data-theme=dark] body .hero .hero-nav .arr:hover,html[data-theme=dark] body .hero .hero-nav .arr:focus-visible{background:#262d3a!important;color:#268bf3!important}
}
html body .hero .hero-nav .arr:active{transform:translate(var(--n-ax),-50%) scale(1.07);color:#268bf3!important}
html[data-device=mobile] body{overflow-x:clip}
/* точки: серые 8px, активная - синяя вытянутая капсула, заполняется за время слайда и переливается */
html body .hero .pp-dots{gap:8px!important;top:calc(100% + 13px)!important}
html[data-device=mobile] body .hero .pp-dots{gap:8px!important;top:calc(100% + 8px)!important}
html body .hero .pp-dots button{width:8px!important;height:8px!important;border:0!important;padding:0!important;border-radius:999px!important;
  background:var(--n-dot)!important;position:relative;overflow:hidden;transition:width .35s cubic-bezier(.3,1.3,.5,1),background-color .2s ease!important}
html body .hero .pp-dots button:not(.is-on):hover{background:var(--n-dot-h)!important}
html body .hero .pp-dots button.is-on{width:26px!important;background:#dcecfd!important}
html[data-theme=dark] body .hero .pp-dots button.is-on{background:#1b2a3d!important}
html body .hero .pp-dots button.is-on::after{content:""!important;display:block!important;position:absolute!important;inset:0!important;border-radius:inherit!important;
  background:linear-gradient(90deg,#268bf3 0%,#268bf3 35%,#9fd2ff 50%,#268bf3 65%,#268bf3 100%)!important;background-size:250% 100%!important;
  transform:scaleX(0);transform-origin:left center!important;animation:ppDot 4s linear forwards,n131-shim 1.4s linear infinite!important}
html body .hero.pp-paused .pp-dots button.is-on::after{animation-play-state:paused!important}
html body .hero.n131-away .pp-dots button.is-on::after{animation-play-state:running,paused!important}
@keyframes n131-shim{from{background-position:120% 0}to{background-position:-120% 0}}
@media (prefers-reduced-motion:reduce){html body .hero .pp-dots button.is-on::after{animation:none!important;transform:scaleX(1)}}

/* ===== 2. Синий баннер «Испытай свою удачу» (nikita-home2 /t998/t998.css, раздел 5) ===== */
html body a.n-wb.t998-wb{all:unset;box-sizing:border-box;display:block!important;position:relative!important;cursor:pointer;width:100%!important;height:160px!important;
  margin-top:20px;padding:0!important;border-radius:16px!important;overflow:hidden!important;
  background:radial-gradient(50% 50% at 69% 54%,#9bdcff 0%,#268bf3 27%,#268bf3 79%,#268bf3 100%)!important;
  font-family:Montserrat,Arial,sans-serif;color:#fff;text-decoration:none!important;-webkit-tap-highlight-color:transparent;transition:box-shadow .2s ease}
html body a.n-wb.t998-wb *{box-sizing:border-box}
@media (hover:hover){html body a.n-wb.t998-wb:hover{box-shadow:0 10px 24px rgba(38,139,243,.25)}}
html[data-theme=dark] body a.n-wb.t998-wb{background:radial-gradient(50% 50% at 69% 54%,#5fb3f7 0%,#1f7fe0 30%,#1b6fd6 80%)!important}
.n-wb .t998-wb-glow{position:absolute;top:-58px;left:47.75%;width:346px;height:346px;border-radius:50%;background:rgba(255,255,255,.9);filter:blur(100px);pointer-events:none}
.n-wb .t998-wb-t{position:absolute;top:20px;left:38.5%;width:284px;height:115px}
.n-wb .t998-wb-h{position:absolute;top:0;left:0;font:700 40px/48px Montserrat,Arial,sans-serif;letter-spacing:-.5px;color:#fff;white-space:nowrap}
.n-wb .t998-wb-pill{position:absolute;top:54px;left:1px;height:56px;width:280px;transform:rotate(-2deg);border-radius:8px;background:#fff;color:#ff8d28;
  font:700 40px/56px Montserrat,Arial,sans-serif;letter-spacing:-.5px;padding-left:20px;white-space:nowrap}
.n-wb .t998-wb-star{position:absolute;top:0;left:208px;width:30px;height:30px;animation:n131-tw 2.6s ease-in-out infinite}
@keyframes n131-tw{0%,100%{opacity:.55;transform:scale(.85) rotate(0)}50%{opacity:1;transform:scale(1.1) rotate(45deg)}}
.n-wb .t998-wb-r{position:absolute;top:18px;right:20px;display:flex;align-items:flex-start;gap:8px}
.n-wb .t998-wb-txt{text-align:right;font:600 24px/28px Montserrat,Arial,sans-serif;letter-spacing:-.12px;color:#fff}
.n-wb .t998-wb-txt i{font-style:italic}
.n-wb .t998-wb-pad{width:28px;height:28px;flex:none}
.n-wb .t998-wb-free{position:absolute;top:93px;right:20px;height:44px;display:flex;align-items:center;gap:8px;padding:0 8px 0 16px;border-radius:8px;background:#edf7e6}
.n-wb .t998-wb-free img{width:22px;height:22px}
.n-wb .t998-wb-free span{font:600 16px/20px Montserrat,Arial,sans-serif;letter-spacing:-.5px;color:#6eb83f}
.n-wb .t998-wb-free b{height:30px;padding:0 16px;border-radius:8px;background:#6eb83f;color:#fff;display:flex;align-items:center;font:700 14px/20px Montserrat,Arial,sans-serif;letter-spacing:-.3px;white-space:nowrap;text-transform:uppercase}
.n-wb .t998-wb-go{display:none}
/* карточки призов из настроек колеса: 5 карточек ленты в масштабе */
.n-wb .n-wb-prz{position:absolute;top:21px;left:-88px;width:519px;height:117px;overflow:hidden;pointer-events:none}
.n-wb .n-wb-row{display:flex;gap:16px;width:max-content;transform:scale(.52);transform-origin:0 0}
.n-wb .n-wb-row .t997-card{flex:0 0 187px}
@media (max-width:1300px){html[data-device=desktop] .n-wb .t998-wb-txt{font-size:20px;line-height:24px}}
html[data-device=mobile] body a.n-wb.t998-wb{height:263px!important;background:#268bf3!important;margin-top:20px}
html[data-device=mobile] .n-wb .t998-wb-glow{top:39px;left:auto;right:-75px;width:288px;height:288px;filter:blur(40px)}
html[data-device=mobile] .n-wb .n-wb-prz{top:104px;left:-8px;width:calc(100% + 16px);height:134px}
html[data-device=mobile] .n-wb .n-wb-row{transform:scale(.52)}
html[data-device=mobile] .n-wb .t998-wb-t{top:10px;left:16px;width:213px;height:83px}
html[data-device=mobile] .n-wb .t998-wb-h{font-size:30px;line-height:36px}
html[data-device=mobile] .n-wb .t998-wb-pill{top:38px;left:0;width:210px;height:43px;font-size:30px;line-height:43px;padding-left:16px;transform:rotate(-1.68deg)}
html[data-device=mobile] .n-wb .t998-wb-star{left:150px;top:2px;width:22px;height:22px}
html[data-device=mobile] .n-wb .t998-wb-r,html[data-device=mobile] .n-wb .t998-wb-free{display:none}
html[data-device=mobile] .n-wb .t998-wb-go{display:flex;position:absolute;left:16px;bottom:16px;width:48.61%;height:49px;border-radius:10px;align-items:center;justify-content:center;
  background:#6eb83f;color:#fff;box-shadow:0 4px 10px rgba(0,0,0,.15);font:700 16px/1 Montserrat,Arial,sans-serif;letter-spacing:-.5px}
@media (prefers-reduced-motion:reduce){.n-wb .t998-wb-star{animation:none}}

/* ===== 4. Хлебные крошки (стиль макетов Никиты) ===== */
.n-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px;min-height:21px;font:500 12px/21px Montserrat,Arial,sans-serif;letter-spacing:-.5px}
.n-crumbs a{color:#a0a8b5;text-decoration:none}
.n-crumbs a:hover{color:#687388}
.n-crumbs .cur{color:#687388;font-weight:600}
.n-crumbs .sep{width:10px;height:10px;position:relative;display:inline-block;flex:none}
.n-crumbs .sep::before{content:"";position:absolute;inset:15% 20% 15% 35%;border-right:1.6px solid #a0a8b5;border-bottom:1.6px solid #a0a8b5;transform:rotate(-45deg);border-radius:1px}
html[data-theme=dark] .n-crumbs a,html[data-theme=dark] .n-crumbs .cur{color:#8f9cb0}
html[data-theme=dark] .n-crumbs .sep::before{border-color:#8f9cb0}
html[data-device=mobile] .n-crumbs{margin:0 0 8px}
html[data-device=mobile] .n-crumbs .cur{max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ===== 5. Профиль: настройки сверху, соцсети, бонусы + баланс слева, покупки справа (макет LK) ===== */
html body main[data-cab=profile] .n-prof-set .g-ok{margin-left:auto}
html body main[data-cab=profile] .n-prof-set h2{display:flex;align-items:center;gap:8px}
html body main[data-cab=profile] > .g-acc > .g-col{display:flex;flex-direction:column;gap:12px}
html body main[data-cab=profile] > .g-acc > .g-col > *{margin-top:0!important;margin-bottom:0!important}

/* ===== 6. Рефералка: приглашение и код друга одной колонкой, «Как это работает» ниже (макет Refferals097) ===== */
html body .g-ref.n-ref{align-items:stretch}
html body .n-refl{display:flex;flex-direction:column;gap:12px;min-width:0}
html[data-device=desktop] body .n-refl>.g-ref-l{flex:1 1 auto}
html[data-device=desktop] body .n-refl>.g-strip{position:relative;margin:0!important;height:auto!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 44px;column-gap:12px;row-gap:12px;align-items:center;padding:20px 20px 20px 168px!important;overflow:visible}
html[data-device=desktop] body .n-refl>.g-strip>img{position:absolute!important;left:8px!important;top:50%!important;width:150px!important;height:auto!important;transform:translateY(-50%);margin:0!important}
html[data-device=desktop] body .n-refl>.g-strip>.tx{grid-column:1 / -1;font-size:16px!important;line-height:20px!important;width:auto!important;max-width:none!important;margin:0!important}
html[data-device=desktop] body .n-refl>.g-strip>form{grid-column:1 / -1;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;width:auto!important;margin:0!important}
html[data-device=desktop] body .n-refl>.g-strip>form .field{width:auto!important;margin:0!important}
html[data-device=desktop] body .n-refl>.g-strip>.g-ok{grid-column:1 / -1;justify-self:start}
html body .n-refl>.g-strip{margin-top:0!important}
html body .n-how{margin-top:12px}
html body .n-how .g-h{margin:0}
html body .n-how ol{list-style:none;margin:16px 0 0;padding:12px 16px;border-radius:12px;background:#eef1f6;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body .n-how li{display:flex;align-items:center;gap:12px;font:500 14px/18px Montserrat,Arial,sans-serif;color:#202838}
html body .n-how li i{flex:none;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#ff8d28;color:#fff;font:700 12px/1 Montserrat,Arial,sans-serif;font-style:normal}
html[data-theme=dark] body .n-how ol{background:#1e242f}
html[data-theme=dark] body .n-how li{color:#f4f7fb}
html[data-device=mobile] body .n-how ol{grid-template-columns:1fr;gap:8px;margin-top:12px;padding:12px}
html[data-device=mobile] body .n-how li br{display:none}
html[data-device=mobile] body .n-how li i{width:20px;height:20px;font-size:11px}
.n-prof-set .g-ok[hidden]{display:none!important}
/* t131b: ссылка и ввод кода друга - один связанный блок (макет Refferals09) */
html body .n-refl{gap:0!important;border-radius:24px;overflow:hidden;background:#fff}
html[data-theme=dark] body .n-refl{background:#161b24}
html body .n-refl>.g-ref-l{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;padding-bottom:8px!important;box-shadow:none!important}
html body .n-refl>.g-strip{border-top-left-radius:0!important;border-top-right-radius:0!important;box-shadow:none!important;background:transparent!important;border-top:1px dashed #e3e8f0!important}
html[data-theme=dark] body .n-refl>.g-strip{border-top-color:#262e3b!important}
html[data-device=desktop] body .n-refl>.g-strip{padding:16px 176px 20px 28px!important}
html[data-device=desktop] body .n-refl>.g-strip>img{left:auto!important;right:12px!important;top:auto!important;bottom:0!important;transform:none!important;width:150px!important}
html[data-device=mobile] body .n-refl>.g-strip{border-radius:0!important}
html body main .n-crumbs{box-sizing:border-box;margin:10px 0 0!important;padding:0!important;height:21px;min-height:0;background:none!important;border:0!important;box-shadow:none!important;width:auto;max-width:100%}
html body main .n-crumbs+*{margin-top:12px!important}
html[data-device=mobile] body main .n-crumbs{margin:8px 0 0!important;flex-wrap:nowrap;overflow:hidden;white-space:nowrap}
html[data-device=mobile] body .n-refl>.g-strip>.tx{font-size:16px!important;line-height:20px!important}
html body .n-refl{border-radius:16px}
html[data-theme=dark] body .n-refl{background:#1e242f}
html[data-theme=dark] body .n-refl>.g-strip{border-top-color:#2c3442!important}
html body main .n-crumbs>a,html body main .n-crumbs>.cur{display:inline-flex;align-items:center;height:21px;line-height:21px!important;margin:0!important;padding:0!important;position:static;top:auto;font-size:12px!important}
/* t136: страница 404 */
html body .n404{margin:12px 0 40px;padding:56px 24px;border-radius:16px;text-align:center;font-family:Montserrat,Arial,sans-serif}
html body .n404-code{display:block;font:800 96px/1 Montserrat,Arial,sans-serif;color:#268bf3;letter-spacing:-2px}
html body .n404 h1{margin:16px 0 8px;font:700 24px/30px Montserrat,Arial,sans-serif;color:#202838}
html body .n404 p{margin:0;font:500 16px/22px Montserrat,Arial,sans-serif;color:#687388}
html[data-theme=dark] body .n404 h1{color:#f4f7fb}
html[data-theme=dark] body .n404 p{color:#8f9cb0}
html body .n404-acts{display:flex;justify-content:center;gap:12px;margin-top:24px;flex-wrap:wrap}
html body .n404-acts .n9-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 24px;border-radius:12px;font:600 16px/20px Montserrat,Arial,sans-serif;text-decoration:none}
html body .n404-acts .n9-blue{background:#268bf3;color:#fff}
html body .n404-acts .n9-grey{background:#f0f2f5;color:#687388}
html[data-theme=dark] body .n404-acts .n9-grey{background:#262e3b;color:#8f9cb0}
html[data-device=mobile] body .n404{padding:40px 16px}
html[data-device=mobile] body .n404-code{font-size:72px}

/* n7: та же заливка и перелив активной точки, но на transform (видеокарта). Перелив через background-position
   пересчитывал стили каждый кадр и держал процессор занятым на главной даже в покое (около половины нагрузки).
   Заливка - <i> внутри кнопки, перелив - ее ::before, сдвигается translateX и обрезается заливкой */
html body .hero .pp-dots.n7-dots button.is-on::after{display:none!important;animation:none!important}
html body .hero .pp-dots.n7-dots button > i{display:none}
html body .hero .pp-dots.n7-dots button.is-on > i{display:block;position:absolute;inset:0;border-radius:inherit;overflow:hidden;
  background:#268bf3;transform:scaleX(0);transform-origin:left center;animation:ppDot 4s linear forwards;pointer-events:none}
html body .hero .pp-dots.n7-dots button.is-on > i::before{content:"";position:absolute;top:0;bottom:0;left:0;width:250%;
  background:linear-gradient(90deg,#268bf3 0%,#268bf3 35%,#9fd2ff 50%,#268bf3 65%,#268bf3 100%);
  transform:translateX(-72%);animation:n7-shim 1.4s linear infinite;will-change:transform}
html body .hero.pp-paused .pp-dots.n7-dots button.is-on > i,
html body .hero.pp-paused .pp-dots.n7-dots button.is-on > i::before,
html body .hero.n131-away .pp-dots.n7-dots button.is-on > i::before{animation-play-state:paused}
@keyframes n7-shim{from{transform:translateX(-72%)}to{transform:translateX(72%)}}
@media (prefers-reduced-motion:reduce){
  html body .hero .pp-dots.n7-dots button.is-on > i{animation:none;transform:scaleX(1)}
  html body .hero .pp-dots.n7-dots button.is-on > i::before{animation:none}
}
