/* NeoLoss — главная личного кабинета. Токены и общие компоненты — styles.css */

.cab-page { background: #F6F9FD; }
.cab { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }

/* ---------- боковое меню ---------- */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px 18px; background: linear-gradient(180deg, #FBFDFF, #F6F9FD); box-shadow: 1px 0 0 #EBF0F6; z-index: 30; }
.side__logo { margin: 4px 8px 30px; }
.side__logo img { height: 34px; }
.side__nav { display: grid; gap: 6px; }
.side__nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.side__nav a .icon { width: 21px; height: 21px; color: var(--ink-3); transition: color .2s ease; }
.side__nav a:hover { background: var(--blue-50); color: var(--ink); }
.side__nav a[aria-current="page"] { background: #E8F1FE; color: var(--blue); }
.side__nav a[aria-current="page"] .icon { color: var(--blue); }
.side__dot { position: absolute; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #fff; }
.side__help { margin-top: auto; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #F1F6FE, #EDF3FB); }
.side__help img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.side__help p { margin: 10px 0 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.side__help b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); }
.side__out { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--ink-3); }
.side__out:hover { background: var(--blue-50); color: var(--ink); }
.side__out .icon { width: 18px; height: 18px; }
.side__shade { display: none; }

/* ---------- верхняя строка ---------- */
.cab__main { min-width: 0; padding: 20px 28px 36px; }
.top, .dash, .dash__bottom { max-width: 1280px; margin-left: auto; margin-right: auto; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.top__burger { display: none; position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E6ECF4; }
.top__burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); }
.top__burger span:first-child { top: 17px; } .top__burger span:last-child { top: 25px; }
.top__hello { margin-right: auto; min-width: 0; }
.top__hello h1 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.top__hello p { margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.top__bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 14px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px #E6ECF4; transition: color .2s ease; }
.top__bell:hover { color: var(--blue); }
.top__bell .icon { width: 19px; height: 19px; }
.top__bell i { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.top__me { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #E6ECF4; text-align: left; }
.top__ava { width: 32px; height: 32px; font-size: 14px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #7DB6FF, var(--blue)); color: #fff; font-weight: 600; }
.top__name { display: grid; font-size: 12.5px; line-height: 1.25; color: var(--ink-3); }
.top__name b { font-size: 13.5px; color: var(--ink); }
.top__me .icon { width: 18px; height: 18px; color: var(--ink-3); }

/* ---------- сетка: левая область + правая колонка, ниже — цель и промо ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.dash__left, .dash__right { display: grid; gap: 14px; min-width: 0; }
.dash__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; }
.dash__bottom { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }

.card { position: relative; padding: 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px #EAF0F7, 0 10px 30px -22px rgb(16 40 90 / .18); }
.card h2 { font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--blue); white-space: nowrap; }
.card__link .icon { width: 15px; height: 15px; transition: transform .25s var(--ease-out); }
.card__link:hover .icon { transform: translateX(3px); }
.pill { padding: 4px 11px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-hover); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill--ok { background: var(--mint-100); color: #0F7354; }
.pill--blue { background: #E4F7EE; color: #0F7354; }
.ico-tile { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }

/* баннер */
.banner { overflow: hidden; background: linear-gradient(110deg, #EAF2FC 0%, #DCEAF9 55%, #CFE2F6 100%); }
.banner__copy { position: relative; z-index: 1; max-width: 62%; }
.banner__kicker { margin-bottom: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card .banner__title { font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.banner__text { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.banner__img { position: absolute; right: 0; top: 0; width: 44%; height: 100%; object-fit: cover; object-position: 40% 25%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }

/* план */
.plan { background: linear-gradient(165deg, #FBF3EA 0%, #FDF9F5 45%, #fff 100%); padding: 24px 22px; }
.plan .card__head { margin-bottom: 10px; }
.plan .card__head h2 { font-size: 19px; }
.plan__week { font-size: 15px; color: var(--ink-2); }
.plan__bar { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; }
.plan__track { flex: 1; height: 8px; border-radius: 8px; background: #EAEFF5; overflow: hidden; }
.plan__track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--blue); transform-origin: left; animation: grow 1.2s var(--ease-out) .3s both; }
@keyframes grow { from { transform: scaleX(0); } }
.plan__bar b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.plan__steps { display: grid; gap: 13px; }
.plan__steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-4); }
.plan__steps li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #D3DCE7; }
.plan__steps .is-done { color: var(--ink); }
.plan__steps .is-done::before { box-shadow: none; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan__steps .is-now { color: var(--ink); }
.plan__steps .is-now::before { box-shadow: inset 0 0 0 6px var(--blue), 0 0 0 3px #DCEAFD; background: #fff; }

/* консультация */
.next__when { display: flex; align-items: center; gap: 14px; }
.next__when p { display: grid; font-size: 14px; color: var(--ink-3); }
.next__when b { font-size: 15px; font-weight: 600; color: var(--ink); }
.next__when small { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.next__left { margin-left: auto; padding: 4px 10px; border-radius: var(--r-pill); background: var(--mint-100); color: #0F7354; font-size: 12px; font-weight: 600; white-space: nowrap; }
.next__doc { display: flex; align-items: center; gap: 16px; margin: 18px 0 20px; }
.next__doc img { width: 92px; height: 92px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #F3F6FA; }
.next__doc p { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.next__doc b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 500; color: var(--ink); }
.next__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.next__btns .btn { height: 48px; padding: 0 12px; font-size: 14.5px; font-weight: 500; }
.next__btns .icon { width: 18px; height: 18px; }

/* показатели */
.metrics__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mtile { display: grid; justify-items: start; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #F4F7FB; }
.mtile small { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; color: var(--ink-2); }
.mtile small .icon { width: 20px; height: 20px; color: var(--blue); }
.mtile b { font-size: 21px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mtile em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12.5px; font-weight: 500; color: #16A06F; }
.mtile em .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.mtile em.muted { color: var(--ink-3); }
.mtile > span:last-child { font-size: 12px; color: var(--ink-4); }
.chart { position: relative; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: #EDF1F6; stroke-width: 1; }
.chart__grid text { font-size: 12px; fill: #98A2B3; font-family: var(--font); }
.chart__line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__dot { fill: var(--blue); stroke: #fff; stroke-width: 2; cursor: pointer; transition: r .15s ease; }
.chart__dot:hover, .chart__dot.is-on { r: 7; }
.chart__hit { fill: transparent; cursor: pointer; }
.chart__tip { width: max-content; position: absolute; transform: translate(-50%, calc(-100% - 14px)); padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: 0 8px 20px -10px rgb(16 40 90 / .35), inset 0 0 0 1px #EAF0F7; text-align: center; white-space: nowrap; pointer-events: none; transition: left .2s var(--ease-out), top .2s var(--ease-out); }
.chart__tip b { display: block; font-size: 13px; font-weight: 600; }
.chart__tip span { font-size: 11.5px; color: #16A06F; }
.chart__x { display: flex; justify-content: space-between; padding: 6px 4px 0 30px; font-size: 12px; color: var(--ink-4); }

/* препараты */
.drug-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 16px; box-shadow: inset 0 0 0 1px #EAF0F7; }
.drug-row__img { width: 104px; height: 84px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #F4F7FB; overflow: hidden; color: #8AA6C8; }
.drug-row__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.drug-row p { gap: 2px; }
.drug-row p b { white-space: nowrap; }
.drug-row p em { justify-self: start; margin-top: 6px; font-style: normal; }
.drug-row__img .icon { width: 30px; height: 30px; stroke-width: 1.4; transform: rotate(-20deg); }
.drug-row p { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.drug-row b { font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* рекомендации */
.recs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rec-tile { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 26px 14px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px #EAF0F7; transition: background-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease; }
.rec-tile:hover { background: #F7FAFD; transform: translateY(-2px); box-shadow: inset 0 0 0 1px #DCE6F2; }
.rec-tile__ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--blue-100); color: var(--blue); }
.rec-tile__ico .icon { width: 21px; height: 21px; }
.rec-tile__ico--mint { background: var(--mint-100); color: var(--mint); }
.rec-tile__ico--lav { background: var(--lav-100); color: var(--lav); }
.rec-tile__ico--peach { background: var(--peach-100); color: var(--peach); }
.rec-tile__txt { display: grid; gap: 3px; }
.rec-tile__txt b { font-size: 13.5px; font-weight: 600; }
.rec-tile__txt span { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.rec-tile__go { position: absolute; right: 10px; bottom: 12px; width: 15px; height: 15px; color: var(--ink-4); transition: transform .25s var(--ease-out), color .2s ease; }
.rec-tile:hover .rec-tile__go { color: var(--blue); transform: translateX(3px); }

/* поддержка */
.support { background: linear-gradient(160deg, #EAF2FC, #E1ECFA); box-shadow: inset 0 0 0 1px #DCE8F7; padding: 22px; }
.support__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.support__ico { width: 30px; height: 30px; display: grid; place-items: center; color: var(--blue); }
.support__ico .icon { width: 26px; height: 26px; }
.support__head h2 { font-size: 19px; }
.support p { margin-bottom: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.support__btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 14px; background: #fff; color: var(--blue); font-size: 14.5px; font-weight: 500; box-shadow: 0 6px 16px -10px rgb(16 40 90 / .3); transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.support__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgb(16 40 90 / .4); }
.support__btn .icon { width: 19px; height: 19px; }

/* цель */
.goal h2 { margin-bottom: 16px; }
.goal__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 24px; }
.ring { position: relative; width: 104px; height: 104px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: #EDF2F8; }
.ring__fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 * (1 - var(--p))); transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.goal__nums { display: grid; gap: 2px; }
.goal__nums small { font-size: 13px; color: var(--ink-3); }
.goal__nums b { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.goal__nums span { font-size: 13px; color: var(--ink-3); }
.goal__note { display: flex; gap: 10px; padding: 16px 18px; border-radius: 14px; background: #F4F7FB; }
.goal__note .icon { width: 20px; height: 20px; flex: none; color: #16A06F; }
.goal__note p { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.goal__note b { display: block; margin-bottom: 2px; font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* промо */
.promo { padding: 0; overflow: hidden; min-height: 160px; display: flex; align-items: flex-end; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transition: transform .8s var(--ease-out); }
.promo:hover img { transform: scale(1.04); }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(12 24 44 / .6), rgb(12 24 44 / 0) 70%); }
.promo__text { position: relative; z-index: 1; display: grid; gap: 4px; padding: 20px 80px 20px 26px; font-size: 14px; color: rgb(255 255 255 / .9); }
.promo__text b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.promo__go { position: absolute; z-index: 1; right: 20px; bottom: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .3s var(--ease-out); }
.promo:hover .promo__go { transform: translateX(3px); }

/* ---------- адаптив ---------- */
@media (max-width: 1360px) {
  .recs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash__right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__right .plan { grid-row: span 2; }
}
@media (max-width: 1024px) {
  .cab { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-104%); transition: transform .35s var(--ease-out); box-shadow: var(--shadow-md); }
  .side.is-open { transform: none; }
  .side__shade { position: fixed; inset: 0; z-index: 25; display: block; background: rgb(15 26 42 / .3); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
  .side__shade.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .top__burger { display: block; }
  .cab__main { padding: 16px 16px 32px; }
}
@media (max-width: 760px) {
  .dash__row, .dash__right, .dash__bottom { grid-template-columns: minmax(0, 1fr); }
  .dash__right .plan { grid-row: auto; }
  .dash, .dash__left, .dash__right, .dash__row, .dash__bottom { gap: 12px; }
  .dash__bottom { margin-top: 12px; }
  .top__name, .top__me .icon { display: none; }
  .top__me { padding: 3px; border-radius: 50%; }
  .top__hello p { display: none; }
  .banner__copy { max-width: none; }
  .banner__img { top: auto; bottom: 0; width: 100%; height: 160px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
  .card { padding: 18px 16px; }
  .metrics__tiles { gap: 6px; }
  .mtile { padding: 10px; }
  .mtile b { font-size: 17px; }
  .recs__grid { grid-template-columns: minmax(0, 1fr); }
  .goal__row { grid-template-columns: auto minmax(0, 1fr); }
  .goal__note { grid-column: 1 / -1; }
}
/* ---------- баннер-слайдер ---------- */
.banner { display: grid; padding: 0; min-height: 230px; touch-action: pan-y; }
.banner__slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; padding: 30px 32px 42px; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.banner__slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.banner__slide .banner__copy { transform: translateY(10px); transition: transform .8s var(--ease-out); }
.banner__slide.is-on .banner__copy { transform: none; }
.banner__slide--photo { background: #DCEBFA; }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; transform: scale(1.04); transition: transform 6s linear; }
.banner__slide--photo.is-on .banner__bg { transform: scale(1); }
.banner__slide--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(236 244 253 / .92) 0%, rgb(236 244 253 / .6) 40%, transparent 65%); }
.banner__dots { position: absolute; left: 32px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.banner__dots button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; background: none; }
.banner__dots i { width: 8px; height: 8px; border-radius: 8px; background: rgb(15 26 42 / .2); transition: width .4s var(--ease-out), background-color .3s ease; }
.banner__dots [aria-selected="true"] i { width: 22px; background: var(--blue); }

/* ---------- всплывающие окна в шапке ---------- */
.pop-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 360px; padding: 10px; border-radius: 20px; background: rgb(255 255 255 / .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px #E8EEF6, 0 24px 50px -20px rgb(16 40 90 / .35); transform-origin: top right; animation: pop-in .25s var(--ease-out); }
.pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.pop__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; }
.pop__head b { font-size: 15px; }
.pop__link { border: 0; background: none; padding: 4px 6px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--blue); }
.pop__link:hover { background: var(--blue-50); }
.notes { display: grid; gap: 2px; }
.note { position: relative; display: flex; gap: 12px; padding: 10px; border-radius: 14px; transition: background-color .2s ease; cursor: default; }
.note:hover { background: #F5F8FC; }
.note.is-new::after { content: ""; position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.note__ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--peach-100); color: var(--peach); }
.note__ico .icon { width: 18px; height: 18px; }
.note__ico--blue { background: var(--blue-100); color: var(--blue); }
.note__ico--mint { background: var(--mint-100); color: var(--mint); }
.note__ico--lav { background: var(--lav-100); color: var(--lav); }
.note p { display: grid; gap: 2px; padding-right: 14px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.note b { font-size: 13.5px; color: var(--ink); }
.note small { font-size: 11.5px; color: var(--ink-4); }
.pop__all { display: block; margin-top: 6px; padding: 10px; border-radius: 12px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--blue); }
.pop__all:hover { background: var(--blue-50); }
.pop--me { width: 260px; }
.pop__me { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid #EEF2F7; }
.pop__me p { display: grid; font-size: 12.5px; color: var(--ink-3); }
.pop__me b { font-size: 14px; color: var(--ink); }
.pop--me a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.pop--me a:hover { background: var(--blue-50); color: var(--ink); }
.pop--me a .icon { width: 18px; height: 18px; color: var(--ink-3); }
.pop__out { color: #C2321F !important; }
.pop__out .icon { color: #C2321F !important; }
.top__bell[aria-expanded="true"], .top__me[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--blue); }
.top__me .icon { transition: transform .25s var(--ease-out); }
.top__me[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* ---------- попапы ---------- */
.dlg { width: min(460px, calc(100vw - 24px)); padding: 30px 28px 26px; border: 0; border-radius: 28px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 40px 90px -30px rgb(10 30 70 / .5); }
.dlg::backdrop { background: rgb(15 26 42 / .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dlg[open] { animation: dlg-in .45s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(6px); } }
.dlg__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #F4F7FB; color: var(--ink-2); transition: transform .2s var(--ease-out); }
.dlg__close:hover { transform: rotate(90deg); }
.dlg__close .icon { width: 18px; height: 18px; }
.dlg__ava { position: relative; display: inline-block; }
.dlg__ava img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px #F1F6FD; }
.dlg__ava i { position: absolute; right: 4px; bottom: 6px; width: 16px; height: 16px; border-radius: 50%; background: #F5B400; box-shadow: 0 0 0 3px #fff; }
.dlg__title { margin-top: 16px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.dlg__text { margin: 8px auto 18px; max-width: 36ch; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.dlg__text b { color: var(--ink); font-weight: 600; }
.dlg__count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.dlg__count span { display: grid; padding: 10px 4px; border-radius: 14px; background: #F4F7FB; font-size: 11.5px; color: var(--ink-3); }
.dlg__count b { font-size: 24px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.dlg__checks { display: grid; gap: 6px; margin-bottom: 20px; text-align: left; }
.dlg__checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #EAF0F7; font-size: 14px; font-weight: 500; }
.dlg__checks em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--ink-4); }
.dlg__st { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #CBD5E3; }
.dlg__checks .is-wait .dlg__st { box-shadow: inset 0 0 0 2px #DCE7F5; border-top: 2px solid var(--blue); animation: spin .7s linear infinite; }
.dlg__checks .is-ok .dlg__st { box-shadow: none; background: #22B07D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dlg__checks .is-ok em { color: #0F7354; }
@keyframes spin { to { transform: rotate(360deg); } }
.dlg__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dlg__btns .btn { padding: 0 12px; font-size: 14.5px; }
.dlg__btns .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.dlg__slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; text-align: left; }
.slot { display: grid; gap: 2px; padding: 12px 14px; border: 0; border-radius: 14px; background: #F4F7FB; box-shadow: inset 0 0 0 1px transparent; text-align: left; transition: background-color .2s ease, box-shadow .2s ease; }
.slot:hover { background: #EEF4FB; }
.slot b { font-size: 14.5px; }
.slot span { font-size: 12.5px; color: var(--ink-3); }
.slot[aria-checked="true"] { background: #F0F6FF; box-shadow: inset 0 0 0 1.5px var(--blue); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px -16px rgb(10 30 70 / .5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-out), opacity .25s ease; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 760px) {
  .pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
  .banner__slide { padding: 22px 20px 170px; }
  .banner__slide--photo { padding-bottom: 42px; min-height: 260px; }
  .banner__slide--photo::before { background: linear-gradient(180deg, rgb(236 244 253 / .9), rgb(236 244 253 / .5) 60%, transparent); }
  .banner__dots { left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan__track i, .wave, .dlg[open], .pop { animation: none; }
  .banner__slide, .banner__bg, .banner__slide .banner__copy { transition: none; }
  .ring__fg { transition: none; }
}
