:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f8f9fa;
    --border: #e5e7eb;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --accent: #2563eb;
    --accent-glow: rgba(37,99,235,0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --header-height: 56px;
    --footer-height: 48px;
}

* { margin:0; padding:0; box-sizing:border-box; }

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: var(--bg);
}

/* =====================================================
   ХЕДЕР — ФИКСИРОВАННАЯ ВЫСОТА
   ===================================================== */
header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 20;
    overflow: hidden;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

header .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}
header .logo a {
    color: var(--text);
    text-decoration: none;
}
header .logo span {
    color: var(--accent);
}

header .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

header .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}
header .nav-links a:hover {
    color: var(--accent);
}

header .nav-links .btn-login {
    background: var(--accent);
    color: #fff;
    padding: 7px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
header .nav-links .btn-login:hover {
    background: #1d4ed8;
}

header .nav-links .btn-secondary {
    padding: 7px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}
header .nav-links .btn-secondary:hover {
    background: var(--border);
}

header .nav-links .btn-logout {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
header .nav-links .btn-logout:hover {
    border-color: #ef4444;
    color: #ef4444;
}
header .user-name {
    font-weight: 500;
    color: var(--text);
    cursor: default;
    font-size: 0.95rem;
}

/* =====================================================
   ОСНОВНОЙ КОНТЕНТ — РАСТЯГИВАЕТСЯ
   ===================================================== */
#app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* =====================================================
   ФУТЕР — ВСЕГДА ПРИЖАТ К НИЗУ
   ===================================================== */
#app-footer {
    flex-shrink: 0;
    height: var(--footer-height);
    min-height: var(--footer-height);
    max-height: var(--footer-height);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 10;
    overflow: hidden;
    margin-top: auto;
}

#app-footer .footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    height: 100%;
}

#app-footer .footer a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
    cursor: pointer;
    line-height: 1;
}

#app-footer .footer a:hover {
    color: var(--accent);
}

/* =====================================================
   СТРАНИЦЫ АВТОРИЗАЦИИ
   ===================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: var(--bg);
    padding: 20px;
}

.auth-container {
    max-width: 420px;
    width: 100%;
}

.auth-container .card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.auth-container h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.auth-container .form-group {
    margin-bottom: 16px;
}

.auth-container .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.auth-container .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.auth-container .form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-container .btn {
    width: 100%;
    padding: 12px;
    font-size: 1.05rem;
    margin-top: 8px;
}

.auth-container .auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-container .auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-container .auth-links a:hover {
    text-decoration: underline;
}

/* =====================================================
   ГЛАВНАЯ СТРАНИЦА
   ===================================================== */
.main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

/* =====================================================
   ПАНЕЛИ
   ===================================================== */
.panel {
    flex: 0 0 20%;
    max-width: 320px;
    min-width: 200px;
    overflow-y: auto;
    padding: 14px 14px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.panel.right {
    border-right: none;
    border-left: 1px solid var(--border);
    flex: 1;
    max-width: none;
    min-width: 280px;
}
.panel::-webkit-scrollbar { width: 3px; }
.panel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.panel-section {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 12px 14px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.panel-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-weight: 700;
}

/* =====================================================
   ПОЛЯ
   ===================================================== */
.field { margin-bottom: 8px; }
.field:last-child { margin-bottom: 0; }
.field label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-secondary);
}
.field label .unit {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    font-weight: 400;
}
.field input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    margin-top: 2px;
}
.field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.field input[type="number"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    background: #fff;
    color: var(--text);
}
.field input[type="number"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-tertiary);
    margin-top: 1px;
}

/* =====================================================
   ВЕС
   ===================================================== */
.weight-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.weight-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    overflow: hidden;
}
.weight-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}
.weight-indicator span {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    min-width: 28px;
    text-align: right;
}
.weight-value {
    text-align: center;
    margin-top: 2px;
}
.weight-value strong {
    color: var(--text);
    font-size: 0.95rem;
}
.fat-info {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-left: 4px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}
.stat-row span:last-child {
    color: var(--text);
    font-weight: 600;
}

/* =====================================================
   ТИПЫ ЖИРА
   ===================================================== */
.type-list { display: flex; flex-direction: column; gap: 4px; }
.type-btn {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
    font-family: inherit;
}
.type-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.type-btn.active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}
.type-btn small {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    font-weight: 400;
}
.type-btn.active small { color: var(--accent); }

/* =====================================================
   ЦЕНТР (3D)
   ===================================================== */
.center-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    height: 100%;
}
.viewport {
    flex: 1;
    position: relative;
    background: #fff;
    cursor: grab;
    min-height: 0;
    overflow: hidden;
}
.viewport:active { cursor: grabbing; }
.viewport canvas { display: block; width: 100% !important; height: 100% !important; }

/* =====================================================
   ЗАГРУЗКА
   ===================================================== */
.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    z-index: 10;
    transition: opacity 0.4s;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.spinner-ring {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* =====================================================
   ВЕС НАД МОДЕЛЬЮ
   ===================================================== */
.weight-overlay {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    min-width: 90px;
}
.weight-overlay-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}
.weight-overlay-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

/* =====================================================
   ТАЙМЛАЙН
   ===================================================== */
.timeline-bar {
    flex-shrink: 0;
    padding: 8px 20px 10px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    max-height: 54px;
}
.timeline-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 50px;
}
.timeline-slider-wrap { flex: 1; min-width: 80px; }
.timeline-slider-wrap #monthSlider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.timeline-slider-wrap #monthSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 10px rgba(37,99,235,0.2);
}
.timeline-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    color: var(--text-tertiary);
    margin-top: 3px;
    user-select: none;
    padding: 0 2px;
}
.timeline-ticks span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
}
.timeline-ticks span:hover {
    color: var(--accent);
    background: var(--accent-glow);
}
.timeline-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 50px;
    text-align: right;
    white-space: nowrap;
}

/* =====================================================
   АКТИВНОСТЬ
   ===================================================== */
.activity-list { display: flex; flex-direction: column; gap: 4px; }
.activity-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.activity-item:hover { border-color: var(--accent); background: var(--accent-light); }
.activity-item.active { border-color: var(--accent); background: var(--accent-light); }
.activity-item.locked-item { opacity: 0.5; }
.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.activity-icon { font-size: 0.9rem; width: 20px; text-align: center; }
.activity-name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}
.activity-value {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}
.activity-arrow {
    font-size: 0.55rem;
    color: var(--text-tertiary);
    transition: transform 0.2s;
}
.activity-item.active .activity-arrow { transform: rotate(180deg); }
.activity-details {
    display: none;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--border);
}
.activity-item.active .activity-details { display: block; }
.activity-details .field { margin-bottom: 5px; }
.activity-details .field label { font-size: 0.65rem; }
.activity-details .field input[type="range"] { height: 3px; }
.activity-details .field input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; }
.activity-details .range-labels { font-size: 0.55rem; }
.activity-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.activity-total strong { color: var(--accent); font-size: 0.85rem; }
.lock-badge { font-size: 0.55rem; color: var(--text-tertiary); margin-left: 3px; }

/* =====================================================
   ДИНАМИКА ВЕСА
   ===================================================== */
.weight-dynamics {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.weight-dynamics strong { color: var(--text); }
.weight-dynamics #weightProjected { color: var(--accent); }
.trend { font-size: 0.65rem; color: var(--text-tertiary); margin-left: 3px; }

/* =====================================================
   СТРАНИЦА ПОДПИСОК
   ===================================================== */
.subscriptions-page {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =====================================================
   СТРАНИЦА ПРОФИЛЯ
   ===================================================== */
.profile-page {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

/* =====================================================
   СТРАНИЦА ОПЛАТЫ
   ===================================================== */
.checkout-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-container {
    max-width: 480px;
    width: 100%;
}

/* =====================================================
   МОДАЛЬНЫЕ ОКНА
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--text);
}

.modal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.modal p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal a {
    color: var(--accent);
    text-decoration: none;
}

#offer-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

#offer-content h1,
#offer-content h2,
#offer-content h3 {
    color: var(--text);
    margin: 16px 0 8px;
}

#offer-content p {
    margin-bottom: 8px;
}

#offer-content ul,
#offer-content ol {
    padding-left: 20px;
    margin-bottom: 8px;
}

/* =====================================================
   АДАПТИВНОСТЬ
   ===================================================== */
@media (max-width: 1200px) {
    .panel { min-width: 160px; padding: 12px 10px; }
    .panel.right { min-width: 240px; }
}
@media (max-width: 1024px) {
    .panel { min-width: 140px; padding: 10px 8px; }
    .panel.right { min-width: 220px; }
}
@media (max-width: 860px) {
    .panel, .panel.right { display: none; }
}
@media (max-width: 600px) {
    :root {
        --header-height: 48px;
        --footer-height: 40px;
    }
    header { padding: 0 12px; height: var(--header-height); }
    header .logo { font-size: 1.1rem; }
    header .nav-links { gap: 10px; font-size: 0.8rem; }
    header .nav-links a { font-size: 0.8rem; }
    header .nav-links .btn-login,
    header .nav-links .btn-secondary,
    header .nav-links .btn-logout { padding: 4px 12px; font-size: 0.75rem; }
    #app-footer { height: var(--footer-height); min-height: var(--footer-height); max-height: var(--footer-height); }
    #app-footer .footer { gap: 14px; }
    #app-footer .footer a { font-size: 0.7rem; }
    .timeline-bar { padding: 6px 12px 8px; flex-wrap: wrap; gap: 6px; min-height: 44px; max-height: 44px; }
    .timeline-label { font-size: 0.6rem; min-width: 40px; }
    .timeline-value { font-size: 0.7rem; min-width: 40px; }
    .weight-overlay { top: 10px; right: 10px; padding: 4px 12px; min-width: 70px; }
    .weight-overlay-value { font-size: 1.2rem; }
    .subscriptions-page { padding: 12px 12px; }
    .profile-page { padding: 12px 12px; }
    .checkout-container .card { padding: 16px; }
}

/* =====================================================
   ЗАПРЕТ ВЫДЕЛЕНИЯ ТЕКСТА (для всей страницы)
   ===================================================== */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем выделение только в полях ввода */
input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Разрешаем выделение в модальных окнах (для копирования текста оферты) */
.modal,
.modal * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}



/* =====================================================
   ШИРОКИЙ СЛАЙДЕР ПРОГНОЗА (СТРОГИЙ КРУГЛЫЙ СТИЛЬ)
   ===================================================== */

/* ----- ОБЁРТКА СЛАЙДЕРА ----- */
.slider-wrapper {
    background: #14171e;
    border-radius: 24px;
    padding: 35px 40px 40px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.slider-wrapper:hover {
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 30px -10px rgba(0,0,0,0.5);
}

/* ----- ЗАГОЛОВОК СЛАЙДЕРА ----- */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    color: #fff;
}

.slider-header label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.4;
    color: #a0a0b0;
}

.slider-value {
    font-size: 24px;
    font-weight: 600;
    color: #c8d0dc;
    min-width: 50px;
    text-align: right;
    letter-spacing: -0.2px;
    font-variant-numeric: tabular-nums;
}

/* ----- КРУГЛЫЙ СЛАЙДЕР (СТРОГИЙ СТИЛЬ) ----- */
.circle-slider-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    padding: 4px 0;
}

.circle-track {
    position: relative;
    width: 100%;
    height: 44px;
    background: #1e222b;
    border-radius: 40px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.04);
}

.circle-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 40px;
    pointer-events: none;
    transition: width 0.08s ease-out;
    background: #5a6a7a;
}

.circle-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    pointer-events: none;
    transition: left 0.08s ease-out, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    background: #1e222b;
    border: 2px solid #4a5568;
    will-change: transform, left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.circle-thumb .thumb-value {
    font-weight: 600;
    font-size: 15px;
    color: #b0bcca;
    letter-spacing: -0.2px;
    font-variant-numeric: tabular-nums;
}

.circle-thumb.active {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: #7a8a9e;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* ----- МЕТКИ ПОД СЛАЙДЕРОМ ----- */
.circle-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: rgba(255,255,255,0.12);
    font-size: 11px;
    font-weight: 500;
    padding: 0 2px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.circle-marks span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.circle-marks span:hover {
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
}

.circle-marks span.active {
    color: #b0bcca;
    font-weight: 700;
}

/* =====================================================
   АДАПТИВ
   ===================================================== */
@media (max-width: 600px) {
    .slider-wrapper {
        padding: 24px 18px 28px;
    }

    .slider-header label {
        font-size: 11px;
    }

    .slider-value {
        font-size: 20px;
        min-width: 44px;
    }

    .circle-track {
        height: 38px;
    }

    .circle-thumb {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .circle-thumb .thumb-value {
        font-size: 13px;
    }

    .circle-marks {
        font-size: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 400px) {
    .circle-thumb {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .circle-thumb .thumb-value {
        font-size: 12px;
    }
}