/* ==========================================================================
   Funtik SMM — концепт нового дизайна
   Палитра взята с реального сервиса (небесно-голубой, стекло, звёзды)
   ========================================================================== */

:root {
    --sky-50: #f4faff;
    --sky-100: #e7f4ff;
    --sky-200: #d2ebff;
    --sky-300: #aedcff;
    --sky-400: #7fc8ff;
    --sky-500: #3da5ff;
    --sky-600: #1d8bf2;
    --sky-700: #157be0;
    --sky-800: #0f63b8;

    --ink: #122b46;
    --ink-soft: #44618a;
    --ink-mute: #7d96b8;

    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --glass-line: rgba(146, 196, 255, 0.42);

    --grad-brand: linear-gradient(135deg, #38a7ff 0%, #7fc8ff 100%);
    --grad-deep: linear-gradient(135deg, #157be0 0%, #6ec2ff 100%);
    --grad-soft: linear-gradient(160deg, #ffffff 0%, #e8f4ff 100%);
    --grad-page: linear-gradient(180deg, #e9f5ff 0%, #f6fbff 46%, #eaf6ff 100%);

    --mint: #2fb28c;
    --gold: #ffb347;
    --coral: #ff6f7d;

    --shadow-sm: 0 8px 24px rgba(45, 110, 190, 0.10);
    --shadow-md: 0 20px 48px rgba(45, 110, 190, 0.16);
    --shadow-lg: 0 36px 90px rgba(36, 100, 180, 0.22);
    --glow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;

    --r-xs: 12px;
    --r-sm: 16px;
    --r-md: 22px;
    --r-lg: 30px;
    --r-xl: 42px;
    --r-pill: 999px;

    --wrap: 1320px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    font: 500 16px/1.6 "Manrope", system-ui, sans-serif;
    background: var(--grad-page);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; max-width: 100%; }

/* предотвращаем переполнение длинными словами/ссылками */
h1, h2, h3, h4, p, span, b, strong, small, li, button, a { overflow-wrap: break-word; }

h1, h2, h3, h4 {
    font-family: "Unbounded", "Manrope", sans-serif;
    margin: 0; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}
p { margin: 0; }
::selection { background: rgba(61, 165, 255, 0.28); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.hidden, [hidden] { display: none !important; }

/* ---- декоративный фон ---- */
.bg-deco { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; animation: drift 18s var(--ease) infinite; }
.blob--1 { top: -120px; left: -80px; width: 420px; height: 420px; background: radial-gradient(circle, #7fc8ff, transparent 70%); }
.blob--2 { top: 30%; right: -140px; width: 480px; height: 480px; background: radial-gradient(circle, #aedcff, transparent 70%); animation-delay: -6s; }
.blob--3 { bottom: -160px; left: 25%; width: 520px; height: 520px; background: radial-gradient(circle, #d2ebff, transparent 70%); animation-delay: -11s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1);} 33% { transform: translate(40px,-30px) scale(1.08);} 66% { transform: translate(-30px,25px) scale(.95);} }

.bg-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(120,180,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,180,255,.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

.spark { position: absolute; color: rgba(255,255,255,.9); filter: drop-shadow(0 4px 10px rgba(80,160,255,.35)); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity:.85;} 50% { transform: scale(1.25) rotate(15deg); opacity:1;} }

/* ==========================================================================
   Анимации появления при скролле (пошагово)
   Блоки скрываются ТОЛЬКО при работающем JS (класс .js на <html>).
   Без JS / при сбое — контент всегда виден.
   ========================================================================== */
.js .anim {
    opacity: 0;
    transform: translateY(34px) scale(.97);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.js .anim--left { transform: translateX(-46px); }
.js .anim--right { transform: translateX(46px); }
.js .anim--zoom { transform: scale(.86); }
.anim.in { opacity: 1 !important; transform: none !important; }

/* мягкое появление всей страницы при смене раздела */
.view-enter { animation: viewEnter .55s var(--ease); }
@keyframes viewEnter { from { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Кнопки и чипы
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 26px; border-radius: var(--r-pill);
    font-weight: 700; letter-spacing: .01em; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease), background .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { color: #fff; background: var(--grad-brand); box-shadow: 0 14px 30px rgba(56,167,255,.34); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(56,167,255,.42); filter: saturate(1.08); }
.btn--ghost { color: var(--sky-700); background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--sky-400); color: var(--sky-800); }
.btn--danger { color: #fff; background: linear-gradient(135deg,#ff7b7b,#ff9e9e); box-shadow: 0 14px 30px rgba(255,123,123,.3); }
.btn--lg { height: 58px; padding: 0 34px; font-size: 17px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
    background: var(--glass-strong); border: 1px solid var(--glass-line);
    color: var(--sky-700); backdrop-filter: blur(10px);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(47,178,140,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: .35;} }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-600); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.nav {
    position: sticky; top: 16px; z-index: 50;
    margin: 16px auto 0; max-width: var(--wrap); width: calc(100% - 32px);
    display: flex; align-items: center; gap: 18px;
    padding: 11px 12px 11px 18px; border-radius: var(--r-pill);
    background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.7);
    box-shadow: var(--shadow-md); backdrop-filter: blur(18px) saturate(1.4);
    transition: box-shadow .3s var(--ease);
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 22px rgba(56,167,255,.4); }
.nav__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav__logo svg { width: 23px; height: 23px; }
.nav__name { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav__name b { color: var(--sky-600); }

.nav__links { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: 14px; }
.nav__link { padding: 9px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .2s var(--ease), background .2s var(--ease); }
.nav__link:hover { color: var(--sky-700); background: rgba(125,195,255,.14); }
.nav__link.is-active { color: var(--sky-700); background: rgba(125,195,255,.2); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* кошелёк в шапке */
.wallet-chip {
    display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
    padding: 8px 16px; border-radius: var(--r-pill);
    background: var(--grad-deep); color: #fff; box-shadow: 0 12px 26px rgba(21,123,224,.3);
    transition: transform .2s var(--ease);
}
.wallet-chip:hover { transform: translateY(-2px); }
.wallet-chip small { font-size: 11px; opacity: .85; font-weight: 600; }
.wallet-chip strong { font-size: 15px; font-family: "Unbounded", sans-serif; }
.gift-chip { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(125,195,255,.2); color: var(--sky-700); }
.gift-chip svg { width: 22px; height: 22px; }

/* меню профиля */
.profile-menu { position: relative; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 14px; border-radius: var(--r-pill); background: var(--glass-strong); border: 1px solid var(--glass-line); font-weight: 700; color: var(--ink); }
.profile-chip__ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; background: var(--grad-brand); }
.profile-menu__panel {
    position: absolute; top: calc(100% + 10px); right: 0; width: 240px;
    background: rgba(255,255,255,.96); border: 1px solid var(--glass-line);
    border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 10px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .22s var(--ease);
}
.profile-menu.open .profile-menu__panel { opacity: 1; transform: none; pointer-events: auto; }
.profile-menu__head { padding: 12px 12px 14px; border-bottom: 1px solid var(--glass-line); margin-bottom: 8px; }
.profile-menu__head small { color: var(--ink-mute); font-size: 12px; }
.profile-menu__head strong { display: block; font-size: 15px; }
.profile-menu__item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-xs); font-weight: 600; font-size: 14px; color: var(--ink-soft); text-align: left; transition: background .18s var(--ease), color .18s var(--ease); }
.profile-menu__item:hover { background: rgba(125,195,255,.14); color: var(--sky-700); }
.profile-menu__item--danger:hover { background: rgba(255,123,123,.14); color: var(--coral); }
.profile-menu__item svg { width: 18px; height: 18px; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 13px; background: var(--glass-strong); border: 1px solid var(--glass-line); place-items: center; }
.nav__burger svg { width: 22px; height: 22px; }

/* нижняя навигация (моб.) */
.mobile-nav { display: none; }

/* ==========================================================================
   Каркас страниц
   ========================================================================== */
.page { padding: 40px 0 90px; }
.section { padding: 72px 0; position: relative; }
.section__head { max-width: 660px; margin: 0 0 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .pill { margin-bottom: 16px; }
.section__head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
.section__head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; }
.section__head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

.card {
    position: relative; border-radius: var(--r-md);
    background: var(--glass); border: 1px solid rgba(255,255,255,.7);
    box-shadow: var(--shadow-sm); backdrop-filter: blur(14px);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(127,200,255,.7); }
.panel { padding: 28px; }

.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.input, .select, .textarea {
    width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-sm);
    background: rgba(255,255,255,.85); border: 1px solid var(--glass-line);
    color: var(--ink); font-weight: 600; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(61,165,255,.16); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ==========================================================================
   Hero (главная)
   ========================================================================== */
.hero { padding: 70px 0 30px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 700; }
.hero h1 .hl { background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .badge-word { display: inline-block; padding: 2px 16px; border-radius: var(--r-pill); background: rgba(125,195,255,.28); color: var(--sky-700); box-shadow: var(--glow); }
.hero__lead { margin: 24px 0 32px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-family: "Unbounded", sans-serif; font-size: 28px; color: var(--sky-700); line-height: 1; }
.hero__stat span { font-size: 14px; color: var(--ink-mute); font-weight: 600; }

.hero__visual { position: relative; }
.hero__card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--grad-soft); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-lg); animation: floatCard 6s ease-in-out infinite; }
@keyframes floatCard { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-.4deg); } }
.hero__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 80% 0%, rgba(127,200,255,.35), transparent 55%); pointer-events: none; }
.hero__card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero__card-head h3 { font-size: 18px; }

.mini-balance { position: relative; padding: 20px 22px; border-radius: var(--r-md); color: #fff; background: var(--grad-deep); box-shadow: 0 18px 38px rgba(21,123,224,.34); overflow: hidden; }
.mini-balance::after { content: ""; position: absolute; top: -40%; right: -10%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,.4), transparent 70%); }
.mini-balance span { font-size: 13px; opacity: .85; font-weight: 600; }
.mini-balance strong { display: block; font-family: "Unbounded", sans-serif; font-size: 32px; margin-top: 6px; }

.order-row { display: flex; align-items: center; gap: 14px; padding: 13px 15px; margin-top: 13px; border-radius: var(--r-sm); background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); }
.order-row__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; }
.order-row__main { flex: 1; min-width: 0; }
.order-row__main b { display: block; font-size: 14px; }
.order-row__bar { height: 6px; border-radius: 99px; background: rgba(125,195,255,.25); margin-top: 8px; overflow: hidden; }
.order-row__bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); width: 0; transition: width 1.1s var(--ease); }
.order-row__pct { font-weight: 800; font-size: 13px; color: var(--sky-700); }

/* модалка ручного пополнения (реквизиты + копирование + шаги) */
.manual-refill { display: flex; flex-direction: column; gap: 16px; }
.manual-refill__amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); color: #fff; background: var(--grad-deep); box-shadow: 0 14px 30px rgba(21,123,224,.3); }
.manual-refill__amount span { font-size: 13px; font-weight: 600; opacity: .9; }
.manual-refill__amount strong { font-family: "Unbounded", sans-serif; font-size: 26px; }
.manual-refill__req { padding: 16px 18px; border-radius: var(--r-md); background: rgba(125,195,255,.1); border: 1px solid var(--glass-line); }
.manual-refill__req-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.manual-refill__req-head .i { width: 18px; height: 18px; color: var(--sky-600); flex: none; }
.manual-refill__copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--glass-line); cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.manual-refill__copy:hover { border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(61,165,255,.14); }
.manual-refill__card { font-family: "Unbounded", sans-serif; font-size: 17px; letter-spacing: .03em; color: var(--ink); word-break: break-all; text-align: left; }
.manual-refill__copy .i { width: 20px; height: 20px; color: var(--sky-600); flex: none; }
.manual-refill__hint { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.manual-refill__steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.manual-refill__steps li { line-height: 1.45; }
.manual-refill .modal__actions { display: flex; gap: 10px; }
.manual-refill .modal__actions .btn { flex: 1; height: 48px; }
@media (max-width: 600px) {
    .manual-refill__amount strong { font-size: 22px; }
    .manual-refill__card { font-size: 15px; }
    .manual-refill .modal__actions .btn { height: 44px; }
}

/* персональная карточка кабинета в hero (для авторизованных) */
.cab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.cab-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--r-sm); background: rgba(125,195,255,.12); border: 1px solid var(--glass-line); transition: background .2s var(--ease), transform .2s var(--ease); }
.cab-stat:hover { background: rgba(125,195,255,.2); transform: translateY(-2px); }
.cab-stat b { font-family: "Unbounded", sans-serif; font-size: 18px; color: var(--sky-700); line-height: 1; }
.cab-stat span { font-size: 11px; color: var(--ink-mute); font-weight: 600; }
.cab-last { margin-top: 14px; }
.cab-last__label { display: block; font-size: 12px; color: var(--ink-mute); font-weight: 700; margin-bottom: 4px; }
.cab-last .order-row { margin-top: 0; }
.cab-empty { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(125,195,255,.1); border: 1px dashed var(--sky-300); font-size: 13px; color: var(--ink-soft); }
.cab-actions { display: flex; gap: 8px; margin-top: 16px; }
.cab-actions .btn { flex: 1; height: 44px; padding: 0 12px; }

/* преимущества (бенто) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature--wide { grid-column: span 2; }
.feature--tall { grid-row: span 2; }
.feature__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: 0 12px 26px rgba(56,167,255,.36); }
.feature__ic svg { width: 27px; height: 27px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.feature__big { font-family: "Unbounded", sans-serif; font-size: clamp(36px,5vw,56px); background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.feature--accent { color: #fff; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.28), transparent 50%), var(--grad-deep); border-color: transparent; }
.feature--accent h3 { color: #fff; }
.feature--accent .feature__big { -webkit-text-fill-color: #fff; color: #fff; }
.feature--accent p { color: rgba(255,255,255,.85); }
.feature--accent .feature__ic { background: rgba(255,255,255,.18); box-shadow: none; }

/* лента площадок */
.platforms { overflow: hidden; }
.marquee { display: flex; gap: 16px; width: max-content; animation: scroll-x 30s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.plat-pill { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: var(--r-pill); background: var(--glass-strong); border: 1px solid var(--glass-line); font-weight: 700; white-space: nowrap; backdrop-filter: blur(10px); }
.plat-pill__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 28px 24px; }
.step__num { font-family: "Unbounded", sans-serif; font-size: 15px; font-weight: 700; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--sky-700); background: rgba(125,195,255,.18); margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ==========================================================================
   Каталог
   ========================================================================== */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.catalog__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.catalog__search { position: relative; }
.catalog__search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-mute); }
.catalog__search .input { padding-left: 46px; }

.filter-block { padding: 18px; }
.filter-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 12px; font-family: "Manrope"; }
.plat-tile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: var(--r-sm); text-align: left; transition: background .2s var(--ease); margin-bottom: 4px; }
.plat-tile:hover { background: rgba(125,195,255,.12); }
.plat-tile.is-active { background: rgba(125,195,255,.2); }
.plat-tile__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.plat-tile__body { flex: 1; min-width: 0; }
.plat-tile__body strong { display: block; font-size: 14px; }
.plat-tile__body small { color: var(--ink-mute); font-size: 12px; }

.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); font-size: 13px; font-weight: 700; color: var(--ink-soft); transition: .2s var(--ease); }
.type-chip:hover { border-color: var(--sky-400); color: var(--sky-700); }
.type-chip.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }

.catalog__main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.catalog__count { font-weight: 700; color: var(--ink-soft); }
.catalog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.guest-note { display: flex; gap: 14px; align-items: center; padding: 16px 20px; margin-bottom: 18px; border-radius: var(--r-md); background: rgba(125,195,255,.12); border: 1px dashed var(--sky-300); }
.guest-note svg { width: 26px; height: 26px; color: var(--sky-600); flex: none; }
.guest-note strong { display: block; font-size: 15px; }
.guest-note span { font-size: 14px; color: var(--ink-soft); }

/* карточка услуги */
.service { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.service__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.service__plat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(125,195,255,.16); font-size: 13px; font-weight: 700; color: var(--sky-700); }
.service__plat .plat-pill__dot { width: 22px; height: 22px; font-size: 11px; }
.badge { padding: 5px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; }
.badge--type { background: rgba(125,195,255,.14); color: var(--sky-700); }
.badge--discount { background: rgba(47,178,140,.14); color: var(--mint); }
.badge--fast { background: rgba(47,178,140,.14); color: var(--mint); }
.badge--medium { background: rgba(255,179,71,.18); color: #d98a1f; }
.badge--slow { background: rgba(255,111,125,.16); color: var(--coral); }
.badge--health-warning { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,179,71,.18); color: #d98a1f; }
.badge--health-critical { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,111,125,.16); color: var(--coral); }
.badge--health-warning .i, .badge--health-critical .i { width: 13px; height: 13px; }
.service-health-banner { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; line-height: 1.4; }
.service-health-banner .i { width: 18px; height: 18px; flex: none; }
.service-health-banner--warning { background: rgba(255,179,71,.18); color: #d98a1f; }
.service-health-banner--critical { background: rgba(255,111,125,.16); color: var(--coral); }
.service__title { font-size: 17px; line-height: 1.3; }
.service__desc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.service__desc li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.service__desc li::before { content: "—"; color: var(--sky-500); font-weight: 800; }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service__tag { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.service__specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.55); border: 1px solid var(--glass-line); }
.service__spec { text-align: center; }
.service__spec small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: 3px; }
.service__spec strong { font-size: 14px; }
.service__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price-pill { display: flex; flex-direction: column; }
.price-pill strong { font-family: "Unbounded", sans-serif; font-size: 20px; color: var(--sky-700); }
.price-pill span { font-size: 12px; color: var(--ink-mute); }

/* ==========================================================================
   Метрики / дашборд
   ========================================================================== */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric { padding: 22px; }
.metric__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--sky-700); background: rgba(125,195,255,.18); margin-bottom: 14px; }
.metric__ic svg { width: 22px; height: 22px; }
.metric__val { font-family: "Unbounded", sans-serif; font-size: 28px; line-height: 1; }
.metric__label { font-weight: 700; font-size: 14px; margin-top: 6px; }
.metric__note { color: var(--ink-mute); font-size: 13px; margin-top: 4px; }
.metric--accent { color: #fff; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 50%), var(--grad-deep); border-color: transparent; }
.metric--accent .metric__ic { background: rgba(255,255,255,.18); color: #fff; }
.metric--accent .metric__note { color: rgba(255,255,255,.82); }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--glass-line); }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--ink-mute); font-size: 14px; }
.info-row strong { font-size: 14px; }

.quick-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.quick-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.6); border: 1px solid var(--glass-line); text-align: left; transition: .25s var(--ease); }
.quick-tile:hover { transform: translateY(-4px); border-color: var(--sky-300); box-shadow: var(--shadow-sm); }
.quick-tile__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); }
.quick-tile__ic svg { width: 20px; height: 20px; }
.quick-tile strong { font-size: 14px; }
.quick-tile span { font-size: 12px; color: var(--ink-mute); }

/* прогресс уровня */
.level-bar { height: 10px; border-radius: 99px; background: rgba(125,195,255,.22); overflow: hidden; margin: 12px 0 8px; }
.level-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); width: 0; transition: width 1.2s var(--ease); }

/* иконки преимуществ — лёгкое покачивание при наведении на карточку */
.feature:hover .feature__ic, .metric--accent:hover .metric__ic { animation: iconPop .5s var(--ease); }
@keyframes iconPop { 0%,100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-5px) rotate(-6deg); } 70% { transform: translateY(-2px) rotate(4deg); } }

/* пульс кнопок-акцентов */
.gift-chip:hover { animation: wiggle .5s var(--ease); }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

/* ==========================================================================
   Доп. живые эффекты
   ========================================================================== */
/* блик, пробегающий по основным кнопкам */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
}
.btn--primary:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { from { left: -120%; } to { left: 140%; } }

/* карточки услуг/метрик чуть приподнимаются при наведении */
.service, .metric, .review, .step, .quick-tile { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.service:hover, .review:hover, .step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.metric:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* анимированное появление чисел-счётчиков (лёгкий «прыжок») */
.metric__val, .hero__stat strong { display: inline-block; }
.metric.in .metric__val { animation: countPop .6s var(--ease); }
@keyframes countPop { 0% { transform: scale(.8); opacity: .4; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

/* плавающие звёзды героя — разная амплитуда */
.hero__visual .spark:nth-of-type(1) { animation: twinkle 4s ease-in-out infinite, floatY 7s ease-in-out infinite; }
.hero__visual .spark:nth-of-type(2) { animation: twinkle 4s ease-in-out infinite -2s, floatY 9s ease-in-out infinite -1s; }
@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* подсветка активного пункта мобильной навигации */
.mobile-nav__item.is-active svg { animation: iconPop .5s var(--ease); }

/* лёгкое всплытие логотипа в шапке */
.nav__logo { transition: transform .3s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.06); }

/* ==========================================================================
   Списки заказов / операций
   ========================================================================== */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.toolbar .input, .toolbar .select { height: 48px; }
.toolbar__field { flex: 1; min-width: 180px; }

.list { display: flex; flex-direction: column; gap: 12px; }
.list-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.list-card__ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex: none; background: var(--grad-brand); }
.list-card__main { flex: 1; min-width: 0; }
.list-card__main b { display: block; font-size: 15px; }
.list-card__meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-mute); font-size: 13px; margin-top: 3px; }
.list-card__bar { height: 6px; border-radius: 99px; background: rgba(125,195,255,.22); margin-top: 10px; overflow: hidden; max-width: 280px; }
.list-card__bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); width: 0; transition: width 1s var(--ease); }
.list-card__right { text-align: right; }
.list-card__amount { font-family: "Unbounded", sans-serif; font-size: 17px; }
.amount-plus { color: var(--mint); }
.amount-minus { color: var(--ink); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; }
.tag--pending { background: rgba(255,179,71,.16); color: #d98a1f; }
.tag--progress { background: rgba(61,165,255,.16); color: var(--sky-700); }
.tag--completed { background: rgba(47,178,140,.16); color: var(--mint); }
.tag--partial { background: rgba(255,179,71,.16); color: #d98a1f; }
.tag--canceled { background: rgba(255,111,125,.16); color: var(--coral); }

.empty { text-align: center; padding: 50px 20px; color: var(--ink-mute); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--sky-300); }
.empty strong { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; font-family: "Unbounded"; }

/* ==========================================================================
   Оплата
   ========================================================================== */
.pay-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.pay-method { position: relative; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method__box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.65); border: 2px solid var(--glass-line); transition: .2s var(--ease); }
.pay-method:hover .pay-method__box { border-color: var(--sky-300); }
.pay-method input:checked + .pay-method__box { border-color: var(--sky-500); background: rgba(125,195,255,.12); box-shadow: 0 0 0 4px rgba(61,165,255,.12); }
.pay-method__logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.pay-method__name { font-size: 14px; font-weight: 700; }
.pay-method__hint { font-size: 12px; color: var(--ink-mute); }

.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-preset { padding: 8px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); font-weight: 700; font-size: 14px; transition: .2s var(--ease); }
.amount-preset:hover { border-color: var(--sky-400); color: var(--sky-700); transform: translateY(-2px); }

.bonus-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); background: rgba(47,178,140,.12); color: var(--mint); font-weight: 700; font-size: 14px; margin-bottom: 18px; }

/* ==========================================================================
   Рефералы
   ========================================================================== */
.ref-link { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.7); border: 1px dashed var(--sky-300); font-weight: 700; color: var(--sky-700); word-break: break-all; }
.leader { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--glass-line); }
.leader:last-child { border-bottom: 0; }
.leader__rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(125,195,255,.18); color: var(--sky-700); flex: none; }
.leader__name { flex: 1; font-weight: 700; font-size: 14px; }

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.review { padding: 24px; }
.review__stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.review__user { display: flex; align-items: center; gap: 12px; }
.review__ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--grad-brand); }
.review__user b { display: block; font-size: 14px; }
.review__user small { color: var(--ink-mute); font-size: 13px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq__item { padding: 4px 24px; cursor: pointer; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 16px; }
.faq__q .i { width: 22px; height: 22px; flex: none; color: var(--sky-600); transition: transform .3s var(--ease); }
.faq__a { max-height: 0; overflow: hidden; color: var(--ink-soft); font-size: 15px; line-height: 1.6; transition: max-height .4s var(--ease), padding .4s var(--ease); }
.faq__item.open .faq__a { max-height: 240px; padding-bottom: 20px; }
.faq__item.open .faq__q .i { transform: rotate(45deg); }

/* баннер подтверждения email */
.email-banner { max-width: var(--wrap); margin: 16px auto 0; width: calc(100% - 32px); display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-md); background: rgba(255,179,71,.14); border: 1px solid rgba(255,179,71,.4); }
.email-banner svg { width: 26px; height: 26px; color: #d98a1f; flex: none; }
.email-banner strong { display: block; font-size: 15px; }
.email-banner span { font-size: 13px; color: var(--ink-soft); }
.email-banner .btn { margin-left: auto; }

/* CTA */
.cta-band { position: relative; padding: 60px 50px; border-radius: var(--r-xl); color: #fff; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.25), transparent 45%), var(--grad-deep); box-shadow: var(--shadow-lg); overflow: hidden; text-align: center; }
.cta-band h2 { font-size: clamp(26px,4vw,42px); color: #fff; }
.cta-band p { margin: 16px auto 28px; max-width: 520px; color: rgba(255,255,255,.9); font-size: 17px; }
.cta-band .btn--primary { background: #fff; color: var(--sky-700); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.cta-band .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }

/* ==========================================================================
   Модальное окно
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(18,43,70,.4); backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 30px; border-radius: var(--r-lg); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(125,195,255,.14); color: var(--ink-soft); }
.modal__close:hover { background: rgba(255,111,125,.16); color: var(--coral); }
.modal__close svg { width: 20px; height: 20px; }
.modal h2 { font-size: 24px; margin-bottom: 8px; }
.modal__sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }

.modal__total { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--r-sm); background: rgba(125,195,255,.12); margin-top: 4px; }
.modal__total span { font-weight: 700; color: var(--ink-soft); }
.modal__total strong { font-family: "Unbounded", sans-serif; font-size: 24px; color: var(--sky-700); }

/* вкладки авторизации */
.auth-tabs { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: rgba(125,195,255,.14); margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 11px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; color: var(--ink-soft); transition: .2s var(--ease); }
.auth-tab.is-active { background: #fff; color: var(--sky-700); box-shadow: var(--shadow-sm); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-mute); font-size: 13px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--glass-line); }
.tg-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border-radius: var(--r-sm); background: #2aabee; color: #fff; font-weight: 700; box-shadow: 0 12px 26px rgba(42,171,238,.3); transition: transform .2s var(--ease); }
.tg-btn:hover { transform: translateY(-2px); }
.tg-btn svg { width: 22px; height: 22px; }

/* ==========================================================================
   Тосты
   ========================================================================== */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-sm); background: rgba(255,255,255,.97); box-shadow: var(--shadow-md); border: 1px solid var(--glass-line); font-weight: 600; font-size: 14px; animation: toast-in .3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } }
.toast__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.toast--success .toast__ic { background: var(--mint); }
.toast--info .toast__ic { background: var(--sky-500); }
.toast--error .toast__ic { background: var(--coral); }
.toast__ic svg { width: 18px; height: 18px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { margin-top: 40px; padding: 50px 0 36px; }
.footer__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand p { color: var(--ink-soft); margin-top: 14px; max-width: 320px; font-size: 14px; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer__badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.footer__col h4 { font-family: "Manrope"; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 14px; }
.footer__col button, .footer__col a { display: block; padding: 6px 0; color: var(--ink-soft); font-weight: 600; font-size: 14px; text-align: left; transition: color .2s var(--ease); }
.footer__col button:hover, .footer__col a:hover { color: var(--sky-700); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--glass-line); color: var(--ink-mute); font-size: 14px; }
.footer__pays { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__pay { height: 34px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.8); border: 1px solid var(--glass-line); font-size: 12px; font-weight: 700; color: var(--ink-soft); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1024px) {
    .catalog { grid-template-columns: 1fr; }
    .catalog__aside { position: static; }
    .catalog__grid { grid-template-columns: repeat(2, 1fr); }
    .metrics { grid-template-columns: repeat(2,1fr); }
    .two-col { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
    .nav__links { display: none; }
    .nav__burger { display: grid; }
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .bento { grid-template-columns: repeat(2,1fr); }
    .feature--wide, .feature--tall { grid-column: auto; grid-row: auto; }
    .steps { grid-template-columns: repeat(2,1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .catalog__grid { grid-template-columns: 1fr; }
    .pay-grid { grid-template-columns: 1fr; }
    .quick-tiles { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .cta-band { padding: 40px 24px; }
}

/* мобильное выпадающее меню */
.nav__links.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(255,255,255,.97); padding: 12px; border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); gap: 4px; margin: 0;
}
.nav__links.mobile-open .nav__link { width: 100%; }

/* ==========================================================================
   Система иконок на CSS-mask (реальный SVG-набор из assets/icons)
   .i наследует color текущего элемента — красится как текст.
   Размер задаётся font-size/width родителя через переменные.
   ========================================================================== */
.i {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    background-color: currentColor;
    -webkit-mask: var(--i) no-repeat center / contain;
    mask: var(--i) no-repeat center / contain;
    vertical-align: -0.15em;
}
/* размерные классы, заменяющие прежние svg-правила */
.btn .i { width: 20px; height: 20px; }
.btn--lg .i { width: 22px; height: 22px; }
.btn--sm .i { width: 17px; height: 17px; }
.nav__logo .i { width: 23px; height: 23px; color: #fff; }
.gift-chip .i { width: 22px; height: 22px; }
.profile-menu__item .i { width: 18px; height: 18px; }

/* Монохромные иконки-маски внутри иконных обёрток (рендерятся renderUiIcon/
   renderProfileGlyph как .i, цвет берётся из currentColor — раньше были <img>
   с белой обводкой и не отображались на светлом фоне). */
.title-with-icon { display: inline-flex; align-items: center; gap: 10px; }
.title-with-icon__icon { flex: none; color: var(--sky-600); }
.title-with-icon__icon .i { width: 22px; height: 22px; }
.title-with-icon__icon--sm .i { width: 18px; height: 18px; }
.ui-icon .i { width: 20px; height: 20px; }
.service-order-modal__metric-icon .i,
.order-details__metric-icon .i { width: 22px; height: 22px; color: var(--sky-600); }
.service-order-modal__guest-icon .i { width: 28px; height: 28px; color: var(--sky-600); }
.order-details__id-icon .i,
.order-details__tiny-icon .i { width: 18px; height: 18px; color: var(--sky-600); }
.feed-item__icon .i { width: 22px; height: 22px; color: var(--sky-600); }
.dashboard-profile__icon .i { width: 20px; height: 20px; color: var(--sky-600); }
.dashboard-profile__chip-icon .i { width: 16px; height: 16px; color: var(--sky-600); }
.empty-card__title .i { width: 20px; height: 20px; }
.nav__burger .i { width: 22px; height: 22px; }
.feature__ic .i { width: 27px; height: 27px; }
.metric__ic .i { width: 22px; height: 22px; }
.quick-tile__ic .i { width: 20px; height: 20px; }
.catalog__search .i { width: 20px; height: 20px; }
.guest-note .i { width: 26px; height: 26px; }
.modal__close .i { width: 20px; height: 20px; }
.toast__ic .i { width: 18px; height: 18px; }
.tg-btn .i { width: 22px; height: 22px; }
.mobile-nav__item .i { width: 22px; height: 22px; }
.eyebrow .i, .pill .i { width: 15px; height: 15px; }
.list-card__ic .i, .order-row__ic .i { width: 20px; height: 20px; }
.faq__q .i { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Бейдж соцсети с реальным логотипом (квадрат со скруглением + img)
   Заменяет цветные глифы во всех списках/каталоге/заказах.
   ========================================================================== */
.soc-badge {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--glass-strong);
    border: 1px solid var(--glass-line);
    overflow: hidden;
}
.soc-badge img {
    width: 64%;
    height: 64%;
    object-fit: contain;
}
/* плитки/иконки-обёртки переводим в нейтральный фон (логотип цветной сам) */
.plat-tile__icon--logo,
.order-row__ic--logo,
.list-card__ic--logo { background: transparent !important; padding: 0; overflow: hidden; }
.plat-pill__dot--logo { background: #fff !important; overflow: hidden; }
.plat-pill__dot--logo img { width: 70%; height: 70%; object-fit: contain; }
.service__plat .plat-pill__dot--logo { background: #fff !important; }

/* Фолбэк-бейдж площадки без логотипа: монограмма на фирменном фоне
   (раньше была белой на светлом фоне и не отображалась). */
.platform-logo--fallback { background: var(--grad-brand); color: #fff; }
/* Иконка-маска внутри бейджа площадки (например, «Все площадки»):
   видимый фирменный цвет вместо унаследованного белого. */
.soc-badge .i { width: 60%; height: 60%; color: var(--sky-600); }

/* платёжный логотип-картинка */
.pay-method__logo--img { background: #fff !important; overflow: hidden; padding: 6px; }
.pay-method__logo--img img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   Доступность: prefers-reduced-motion
   Глушим только тяжёлые БЕСКОНЕЧНЫЕ фоновые эффекты (фон, звёзды, лента),
   но появление контента и интерактивные анимации оставляем — иначе сайт
   выглядит «неживым». Контент при этом всегда виден (без скрытия).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .blob, .spark { animation: none !important; }
}

/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — комплексная переработка
   Принципы:
   1. Никакого горизонтального скролла (всё в границах вьюпорта).
   2. Нижняя панель жёстко закреплена (fixed) и не перекрывает контент.
   3. Тач-таргеты ≥ 44px, тексты не вылезают, длинные строки переносятся.
   4. Безопасные зоны iOS учтены.
   ========================================================================== */

/* --- нижняя навигация: жёстко закреплена внизу, всегда видна --- */
.mobile-nav {
    display: none;
    position: fixed;
    left: 10px; right: 10px;
    bottom: 10px;
    z-index: 70;
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
    padding: 7px 6px;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.94);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px) saturate(1.3);
}
.mobile-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; flex: 1 1 0; min-width: 0; padding: 7px 4px;
    border-radius: var(--r-sm); color: var(--ink-mute);
    font-size: 11px; font-weight: 700; line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__item span:not(.i) {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-nav__item.is-active { color: var(--sky-700); background: rgba(125,195,255,.16); }
.mobile-nav__item.is-active .i { animation: iconPop .5s var(--ease); }

@media (min-width: 881px) {
    .mobile-nav { display: none !important; }
}

@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 880px) {
        .mobile-nav { bottom: calc(8px + env(safe-area-inset-bottom)); }
    }
}

/* ==========================================================================
   Планшет / большой телефон (≤ 880px)
   ========================================================================== */
@media (max-width: 880px) {
    /* резерв под фиксированную нижнюю панель, чтобы контент не прятался */
    body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

    /* нижнюю панель показываем */
    .mobile-nav { display: flex; }

    /* шапка: компактнее, аккуратные отступы, не переполняется */
    .nav { top: 10px; width: calc(100% - 20px); padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
    .nav__brand { min-width: 0; flex: 0 1 auto; }
    .nav__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav__links { display: none; }
    .nav__burger { display: grid; flex: none; }
    .nav__actions { gap: 8px; margin-left: auto; flex: 0 0 auto; }
    .nav__actions .btn { white-space: nowrap; }
    /* у авторизованного: кошелёк компактный, в профиль-чипе только аватар */
    .wallet-chip { padding: 7px 11px; }
    .wallet-chip strong { font-size: 14px; }
    .gift-chip { width: 40px; height: 40px; }
    .profile-chip { padding: 6px; }
    .profile-chip > span:not(.profile-chip__ava) { display: none; }

    .section { padding: 44px 0; }
    .page { padding: 26px 0 30px; }
    .section__head { margin-bottom: 26px; }

    /* облегчаем тяжёлый фон на телефонах */
    .blob { filter: blur(42px); opacity: 0.4; }
    .blob--3 { display: none; }
    .bg-grid { background-size: 44px 44px; }

    /* сетки */
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .bento { grid-template-columns: repeat(2,1fr); }
    .feature--wide, .feature--tall { grid-column: auto; grid-row: auto; }
    .steps { grid-template-columns: repeat(2,1fr); }
    .metrics { grid-template-columns: repeat(2,1fr); }
    .two-col { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: repeat(2,1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* каталог: фильтры сверху, сетка 2 колонки */
    .catalog { grid-template-columns: 1fr; }
    .catalog__aside { position: static; }
    .catalog__grid { grid-template-columns: repeat(2,1fr); }
}

/* ==========================================================================
   ГОСТЕВАЯ шапка на узких: убираем «Войти», оставляем только «Регистрация»
   (две кнопки + бренд не помещаются → раньше был горизонтальный скролл)
   ========================================================================== */
@media (max-width: 560px) {
    body.is-guest .nav__actions [data-tab="login"] { display: none; }
}

/* ==========================================================================
   Телефон (≤ 600px) — основная мобильная раскладка
   ========================================================================== */
@media (max-width: 600px) {
    .wrap, .footer__inner { padding-inline: 16px; }

    /* всё в одну колонку */
    .catalog__grid,
    .metrics,
    .pay-grid,
    .quick-tiles,
    .reviews-grid,
    .bento,
    .steps,
    .footer__grid { grid-template-columns: 1fr; }

    /* hero */
    .hero { padding: 30px 0 12px; }
    .hero h1 { font-size: clamp(26px, 7.5vw, 38px); }
    .hero__lead { font-size: 15px; margin: 16px 0 22px; }
    .hero__cta { gap: 10px; }
    .hero__cta .btn { width: 100%; }
    .hero__card { padding: 18px; }
    .hero__stats { gap: 14px 22px; margin-top: 24px; }
    .hero__stat strong { font-size: 22px; }

    /* заголовки секций — влево, без переполнения */
    .section { padding: 40px 0; }
    .section__head h1 { font-size: clamp(24px, 7vw, 32px); }
    .section__head h2 { font-size: clamp(22px, 6vw, 28px); }
    .section__head p { font-size: 15px; }
    .section__head--center { text-align: left; margin-inline: 0; }

    /* кнопки */
    .btn--lg { height: 50px; font-size: 15px; padding: 0 20px; }

    /* карточки/панели — меньше отступов */
    .panel { padding: 18px; }
    .card, .feature { }
    .feature { padding: 22px; }
    .service { padding: 18px; }
    .step { padding: 22px 18px; }
    .review { padding: 20px; }
    .cta-band { padding: 36px 20px; }

    /* списки заказов/операций — вертикальная раскладка, ничего не вылезает */
    .list-card { flex-wrap: wrap; padding: 14px; gap: 12px; }
    .list-card__ic { width: 42px; height: 42px; }
    .list-card__main { flex: 1 1 140px; min-width: 0; }
    .list-card__main b { white-space: normal; overflow-wrap: anywhere; }
    .list-card__bar { max-width: none; }
    .list-card__right { text-align: right; margin-left: auto; }

    /* тулбар фильтров — в столбик */
    .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .toolbar__field { min-width: 0; width: 100%; }

    /* специф. услуг — 2 колонки даже на телефоне (компактно) */
    .service__specs { grid-template-columns: repeat(2,1fr); }

    /* спецзаголовок каталога — перенос */
    .catalog__main-head { flex-direction: column; align-items: flex-start; }

    /* тач-таргеты */
    .type-chip, .amount-preset { min-height: 42px; display: inline-flex; align-items: center; }
    .nav__link { padding: 12px 14px; }
    .profile-menu__item { padding: 13px 12px; }

    /* тосты — над нижней панелью, на всю ширину */
    .toasts { left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
    .toast { width: 100%; }

    /* модалка как нижний лист, прокрутка внутри */
    .modal { padding: 0; align-items: flex-end; }
    .modal__box { max-width: 100%; max-height: 90vh; padding: 24px 18px; border-radius: var(--r-lg) var(--r-lg) 0 0; }

    /* реф. ссылка и её кнопки — на всю ширину, перенос */
    .ref-link { font-size: 13px; }
    .ref-link + .hero__cta .btn { width: 100%; }

    /* email-баннер компактнее */
    .email-banner { flex-wrap: wrap; }
    .email-banner .btn { margin-left: 0; width: 100%; }

    /* футер — бренд и колонки в столбик */
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ==========================================================================
   Маленький телефон (≤ 400px)
   ========================================================================== */
@media (max-width: 400px) {
    .wrap, .footer__inner { padding-inline: 13px; }
    .nav { width: calc(100% - 16px); padding: 7px 9px; }
    .nav__name { display: none; }
    .nav__logo { width: 36px; height: 36px; }
    .wallet-chip { padding: 6px 10px; }
    .wallet-chip strong { font-size: 13px; }
    .gift-chip { width: 38px; height: 38px; }
    .metrics { grid-template-columns: 1fr; }
    .service__specs { grid-template-columns: 1fr 1fr; }
    .mobile-nav__item { font-size: 10px; padding: 6px 2px; }
    .mobile-nav__item .i { width: 20px; height: 20px; }
    .hero__stats { gap: 12px 18px; }
    .hero__stat strong { font-size: 20px; }
    /* у авторизованного прячем кошелёк в шапке — баланс есть в нижней навигации и меню */
    body.is-auth .nav__actions .wallet-chip { display: none; }
}

/* ==========================================================================
   Планшет в портретной (601–1024) — каталог: фильтры в 2 колонки сверху
   ========================================================================== */
@media (min-width: 601px) and (max-width: 1024px) {
    .catalog__aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
    .catalog__search { grid-column: 1 / -1; }
}

/* ==========================================================================
   Широкие мониторы: контент занимает больше экрана, без узкой колонки.
   ========================================================================== */
@media (min-width: 1500px) {
    :root { --wrap: 1480px; }
    .wrap, .footer__inner { padding-inline: 32px; }
}
@media (min-width: 1800px) {
    :root { --wrap: 1640px; }
}

/* ==========================================================================
   Доводка иконок-span (.i) для блоков, где раньше были <svg>
   ========================================================================== */
.empty .i { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--sky-300); display: block; }
.email-banner .i { width: 26px; height: 26px; color: #d98a1f; flex: none; }
.catalog__search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
.guest-note .i { color: var(--sky-600); flex: none; }
.bonus-note .i { width: 18px; height: 18px; flex: none; }
.modal__close .i { color: inherit; }
.feature--accent .feature__ic .i,
.metric--accent .metric__ic .i { color: #fff; }

/* FAQ: ответы не должны обрезаться (длинный текст на мобиле) */
.faq__item.open .faq__a { max-height: 600px; }
.faq__q { gap: 12px; }

/* email-баннер: иконка + текст не переполняются */
.email-banner__copy { min-width: 0; }
.email-banner span { overflow-wrap: anywhere; }

/* модалка оплаты/итог — длинные суммы и названия не вылезают */
.modal__total { flex-wrap: wrap; gap: 6px; }
.pay-method__box { min-width: 0; }
.pay-method__box > span:last-child { min-width: 0; overflow: hidden; }
.pay-method__name, .pay-method__hint { overflow-wrap: anywhere; }

/* ==========================================================================
   Страница авторизации (/auth)
   ========================================================================== */
.auth-page { padding-top: 30px; }
.auth-shell {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 24px; align-items: stretch; max-width: 980px; margin: 0 auto;
}
.auth-card { display: flex; flex-direction: column; }
.auth-card__title { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 8px; }
.auth-card__sub { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
.auth-card__hint { color: var(--ink-mute); font-size: 13px; }
.auth-form__grid { display: grid; gap: 16px; }
.auth-form__grid--double { grid-template-columns: 1fr 1fr; }
.auth-card__footer { margin-top: 18px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.auth-inline-link { color: var(--sky-700); font-weight: 700; }
.auth-inline-link:hover { text-decoration: underline; }
.caption { color: var(--ink-mute); font-size: 13px; }

/* боковая панель-преимущества */
.auth-aside {
    padding: 28px; display: flex; flex-direction: column; gap: 14px;
    background: radial-gradient(circle at 80% 0%, rgba(127,200,255,.22), transparent 55%), var(--glass);
}
.auth-aside__title { font-size: 22px; line-height: 1.2; }
.auth-aside__list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth-aside__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.auth-aside__list .i { width: 22px; height: 22px; flex: none; color: var(--sky-600); }

@media (max-width: 880px) {
    .auth-shell { grid-template-columns: 1fr; max-width: 560px; }
    .auth-aside { order: -1; }   /* преимущества сверху на планшете */
}
@media (max-width: 600px) {
    .auth-page { padding-top: 16px; }
    .auth-form__grid--double { grid-template-columns: 1fr; }
    .auth-aside { display: none; }   /* на телефоне фокус только на форме */
}

/* ==========================================================================
   КОМПАКТНЫЙ МОБИЛЬНЫЙ РЕЖИМ (≤ 600px)
   Контент на телефоне был визуально «раздут» (крупные шрифты/отступы/карточки),
   из-за чего выглядел как увеличенная десктоп-версия. Здесь приводим масштаб
   к нативному мобильному: меньше базовый кегль, плотнее отступы и карточки.
   ========================================================================== */
@media (max-width: 600px) {
    body { font-size: 15px; }

    /* контейнеры — плотнее */
    .wrap, .footer__inner { padding-inline: 14px; }
    .section { padding: 32px 0; }
    .page { padding: 20px 0 24px; }
    .section__head { margin-bottom: 20px; }

    /* hero компактнее */
    .hero { padding: 22px 0 8px; }
    .hero h1 { font-size: clamp(23px, 6.8vw, 30px); }
    .hero__lead { font-size: 14px; line-height: 1.55; margin: 14px 0 18px; }
    .hero h1 .badge-word { padding: 1px 10px; }

    /* карточка кабинета в hero — меньше */
    .hero__card { padding: 16px; border-radius: var(--r-md); }
    .hero__card-head h3 { font-size: 16px; }
    .mini-balance { padding: 16px 18px; }
    .mini-balance strong { font-size: 24px; }
    .order-row { padding: 10px 12px; margin-top: 10px; }
    .order-row__ic { width: 34px; height: 34px; }
    .cab-stat b { font-size: 16px; }
    .cab-stat span { font-size: 10px; }
    .cab-actions .btn { height: 42px; font-size: 14px; }

    /* статы героя — компактный ряд */
    .hero__stats { gap: 12px 18px; margin-top: 20px; }
    .hero__stat strong { font-size: 20px; }
    .hero__stat span { font-size: 12px; }

    /* заголовки секций */
    .section__head h1 { font-size: clamp(22px, 6vw, 28px); }
    .section__head h2 { font-size: clamp(20px, 5.5vw, 25px); }
    .section__head p { font-size: 14px; margin-top: 10px; }

    /* кнопки — стандартная мобильная высота */
    .btn { height: 46px; padding: 0 18px; font-size: 15px; }
    .btn--lg { height: 50px; font-size: 15px; }
    .btn--sm { height: 40px; }

    /* карточки/панели — плотные отступы */
    .panel { padding: 16px; }
    .feature { padding: 18px; gap: 10px; }
    .feature__ic { width: 46px; height: 46px; }
    .feature__ic .i { width: 23px; height: 23px; }
    .feature h3 { font-size: 17px; }
    .feature p { font-size: 14px; }
    .feature__big { font-size: clamp(30px, 9vw, 42px); }
    .service { padding: 16px; gap: 12px; }
    .service__title { font-size: 16px; }
    .step { padding: 18px 16px; }
    .review { padding: 18px; }
    .metric { padding: 18px; }
    .metric__val { font-size: 24px; }
    .metric__ic { width: 40px; height: 40px; margin-bottom: 10px; }
    .cta-band { padding: 32px 18px; }
    .cta-band h2 { font-size: clamp(22px, 6vw, 30px); }

    /* пилюли/eyebrow — мельче */
    .pill { padding: 6px 12px; font-size: 12px; }
    .eyebrow { font-size: 12px; }

    /* плитки площадок в каталоге — компактнее */
    .plat-tile { padding: 10px; }
    .plat-tile__icon { width: 32px; height: 32px; }

    /* нижняя навигация — чуть ниже и компактнее */
    .mobile-nav { left: 8px; right: 8px; bottom: 8px; padding: 6px 4px; }
    .mobile-nav__item { font-size: 10.5px; padding: 6px 3px; }
    .mobile-nav__item .i { width: 21px; height: 21px; }
}

/* очень узкие/компактные телефоны (≤ 380px) */
@media (max-width: 380px) {
    .hero h1 { font-size: 22px; }
    .mini-balance strong { font-size: 22px; }
    .section__head h1 { font-size: 21px; }
}

/* ==========================================================================
   v3 — больше воздуха по бокам + ещё компактнее заголовки на телефоне
   (контент липнул к краям, hero-заголовок оставался крупным)
   ========================================================================== */
@media (max-width: 600px) {
    /* увеличенные боковые поля — контент не упирается в края */
    .wrap, .footer__inner { padding-inline: 20px; }
    .nav { width: calc(100% - 24px); }

    /* hero-заголовок заметно меньше и не переносится уродливо */
    .hero h1 { font-size: clamp(22px, 6vw, 27px); line-height: 1.14; }
    .hero h1 .badge-word { padding: 1px 9px; }
    .hero__lead { font-size: 13.5px; }

    /* баланс-карточка — компактнее по высоте */
    .mini-balance strong { font-size: 23px; }

    /* статы в одну строку, перенос при нехватке места */
    .hero__stats { flex-wrap: wrap; }
}

@media (max-width: 400px) {
    .wrap, .footer__inner { padding-inline: 16px; }
    .hero h1 { font-size: 21px; }
}

/* ==========================================================================
   ОБОЛОЧКА БОЕВОГО САЙТА — компоненты, которых не было в концепте
   ========================================================================== */

/* экран загрузки */
.screen-loader { display: grid; place-items: center; min-height: 60vh; padding: 40px 20px; }
.loader-card {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
    padding: 22px 26px; border-radius: var(--r-lg);
    background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow-md);
}
.loader-card__shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-100%); animation: loaderShine 1.4s ease-in-out infinite; }
@keyframes loaderShine { to { transform: translateX(100%); } }
.loader-card__mark { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none; box-shadow: 0 10px 22px rgba(56,167,255,.35); }
.loader-card__logo { width: 100%; height: 100%; object-fit: contain; }
.loader-card__text strong { display: block; font-family: "Unbounded", sans-serif; font-size: 16px; }
.loader-card__text span { color: var(--ink-soft); font-size: 14px; }

/* профиль-чип: имя рядом с аватаром */
.profile-chip__name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* баннер подтверждения email */
.email-verification-banner {
    max-width: var(--wrap); margin: 16px auto 0; width: calc(100% - 32px);
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    border-radius: var(--r-md); background: rgba(255,179,71,.14); border: 1px solid rgba(255,179,71,.4);
}
.email-verification-banner__icon .i,
.email-verification-banner .i { width: 26px; height: 26px; color: #d98a1f; flex: none; }
.email-verification-banner__copy { min-width: 0; flex: 1; }
.email-verification-banner__copy strong { display: block; font-size: 15px; }
.email-verification-banner__copy span { font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* error-state */
.empty-card { text-align: center; padding: 40px 24px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); }
.empty-card__title { font-size: 22px; margin-bottom: 8px; }
.empty-note { color: var(--ink-soft); }
.inline-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* кнопки (совместимость старых классов .button с дизайн-системой .btn) */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: var(--r-pill); font-weight: 700; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease); }
.button--primary { color: #fff; background: var(--grad-brand); box-shadow: 0 14px 30px rgba(56,167,255,.34); }
.button--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(56,167,255,.42); }
.button--secondary { color: var(--sky-700); background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); }
.button--secondary:hover { transform: translateY(-3px); border-color: var(--sky-400); }
.button--small { height: 42px; padding: 0 18px; font-size: 14px; }
.small-button { background: none; color: var(--ink-mute); font-weight: 700; padding: 6px 4px; }
.small-button:hover { color: var(--sky-700); }

/* мобильное выпадающее меню навигации */
@media (max-width: 880px) {
    .nav__links.mobile-open {
        display: flex; flex-direction: column; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
        background: rgba(255,255,255,.97); padding: 12px; border-radius: var(--r-lg);
        box-shadow: var(--shadow-lg); gap: 4px; margin: 0; z-index: 60;
    }
    .nav__links.mobile-open .nav__link { width: 100%; text-align: left; }
}
@media (max-width: 560px) {
    body.is-guest .nav__actions [data-tab="login"] { display: none; }
}

/* ==========================================================================
   Доводка компонентов под боевые данные
   ========================================================================== */
/* теги статусов */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; background: rgba(125,195,255,.16); color: var(--sky-700); }
.tag--success { background: rgba(47,178,140,.16); color: var(--mint); }
.tag--warning { background: rgba(255,179,71,.2); color: #d98a1f; }
.tag--danger { background: rgba(255,111,125,.16); color: var(--coral); }

/* суммы операций */
.list-card__amount { font-family: "Unbounded", sans-serif; font-size: 18px; font-weight: 700; }
.amount-plus { color: var(--mint); }
.amount-minus { color: var(--ink); }

/* избранное в карточке услуги */
.service__favorite { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(125,195,255,.14); color: var(--ink-mute); flex: none; }
.service__favorite.is-active { background: rgba(255,111,125,.16); color: var(--coral); }
.service__favorite .i { width: 18px; height: 18px; }

/* лояльность бейдж */
.loyalty-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.loyalty-badge__icon { color: var(--sky-600); }

/* быстрый поиск каталога — форма как контейнер */
.catalog__search { display: block; }
.catalog__search .input { width: 100%; }

/* анимация появления (scroll-reveal) для боевых страниц */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Доводка: оплата, капча, отзывы-аватар, FAQ
   ========================================================================== */
.pay-method { position: relative; cursor: pointer; }
.pay-method__input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method__box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.65); border: 2px solid var(--glass-line); transition: .2s var(--ease); }
.pay-method:hover .pay-method__box { border-color: var(--sky-300); }
.pay-method__input:checked + .pay-method__box { border-color: var(--sky-500); background: rgba(125,195,255,.12); box-shadow: 0 0 0 4px rgba(61,165,255,.12); }
.payment-method-option__logo, .pay-method__logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fff; overflow: hidden; flex: none; border: 1px solid var(--glass-line); }
.payment-method-option__logo img, .pay-method__logo img { width: 76%; height: 76%; object-fit: contain; }
.payment-method-option__logo--fallback { background: var(--grad-brand); color: #fff; font-weight: 800; }
.pay-method__name { font-size: 14px; font-weight: 700; }

/* аватар отзыва картинкой */
.review__ava--img { background: #fff; overflow: hidden; padding: 0; }
.review__ava--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* FAQ richtext */
.faq-content p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.6; }
.faq-content h2, .faq-content h3 { margin: 18px 0 8px; }
.richtext { overflow-wrap: anywhere; }

/* капча-робот */
.auth-verification { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); text-align: left; transition: .2s var(--ease); }
.auth-verification:hover { border-color: var(--sky-400); }
.auth-verification__box { position: relative; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--sky-400); flex: none; display: grid; place-items: center; }
.auth-verification__spinner { display: none; width: 18px; height: 18px; border: 2px solid var(--sky-300); border-top-color: var(--sky-600); border-radius: 50%; animation: authVerifySpin .8s linear infinite; }
.auth-verification__check { display: none; color: var(--mint); font-weight: 800; }
.auth-verification--loading .auth-verification__spinner { display: block; }
.auth-verification--verified .auth-verification__check { display: block; }
.auth-verification--verified .auth-verification__box { border-color: var(--mint); }
@keyframes authVerifySpin { to { transform: rotate(360deg); } }
.auth-verification__content strong { display: block; font-size: 14px; }
.auth-verification__content span { font-size: 13px; color: var(--ink-soft); }
.auth-verification__progress { display: block; height: 4px; border-radius: 99px; background: rgba(125,195,255,.25); margin-top: 8px; overflow: hidden; }
.auth-verification__progress span { display: block; height: 100%; background: var(--grad-brand); width: 0; transition: width .3s var(--ease); }

.meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-note { color: var(--ink-mute); font-size: 14px; padding: 8px 0; }

/* ==========================================================================
   Модалки (услуга/заказ/email/бесплатная/вывод) — структура контента
   Рендерятся внутри #modalContent (.modal__box). Здесь — раскладка.
   ========================================================================== */
.modal-title { font-family: "Unbounded", sans-serif; font-size: 22px; line-height: 1.2; }
.modal-subtitle, .modal__sub, .text-muted { color: var(--ink-soft); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* услуга/заказ модалка */
.service-order-modal, .order-details, .free-service-modal, .email-verification-modal { display: flex; flex-direction: column; gap: 18px; }
.service-order-modal__title-row, .order-details__service { display: flex; align-items: center; gap: 12px; }
.service-order-modal__platform, .order-details__service-icon, .service-order-modal__metric-icon, .order-details__metric-icon { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--glass-line); }
.service-order-modal__platform img, .order-details__service-icon img { width: 76%; height: 76%; object-fit: contain; }
.service-order-modal__description, .order-details__metrics { list-style: none; padding: 0; margin: 0; }
.service-order-modal__description li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.service-order-modal__description li::before { content: "—"; color: var(--sky-500); font-weight: 800; }
.service-order-modal__metrics, .order-details__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-order-modal__metric, .order-details__metric { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.6); border: 1px solid var(--glass-line); }
.service-order-modal__metric-icon img, .order-details__metric-icon img { width: 22px; height: 22px; }
.service-order-modal__metric-copy span, .order-details__metric span { display: block; font-size: 12px; color: var(--ink-mute); }
.service-order-modal__metric-copy strong, .order-details__metric strong { font-size: 14px; }
.service-order-modal__total { display: flex; align-items: center; height: 52px; padding: 0 16px; border-radius: var(--r-sm); background: rgba(125,195,255,.12); }
.service-order-modal__total strong { font-family: "Unbounded", sans-serif; font-size: 20px; color: var(--sky-700); }
.service-order-modal__guest, .email-verification-prompt { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-md); background: rgba(125,195,255,.1); border: 1px dashed var(--sky-300); }
.service-order-modal__guest-icon img { width: 28px; height: 28px; }

/* детали заказа */
.order-details__hero { display: flex; flex-direction: column; gap: 12px; }
.order-details__hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-details__id { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.order-details__id-icon img, .order-details__tiny-icon img, .order-details__service-icon img { object-fit: contain; }
.order-details__title { font-family: "Unbounded", sans-serif; font-size: 18px; }
.order-details__progress-track { height: 8px; border-radius: 99px; background: rgba(125,195,255,.22); overflow: hidden; margin: 8px 0; }
.order-details__progress-track span { display: block; height: 100%; background: var(--grad-brand); border-radius: 99px; }
.order-details__progress-head, .order-details__progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.order-details__link-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.6); border: 1px solid var(--glass-line); }
.order-details__link-card strong { overflow-wrap: anywhere; font-size: 14px; }
.order-details__label, .order-details__metric span { font-size: 12px; color: var(--ink-mute); }

/* email модалка */
.email-verification-modal__code { letter-spacing: 6px; text-align: center; font-size: 22px; font-weight: 800; }
.email-verification-modal__resend { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.email-verification-modal__resend span { font-size: 13px; color: var(--ink-mute); }

@media (max-width: 560px) {
    .form-grid, .service-order-modal__metrics, .order-details__metrics { grid-template-columns: 1fr; }
}

/* ==========================================================================
   API Documentation (раздел /api-docs)
   ========================================================================== */
.api-doc-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }

/* Раскрывающаяся карточка метода (native <details>) */
.api-doc { padding: 0; overflow: hidden; }
.api-doc__summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 28px; cursor: pointer; list-style: none; user-select: none;
}
.api-doc__summary::-webkit-details-marker { display: none; }
.api-doc__title { font-size: 17px; font-weight: 800; color: var(--ink); }
.api-doc__chevron {
    flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-soft);
    border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg);
    transition: transform .25s var(--ease); margin-right: 4px;
}
.api-doc[open] .api-doc__chevron { transform: rotate(225deg); }
.api-doc[open] .api-doc__summary { border-bottom: 1px solid var(--glass-line); }
.api-doc__summary:hover .api-doc__title { color: var(--sky-700); }
.api-doc__body { padding: 8px 28px 26px; display: flex; flex-direction: column; gap: 18px; }
.api-doc__lead { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
.api-doc__label {
    font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft);
    margin-bottom: -6px;
}

/* Таблицы «Параметр/Описание» и «Поле/Значение» */
.api-table {
    border: 1px solid var(--glass-line); border-radius: var(--r-md);
    background: var(--glass-strong); overflow: hidden;
}
.api-table__head, .api-table__row {
    display: grid; grid-template-columns: minmax(160px, 1fr) 1.4fr; gap: 16px;
    padding: 14px 18px; align-items: center;
}
.api-table__head {
    font-size: 13px; font-weight: 800; color: var(--ink); text-transform: none;
    border-bottom: 1px solid var(--glass-line); background: rgba(0,0,0,.04);
}
.api-table__row { border-bottom: 1px solid var(--glass-line); font-size: 14px; color: var(--ink-soft); }
.api-table__row:last-child { border-bottom: 0; }
.api-table__row strong { color: var(--ink); font-size: 14px; }

/* Красноватый chip для имён параметров/полей (как в примере) */
.api-token {
    display: inline-block; padding: 2px 8px; border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px; color: #ff8a8a; background: rgba(255,99,99,.12);
    border: 1px solid rgba(255,99,99,.22);
}

/* Блоки кода: пример запроса и пример ответа */
.api-code {
    margin: 0; padding: 14px 16px; border-radius: var(--r-md);
    background: rgba(12,18,32,.92); border: 1px solid var(--glass-line);
    color: #e6edf6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px; line-height: 1.6; overflow-x: auto;
}
.api-code code { white-space: pre; word-break: normal; color: inherit; background: none; padding: 0; }
.api-code--inline {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.api-code--inline code { color: #8fd0ff; word-break: break-all; white-space: normal; }
.api-code__copy { flex: none; }

@media (max-width: 720px) {
    .api-doc__summary { padding: 18px; }
    .api-doc__body { padding: 6px 18px 20px; }
    .api-table__head, .api-table__row { grid-template-columns: 1fr; gap: 6px; }
    .api-code--inline { flex-direction: column; align-items: stretch; }
}
