/* ============================================================
   vkadvert — main.css
   Основной файл стилей. Работает для лендинга и кабинета.
   Палитра: голубой (#00b9e4) + коралловый акцент (#f43f5e)
   ============================================================ */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    /* Основная палитра */
    --primary:        #00b9e4;
    --primary-dark:   #0077b6;
    --primary-light:  #7dd3fc;
    --primary-soft:   #e0f2fe;

    /* Акцент (популярный тариф, важные плашки) */
    --accent:         #f43f5e;
    --accent-light:   #fb7185;
    --accent-soft:    #ffe4e6;

    /* Текст */
    --ink:            #0f172a;
    --muted:          #64748b;
    --muted-light:    #94a3b8;

    /* Фоны */
    --bg:             #f8fbff;
    --bg-soft:        #eff6ff;
    --white:          #ffffff;

    /* Границы */
    --border:         rgba(0, 185, 228, 0.12);
    --border-soft:    rgba(0, 185, 228, 0.06);

    /* Радиусы */
    --radius:         24px;
    --radius-sm:      16px;
    --radius-pill:    100px;

    /* Тени */
    --shadow-sm:      0 8px 24px -12px rgba(0, 119, 182, 0.25);
    --shadow:         0 20px 60px -20px rgba(0, 119, 182, 0.35);
    --shadow-hover:   0 28px 70px -20px rgba(0, 185, 228, 0.55);
}

/* ===== БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.brand, .btn {
    font-family: 'Unbounded', 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== ФОНОВЫЕ ПЯТНА (блобы) ===== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}
.blob-1 { width: 600px; height: 600px; background: #bae6fd; top: -200px; left: -150px; }
.blob-2 { width: 500px; height: 500px; background: #e0f2fe; top: 40%; right: -200px; }
.blob-3 { width: 400px; height: 400px; background: #f0f9ff; bottom: -150px; left: 30%; }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

.btn-ghost {
    background: rgba(0, 185, 228, 0.08);
    color: var(--primary-dark);
}

.btn-ghost:hover {
    background: rgba(0, 185, 228, 0.16);
    color: var(--primary-dark);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(244, 63, 94, 0.5);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(244, 63, 94, 0.7);
    color: #fff;
}

/* ===== КНОПКА ВХОДА ЧЕРЕЗ VK ===== */
.btn-vkid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--primary-dark);
    border: none;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
}

.btn-vkid:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.25);
    background: #fff;
    color: var(--primary-dark);
}

.btn-vkid i {
    font-size: 22px;
    color: #0077FF;
}

.btn-vkid:active {
    transform: translateY(-1px);
}

/* ===== ШАПКА (общая для лендинга и кабинета) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(248, 251, 255, 0.75);
    border-bottom: 1px solid var(--border-soft);
}

.site-header .brand {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.site-header .brand img {
    height: 36px;
}

.site-header .brand span {
    color: var(--primary);
}

.site-header nav {
    display: flex;
    gap: 34px;
    font-weight: 500;
    font-size: 15px;
}

.site-header nav a {
    color: var(--muted);
    transition: color 0.25s;
}

.site-header nav a:hover {
    color: var(--primary);
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header .user-name {
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
}

/* ===== HERO ===== */
.landing-hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 5vw 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.hero-badge i {
    color: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

.landing-hero h1 {
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2px;
    max-width: 1100px;
    font-family: 'Unbounded', sans-serif;
}

.landing-hero h1 .grad {
    background: linear-gradient(120deg, var(--primary), var(--primary-light), #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p.lead {
    font-size: clamp(17px, 1.6vw, 22px);
    color: var(--muted);
    max-width: 640px;
    margin: 32px 0 44px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Плавающие карточки */
.float {
    position: absolute;
    z-index: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 14px 20px;
    box-shadow: 0 20px 50px -18px rgba(0, 119, 182, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    animation: floaty 6s ease-in-out infinite;
    color: var(--ink);
}

.float i {
    font-size: 20px;
    color: var(--primary);
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

.f1 { top: 18%; right: 6%;  animation-delay: 0s; }
.f2 { top: 42%; right: 16%; animation-delay: 1.5s; }
.f3 { bottom: 20%; right: 4%; animation-delay: 3s; }
.f4 { bottom: 8%;  left: 42%; animation-delay: 2s; }
.f5 { top: 10%;  right: 26%; animation-delay: 1s; }
.f6 { bottom: 36%; right: 28%; animation-delay: 2.5s; }
.f7 { top: 26%; right: 14%; animation-delay: 4s; }

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee {
    position: relative;
    z-index: 2;
    padding: 28px 0;
    background: var(--primary-dark);
    color: #fff;
    overflow: hidden;
    transform: rotate(-1.5deg);
    margin: 60px -20px;
}

.marquee-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.marquee-track span {
    display: flex;
    align-items: center;
    gap: 60px;
}

.marquee i {
    color: var(--primary-light);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== СЕКЦИИ ===== */
.landing-section {
    position: relative;
    z-index: 2;
    padding: 100px 5vw;
}

.section-tag {
    display: inline-block;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-dark);
    background: rgba(0, 185, 228, 0.1);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-bottom: 24px;
    font-family: 'Unbounded', sans-serif;
}

.section-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 60px;
}

/* ===== КАРТОЧКИ ПРЕИМУЩЕСТВ ===== */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.feature-box {
    flex: 1 1 300px;
    max-width: 380px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 34px;
    border: 1px solid var(--border-soft);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0, 185, 228, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin-bottom: 26px;
    box-shadow: 0 14px 30px -10px rgba(0, 185, 228, 0.6);
}

.feature-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
}

.feature-box p {
    color: var(--muted);
    font-size: 16px;
    position: relative;
}

/* ===== КАК ЭТО РАБОТАЕТ (шаги) ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.step-item {
    position: relative;
    padding-top: 20px;
}

.step-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.step-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-item p {
    color: var(--muted);
    font-size: 15px;
}

/* ===== ТАРИФЫ ===== */
.tariffs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.tariff-box {
    flex: 1 1 280px;
    max-width: 380px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 34px;
    border: 1px solid var(--border-soft);
    transition: all 0.4s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tariff-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.tariff-box.popular {
    border-top: 5px solid var(--accent);
    box-shadow: 0 20px 50px -20px rgba(244, 63, 94, 0.3);
}

.tariff-box .popular-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    align-self: flex-start;
}

.tariff-box h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tariff-box .price {
    font-family: 'Unbounded', sans-serif;
    font-size: 44px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
    margin: 16px 0 8px;
}

.tariff-box .price small {
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
}

.tariff-box ul {
    list-style: none;
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tariff-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--ink);
}

.tariff-box ul li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.tariff-box ul li.off {
    color: var(--muted-light);
}

.tariff-box ul li.off i {
    color: var(--muted-light);
}

.tariff-box .btn {
    margin-top: auto;
    justify-content: center;
    width: 100%;
}

/* ===== ЦИФРЫ (счётчики) ===== */
.stats-band {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 80px 5vw;
    border-radius: 40px;
    margin: 60px 5vw;
    overflow: hidden;
}

.stats-band::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -250px;
    right: -150px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    color: #fff;
}

.stat-item p {
    font-size: 15px;
    opacity: 0.85;
}

/* ===== CTA-БЛОК ===== */
.cta-band {
    position: relative;
    z-index: 2;
    margin: 60px 5vw 80px;
    padding: 80px 6vw;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -150px;
}

.cta-band::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
}

.cta-band h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    position: relative;
}

.cta-band p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 40px;
    position: relative;
}

.cta-band .btn {
    position: relative;
}

/* ===== ФУТЕР ===== */
.landing-footer {
    position: relative;
    z-index: 2;
    padding: 60px 5vw 30px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(0, 185, 228, 0.04));
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 18px;
}

.footer-brand img {
    height: 30px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-vk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 185, 228, 0.1);
    color: var(--primary) !important;
    font-size: 18px;
    transition: all 0.25s;
}

.footer-vk:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.footer-copy {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--muted-light);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
    .float { display: none; }
}

@media (max-width: 1000px) {
    .site-header nav { display: none; }
    .landing-hero { padding-top: 120px; }
    .marquee { transform: rotate(-2deg); }
}

@media (max-width: 640px) {
    .site-header { padding: 14px 4vw; }
    .site-header .brand { font-size: 18px; }
    .site-header .brand img { height: 30px; }
    .site-header .brand span { display: none; }
    .site-header .header-actions .btn { padding: 10px 18px; font-size: 14px; }
    .landing-hero { padding: 110px 5vw 60px; }
    .landing-section { padding: 70px 5vw; }
    .stats-band { padding: 60px 5vw; margin: 40px 5vw; border-radius: 28px; }
    .cta-band { padding: 60px 5vw; margin: 40px 5vw 60px; border-radius: 28px; }
    .footer-row { flex-direction: column; text-align: center; }
}
/* ============================================================
   КАБИНЕТ — шапка
   ============================================================ */

.cabinet-header {
    /* Наследуем от .site-header, но чуть компактнее */
    padding: 14px 5vw;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px -4px rgba(0, 119, 182, 0.25);
    flex-shrink: 0;
}

.user-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border: none;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    white-space: nowrap;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: rgba(0, 185, 228, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(0, 185, 228, 0.16);
    color: var(--primary-dark);
}

.btn-logout i {
    font-size: 15px;
}

/* Адаптив: на узких скрываем имя и текст кнопки */
@media (max-width: 900px) {
    .user-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .cabinet-header .brand span {
        display: none;
    }
    .btn-logout-text {
        display: none;
    }
    .btn-logout {
        padding: 10px 12px;
    }
}
/* ============================================================
   КАБИНЕТ — карточки групп
   ============================================================ */

.cabinet-section {
    position: relative;
    z-index: 2;
    padding: 40px 5vw 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.cabinet-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cabinet-title i {
    color: var(--primary);
}

.cabinet-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* Карточка группы */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.group-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 26px 24px;
    border: 1px solid var(--border-soft);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0.3;
}

.group-card.tariff-pro::before {
    background: var(--accent);
    opacity: 1;
}

.group-card.tariff-standard::before {
    background: var(--primary);
    opacity: 1;
}

.group-card.tariff-free::before {
    background: var(--muted-light);
    opacity: 1;
}

.group-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.group-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.group-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -4px rgba(0, 119, 182, 0.3);
}

.group-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    color: var(--primary);
    font-size: 22px;
}

.group-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.group-name:hover {
    color: var(--primary);
}

.group-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.badge-tariff {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 185, 228, 0.1);
    color: var(--primary-dark);
}

.badge-tariff.pro {
    background: var(--accent-soft);
    color: var(--accent);
}

.badge-paid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-soft);
    color: var(--muted);
}

.group-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--muted);
}

.group-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.group-stat i {
    color: var(--primary);
    font-size: 14px;
}

.group-stat strong {
    color: var(--ink);
    font-weight: 700;
}

.group-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-sm-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}

.btn-sm-pill.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.btn-sm-pill.primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: #fff;
}

.btn-sm-pill.ghost {
    background: rgba(0, 185, 228, 0.08);
    color: var(--primary-dark);
}

.btn-sm-pill.ghost:hover {
    background: rgba(0, 185, 228, 0.16);
    color: var(--primary-dark);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    color: var(--muted);
}

.empty-state i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
}
/* ===== Список пользователей (group_settings → Пользователи) ===== */
.gs-user-row {
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}
.gs-user-row:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
}
.gs-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gs-user-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 20px;
}

/* ===== Список постов (group_settings → Посты) ===== */
.gs-post-row {
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}
.gs-post-row:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
}
.gs-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gs-post-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 20px;
}

/* ===== Список платежей (group_settings → Деньги) ===== */
.gs-money-row {
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    margin-bottom: 8px;
    background: var(--white);
}
.gs-money-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gs-money-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 20px;
}
.gs-money-total {
    margin-top: 16px;
    padding: 12px 14px;
    text-align: center;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== Загрузчик водяного знака (group_settings → Водяной знак) ===== */
.watermark-uploader {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    transition: all 0.3s;
    overflow: hidden;
    cursor: pointer;
    min-height: 200px;
}
.watermark-uploader:hover {
    border-color: var(--primary);
    background: rgba(0, 185, 228, 0.04);
}
.watermark-uploader.dragover {
    border-color: var(--primary);
    background: rgba(0, 185, 228, 0.08);
    transform: scale(1.01);
    box-shadow: 0 8px 24px -10px rgba(0, 185, 228, 0.25);
}
.uploader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 20px;
}
.uploader-placeholder {
    text-align: center;
    color: var(--muted);
}
.uploader-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.7;
    transition: transform 0.3s;
}
.watermark-uploader:hover .uploader-icon {
    transform: translateY(-5px);
}
.uploader-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.uploader-hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.uploader-formats {
    font-size: 0.75rem;
    color: var(--muted-light);
    margin-top: 8px;
}
.uploader-preview {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s;
}
.watermark-uploader:hover .uploader-preview {
    transform: scale(1.03);
}
.uploader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 185, 228, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
}
.watermark-uploader:hover .uploader-overlay {
    opacity: 1;
}
.watermark-uploader.loading {
    pointer-events: none;
}
.watermark-uploader.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='16' fill='none' stroke='%2300b9e4' stroke-width='3' stroke-dasharray='80 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") no-repeat center;
}

/* ===== Мелочи ===== */
.nodecor {
    text-decoration: none;
}
.nodecor:hover {
    text-decoration: none;
}
/* ============================================================
   HELP — раздел помощи
   ============================================================ */

/* ----- HERO ----- */
.help-hero {
    position: relative;
    z-index: 2;
    padding: 140px 5vw 60px;
    text-align: center;
}

.help-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.help-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: 0 14px 40px -10px rgba(0, 185, 228, 0.6);
}

.help-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.05;
}

.help-hero-sub {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* ----- КОНТЕЙНЕР ----- */
.help-container {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 5vw 80px;
}

/* ----- СЕКЦИИ ----- */
.help-section {
    margin-bottom: 60px;
}

.help-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.5px;
}

.help-section-title i {
    color: var(--primary);
    font-size: 22px;
    width: 28px;
    text-align: center;
}

/* ----- АККОРДЕОН (details/summary) ----- */
.help-item {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.help-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px -12px rgba(0, 185, 228, 0.25);
}

.help-item[open] {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--white), var(--bg-soft));
    box-shadow: 0 12px 32px -14px rgba(0, 185, 228, 0.35);
}

.help-item summary {
    padding: 20px 26px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    transition: color 0.25s;
}

.help-item summary::-webkit-details-marker {
    display: none;
}

.help-item summary::after {
    content: '▾';
    font-size: 16px;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.25s;
}

.help-item[open] summary::after {
    transform: rotate(180deg);
    color: var(--primary);
}

.help-item:hover summary {
    color: var(--primary-dark);
}

.help-item[open] summary {
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-soft);
}

/* ----- КОНТЕНТ ----- */
.help-content {
    padding: 22px 26px 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.help-content p {
    margin-bottom: 14px;
}

.help-content p:last-child {
    margin-bottom: 0;
}

.help-content ul,
.help-content ol {
    margin: 14px 0;
    padding-left: 22px;
}

.help-content li {
    margin-bottom: 8px;
    color: var(--muted);
}

.help-content li:last-child {
    margin-bottom: 0;
}

.help-content b,
.help-content strong {
    color: var(--ink);
    font-weight: 700;
}

.help-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(0, 185, 228, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.help-content a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

.help-content code {
    background: var(--bg-soft);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    border: 1px solid var(--border-soft);
}

/* ----- CTA ----- */
.help-cta {
    position: relative;
    z-index: 2;
    margin: 40px auto 100px;
    max-width: 860px;
    padding: 0 5vw;
}

.help-cta-inner {
    position: relative;
    padding: 60px 6vw;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.help-cta-inner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -120px;
}

.help-cta-inner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -150px;
    left: -80px;
}

.help-cta-icon {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    margin: 0 auto 24px;
    backdrop-filter: blur(10px);
}

.help-cta h2 {
    position: relative;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.help-cta p {
    position: relative;
    font-size: 16px;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.help-cta-actions {
    position: relative;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.help-cta .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.3);
}

.help-cta .btn-primary:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.4);
}

.help-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.help-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.help-cta-hint {
    position: relative;
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 0 !important;
}

/* ----- АДАПТИВ ----- */
@media (max-width: 640px) {
    .help-hero {
        padding: 120px 5vw 40px;
    }

    .help-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 20px;
    }

    .help-container {
        padding: 10px 5vw 60px;
    }

    .help-section {
        margin-bottom: 44px;
    }

    .help-section-title {
        font-size: 20px;
        gap: 10px;
        margin-bottom: 18px;
    }

    .help-section-title i {
        font-size: 18px;
        width: 22px;
    }

    .help-item summary {
        padding: 16px 20px;
        font-size: 15px;
    }

    .help-content {
        padding: 18px 20px 22px;
        font-size: 14px;
    }

    .help-cta {
        margin: 20px auto 60px;
        padding: 0 4vw;
    }

    .help-cta-inner {
        padding: 44px 6vw;
        border-radius: 24px;
    }

    .help-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .help-cta-actions .btn {
        justify-content: center;
    }
}
/* ===== Кнопка «Наверх» ===== */
.scroll-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9997;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 24px -8px rgba(0, 119, 182, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px -10px rgba(0, 185, 228, 0.7);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.96);
}

@media (max-width: 640px) {
    .scroll-to-top {
        left: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}