/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --secondary: #FF6584;
    --dark: #1A1A2E;
    --dark-light: #2D2D44;
    --gray: #6B6B8A;
    --light: #F5F5FF;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-animation .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.bg-animation .orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-animation .orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.bg-animation .orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: #00D4FF;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HERO ===== */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 0 1rem;
    position: relative;
    min-height: 0;
}

/* ===== HERO BADGE (FIXED) ===== */
.hero-badge {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: inline-block;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    margin: 0;
    font-weight: 500;
    min-width: 640px;
    display: flex;
    padding: 0 10;
}

/* Стили для подсказки */
.hero-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% - 80px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0px 0px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}



.hero-badge .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}


/* В style.css */
#loginBadge {
    position: relative;
}

#loginBadge:hover::after {
    content: "Войти в аккаунт";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1000;
}



/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: #00E676;
    color: var(--dark);
}

.btn-success:hover {
    background: #00C853;
    transform: translateY(-2px);
}

.btn-danger {
    background: #FF6584;
    color: var(--white);
}

.btn-danger:hover {
    background: #e55575;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* ===== USER PROFILE ===== */
.user-profile {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 62%;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 0.1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.5s ease;
    will-change: transform, opacity;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.user-profile .info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-profile .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.user-profile .details .name {
    font-size: 0.8rem;
    font-weight: 600;
}

.user-profile .details .user-id {
    font-size: 0.8rem;
    color: var(--gray);
    font-family: 'Fira Code', monospace;
}

.user-profile .actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 0rem 0;
    max-width: 100%;
    min-width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== CLIENTS GRID ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.client-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.client-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.client-card .badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary-light);
    padding: 0.15rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.client-card .features {
    list-style: none;
    margin: 1rem 0;
}

.client-card .features li {
    padding: 0.3rem 0;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-card .features li::before {
    content: "✓";
    color: #00E676;
    font-weight: bold;
}

.client-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== MOBILE GRID ===== */
.mobile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mobile-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.mobile-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.mobile-links .btn {
    width: 100%;
    justify-content: center;
}

/* ===== PUSH BOX ===== */
.push-box {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 101, 132, 0.05));
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.push-box::before {
    content: "🔐";
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 8rem;
    opacity: 0.05;
}

.push-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.push-box .highlight {
    background: rgba(0, 230, 118, 0.1);
    border-left: 3px solid #00E676;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.push-box ul {
    list-style: none;
    margin: 1rem 0;
}

.push-box ul li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.push-box ul li::before {
    content: "✅";
}

.push-box code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

/* ===== COMPARE ===== */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.compare-col {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.compare-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.compare-col ul {
    list-style: none;
}

.compare-col ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-col ul li:last-child {
    border-bottom: none;
}

/* ===== INSTRUCTION STYLES ===== */
.instruction-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.instruction-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.instruction-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.client-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.client-box:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.client-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-box ol {
    padding-left: 1.5rem;
    color: var(--gray);
    margin: 0;
}

.client-box ol li {
    padding: 0.3rem 0;
    line-height: 1.6;
}

.client-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-box ul li {
    padding: 0.3rem 0;
    color: var(--gray);
}

.client-box ul li a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.client-box ul li a:hover {
    color: var(--white);
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 0.5rem 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #00E676;
}

.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #FF9800;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.warning-box strong {
    color: #FF9800;
    display: block;
    margin-bottom: 0.3rem;
}

.warning-box p {
    color: var(--gray);
    margin: 0.2rem 0;
}

.tip-box {
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.1);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.tip-box ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.tip-box ul li {
    padding: 0.3rem 0;
    color: var(--gray);
}

.tip-box ul li::before {
    content: "✅ ";
}

.troubleshoot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1rem 0;
}

.troubleshoot-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: var(--transition);
}

.troubleshoot-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.troubleshoot-item strong {
    color: var(--white);
    display: block;
    margin-bottom: 0.3rem;
}

.troubleshoot-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
}

.troubleshoot-item code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-light);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.back-button:hover {
    color: var(--primary-light);
    transform: translateX(-4px);
}

.download-link {
    color: var(--primary-light) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.download-link:hover {
    color: var(--white) !important;
    text-decoration: underline;
}

.badge-alpha {
    display: inline-block;
    background: rgba(255, 152, 0, 0.1);
    padding: 0.1rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    color: #FF9800;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== REG BANNER ===== */
.reg-banner {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    color: #00E676;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: var(--transition);
}

.reg-banner:hover {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.3);
}

.reg-banner a {
    color: var(--primary-light);
    text-decoration: underline;
    transition: var(--transition);
}

.reg-banner a:hover {
    color: var(--white);
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    pointer-events: all;
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--white);
}

.modal h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.modal .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.modal .status-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.modal .status-msg.error {
    display: block;
    background: rgba(255, 101, 132, 0.15);
    color: #FF6584;
    border: 1px solid rgba(255, 101, 132, 0.2);
}

.modal .status-msg.success {
    display: block;
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.modal .status-msg.info {
    display: block;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.modal .status-msg.warn {
    display: block;
    background: #FFC424;
    color: black;
    border: 1px solid rgba(255, 196, 36, 0.2);
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select option {
    background: var(--dark);
    color: var(--white);
}

.reg-step {
    display: block;
}

.reg-step[style*="display:none"],
.reg-step[style*="display: none"] {
    display: none !important;
}

/* ===== FOOTER (FIXED & TRANSPARENT) ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.1rem 2rem;
    margin: 0;
    text-align: center;
    box-shadow: none;
    pointer-events: none;
}

.footer a,
.footer p,
.footer .tech-stack span {
    pointer-events: auto;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0.2rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer a {
    color: var(--primary-light) !important;
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-light);
    opacity: 0.7;
    transition: var(--transition);
}

.footer a:hover {
    opacity: 1;
}

.footer .tech-stack {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.footer .tech-stack span {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .modal { padding: 1.5rem; }
    .compare-grid { grid-template-columns: 1fr; }
    .push-box { padding: 1.5rem; }
    .client-box { padding: 1rem; }
    .code-block { font-size: 0.75rem; padding: 0.8rem; }
    .instruction-container { padding: 1rem; }
    .user-profile { flex-direction: column; align-items: flex-start; padding-bottom:0.1rem; }
    .user-profile .actions { width: 100%; }
    .user-profile .actions .btn { flex: 1; justify-content: center; }
    
    .hero-badge {
        top: 10px;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        max-width: 90%;
    }
    
    .container {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .footer {
        padding: 0.6rem 1rem;
    }
    
    .footer p {
        font-size: 0.75rem !important;
    }
    
    .reg-banner {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .container { padding: 1rem; padding-top: 65px; padding-bottom: 65px; }
    .hero { padding: 2rem 0; }
    .clients-grid { grid-template-columns: 1fr; }
    .mobile-grid { grid-template-columns: 1fr; max-width: 100%; }
    .push-box { padding: 1rem; }
    .client-box ol { padding-left: 1.2rem; font-size: 0.9rem; }
    .container { padding-top: 6rem; }
    .section { padding-top: 0rem; padding-bottom:0rem; margin-top:0px; margin-bottom:0px;}
    .btn { display: none;  }    
    .hero-badge {
        top: 8px;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
        white-space: normal;
        max-width: 90%;
        text-align: center;
    }
    
    .footer {
        padding: 0.5rem 0.8rem;
    }
    
    .footer p {
        font-size: 0.65rem !important;
    }
    
    .reg-banner {
        padding: 8px 12px;
        font-size: 0.75rem;
        margin: 10px auto;
    }
}

/* В style.css */
/*.btn-success {
    background: #28a745;
    color: white;
}
.btn-success:hover {
    background: #218838;
}*/

.btn-warning {
    background: #ffc107;
    color: #212529;
}
.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}
.btn-danger:hover {
    background: #c82333;
}

.btn-info {
    background: #17a2b8;
    color: white;
}
.btn-info:hover {
    background: #138496;
}








/* ============================================================
   MOBILE ADAPTATION — v2.0
   ============================================================ */

/* ===== МОБИЛЬНАЯ НАВИГАЦИЯ ===== */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top:10;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
    transition: var(--transition);
    touch-action: manipulation;
    visibility: hidden;
}

.mobile-nav-toggle:active {
    transform: scale(0.9);
}

.mobile-nav-toggle.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9998;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
}

.mobile-nav-overlay.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-nav-overlay .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.2rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.95rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
}

.mobile-nav-overlay .nav-item:hover,
.mobile-nav-overlay .nav-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-overlay .nav-item .icon {
    font-size: 1.2rem;
}

.mobile-nav-overlay .nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.3rem 0.5rem;
}

/* ===== УВЕЛИЧЕННЫЕ ТАРГЕТЫ ДЛЯ ПАЛЬЦЕВ ===== */
.btn {
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
}

.btn-sm {
    min-height: 40px;
    min-width: 40px;
}

.form-group input,
.form-group textarea,
.form-group select {
    min-height: 48px;
    font-size: 16px !important; /* Предотвращает зум на iOS */
}

.modal-close {
    min-width: 44px;
    min-height: 44px;
}

/* ===== УЛУЧШЕННЫЙ СКРОЛЛ ===== */
.modal {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1700px){
    .user-profile {
        width: 70%;
        max-width: calc(100% - 2rem);
        padding: 0.6rem 1rem;
        top: 12px;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 1500px){
    .user-profile {
        width: 80%;
        max-width: calc(100% - 2rem);
        padding: 0.6rem 1rem;
        top: 12px;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 1250px){
    .user-profile {
        width: 100%;
        max-width: calc(100% - 2rem);
        padding: 0.6rem 1rem;
        top: 12px;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px){
    .user-profile {
        width: 100%;
        max-width: calc(100% - 2rem);
        padding: 0.6rem 1rem;
        top: 12px;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ===== АДАПТАЦИЯ HERO-BADGE ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .hero-badge{
        visibility: hidden;
    }    
    .mobile-nav-toggle {
        visibility: visible;
    }
    .hero-badge {
        top: 12px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        min-width: unset;
        width: auto;
        max-width: calc(100% - 2rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-badge .dot {
        width: 6px;
        height: 6px;
        margin-right: 6px;
    }

    /* Скрываем подсказку на мобильных */
    .hero-badge::after {
        display: none;
    }

    /* Показываем кнопку навигации */
    .mobile-nav-toggle {
        display: flex;
    }

    /* Адаптация кнопок */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Убираем фиксированную ширину у user-profile */
    .user-profile {
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        padding: 0.6rem 1rem;
        top: 12px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .user-profile .info {
        flex: 1;
        min-width: 120px;
    }

    .user-profile .actions {
        width: auto;
        gap: 0.4rem;
    }

    .user-profile .actions .btn {
        flex: none;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
        min-height: 32px;
    }

    /* Адаптация клиентских карточек */
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .client-card {
        padding: 1.2rem;
    }

    .client-card .btn {
        min-height: 44px;
    }

    /* Модальные окна */
    .modal {
        padding: 1.5rem;
        max-width: 100%;
        width: 92%;
        max-height: 85vh;
        border-radius: 16px;
    }

    .modal h2 {
        font-size: 1.3rem;
    }

    /* Формы */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
        padding: 0.6rem 0.8rem;
    }

    /* Сравнение */
    .compare-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Инструкции */
    .instruction-container {
        padding: 1rem 0.5rem;
    }

    .client-box {
        padding: 1rem;
    }

    .client-box ol {
        padding-left: 1.2rem;
    }

    .code-block {
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-all;
    }

    /* Push box */
    .push-box {
        padding: 1rem;
    }

    .push-box h3 {
        font-size: 1.3rem;
    }

    .push-box::before {
        font-size: 4rem;
        right: -10px;
        top: -10px;
    }

    /* Мобильные карточки */
    .mobile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .mobile-card {
        padding: 1rem;
    }

    .mobile-icon {
        font-size: 2rem;
    }

    .mobile-card h4 {
        font-size: 1rem;
    }

    /* Troubleshoot */
    .troubleshoot-item {
        padding: 0.8rem 1rem;
    }

    /* Кнопка назад */
    .back-button {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 400px) ===== */
@media (max-width: 400px) {
    .hero-badge{
        visibility: hidden;
    }
    .mobile-nav-toggle {
        visibility: visible;
    }
        
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .mobile-grid {
        grid-template-columns: 1fr;
    }

    .user-profile {
        padding: 0.4rem 0.8rem;
    }

    .user-profile .details .name {
        font-size: 0.7rem;
    }

    .user-profile .details .user-id {
        font-size: 0.65rem;
    }

    .user-profile .actions .btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
        min-height: 28px;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        top: 8px;
    }

    .modal {
        padding: 1rem;
        width: 95%;
    }

    .modal h2 {
        font-size: 1.1rem;
    }

    .modal p {
        font-size: 0.85rem;
    }

    .container {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .footer {
        padding: 0.3rem 0.5rem;
    }

    .footer p {
        font-size: 0.6rem !important;
    }

    .reg-banner {
        font-size: 0.7rem;
        padding: 6px 10px;
        margin: 8px auto;
    }

    .mobile-nav-toggle {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }

    .mobile-nav-overlay {
        bottom: 70px;
        right: 15px;
        min-width: 160px;
    }

    .mobile-nav-overlay .nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== iPad / ПЛАНШЕТЫ ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-nav-toggle {
        visibility: visible;
    }    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .container {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* ===== ПОДДЕРЖКА SAFARI ===== */
@supports (-webkit-touch-callout: none) {
    .modal {
        max-height: 80vh;
    }
}

/* ===== ПРЕДОТВРАЩЕНИЕ ЗУМА ПРИ ФОКУСЕ НА iOS ===== */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        visibility: visible;
    }    
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ===== ПЛАВНАЯ ПРОКРУТКА ДЛЯ МОДАЛОК ===== */
.modal-overlay.active {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== УЛУЧШЕННЫЙ ВИД КНОПОК НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .btn {
        border-radius: 12px;
        padding: 0.7rem 1.2rem;
    }

    .btn-outline {
        border-width: 1.5px;
    }
}

/* ===== TOAST УВЕДОМЛЕНИЯ (опционально) ===== */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    color: var(--white);
    font-size: 0.9rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}

.toast-container.hidden {
    display: none;
}

