@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==================== REMOVE BACKGROUND CLEAN STYLES ==================== */

/* ==================== TYPOGRAPHY CLASSES ==================== */

/* Hero Heading */
.heading-hero {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Section Headings */
.heading-section {
    text-shadow: 0 2px 8px rgba(139,92,246,.3);
}

/* ==================== SECTION BACKGROUNDS ==================== */

/* Value Section Background */
.bg-gradient-value {
    background: linear-gradient(180deg, #0f1624 0%, #12192a 50%, #171e2e 100%);
}

/* Demo Section Background */
.bg-gradient-demo {
    background: radial-gradient(ellipse 800px 600px at 50% 20%, rgba(139,92,246,.15), transparent), radial-gradient(ellipse 1000px 800px at 0% 100%, rgba(6,182,212,.12), transparent), linear-gradient(180deg, #0f1624 0%, #12192a 100%);
}

/* Capabilities Section Background */
.bg-gradient-capabilities {
    background: radial-gradient(ellipse 800px 600px at 50% 20%, rgba(139,92,246,.15), transparent), radial-gradient(ellipse 1000px 800px at 0% 100%, rgba(6,182,212,.12), transparent), linear-gradient(180deg, #171e2e 0%, #12192a 50%, #0f1624 100%);
}

/* Tips Section Background */
.bg-gradient-tips {
    background: radial-gradient(ellipse 800px 600px at 50% 20%, rgba(139,92,246,.15), transparent), radial-gradient(ellipse 1000px 800px at 0% 100%, rgba(6,182,212,.12), transparent), linear-gradient(180deg, #0f1624 0%, #12192a 50%, #171e2e 100%);
}

/* FAQ Section Background */
.bg-gradient-faq {
    background: linear-gradient(180deg, #171e2e 0%, #12192a 50%, #0f1624 100%);
}

/* Clean gradient background */
.gradient-bg-remove {
    background: linear-gradient(180deg, #0f1624 0%, #12192a 100%);
    position: relative;
}

/* Simple Upload Zone - Clean & Utilitarian */
.upload-zone-clean {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone-clean:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.6);
}

/* Focus state for accessibility */
.upload-zone-clean:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.6);
    outline-offset: 4px;
    border-color: rgba(139, 92, 246, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

/* Drag & drop active state */
.upload-zone-clean.dragover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.7);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

/* Example Result Card */
.example-card {
    background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(11,18,32,.95) 100%);
    border: 1px solid rgba(139,92,246,.25);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        0 8px 24px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.example-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 16px;
    overflow: hidden;
    background: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.example-label {
    margin-top: 16px;
    text-align: center;
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* CTA Label - Simple & Clean */
.cta-label {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.25));
    border: 1px solid rgba(139,92,246,0.4);
    animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% { 
        opacity: 0.9;
    }
    50% { 
        opacity: 1;
    }
}

/* ==================== ANIMATED DEMO PREVIEW ==================== */

/* Demo Container */
.demo-container {
    width: 100%;
}

.demo-preview {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(11,18,32,.95) 100%);
    border: 1px solid rgba(139,92,246,.25);
    box-shadow: 
        0 8px 24px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.04);
    margin: 0 auto;
}

/* Checkerboard background (transparency pattern) */
.demo-checkerboard {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0;
    z-index: 1;
    animation: fadeCheckerboard 8s ease-in-out infinite;
}

/* Base layer - original image with background */
.demo-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    animation: fadeBackground 8s ease-in-out infinite;
}

/* Overlay layer - PNG without background */
.demo-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 3;
    animation: fadeOverlay 8s ease-in-out infinite;
}

/* Animation: Background fades out */
@keyframes fadeBackground {
    0%, 25% { opacity: 1; }
    40%, 75% { opacity: 0; }
    90%, 100% { opacity: 1; }
}

/* Animation: Overlay (PNG without bg) fades in */
@keyframes fadeOverlay {
    0%, 30% { opacity: 0; }
    45%, 70% { opacity: 1; }
    85%, 100% { opacity: 0; }
}

/* Animation: Checkerboard appears when background is removed */
@keyframes fadeCheckerboard {
    0%, 35% { opacity: 0; }
    45%, 65% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* Feature Cards - kept for other sections */
.feature-card-remove {
    background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(11,18,32,.95) 100%);
    border: 2px solid rgba(139,92,246,.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-remove:hover {
    border-color: rgba(139,92,246,.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

/* ==================== CAPABILITY CARDS - PREMIUM DESIGN ==================== */

/* Base Card */
.capability-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15,23,42,.90) 0%, rgba(11,18,32,.95) 100%);
    border: 2px solid rgba(139,92,246,.2);
    border-radius: 24px;
    padding: 3rem;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover {
    border-color: rgba(139,92,246,.4);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 80px rgba(139,92,246,.08);
}

/* Glow Effect */
.capability-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.capability-card:hover .capability-glow {
    opacity: 1;
}

.capability-glow-primary {
    background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
}

.capability-glow-cyan {
    background: radial-gradient(circle, rgba(6,182,212,.12) 0%, transparent 70%);
}

.capability-glow-green {
    background: radial-gradient(circle, rgba(34,197,94,.12) 0%, transparent 70%);
}

/* Content Wrapper */
.capability-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Icon Wrapper */
.capability-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 40px rgba(139,92,246,.1);
    transition: all 0.3s ease;
}

.capability-card:hover .capability-icon-wrapper {
    box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 60px rgba(139,92,246,.15);
}

.capability-icon-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.capability-icon-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.capability-icon-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Title */
.capability-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Description */
.capability-description {
    flex-grow: 1;
    margin-bottom: 1.75rem;
}

.capability-description p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.capability-description p:last-child {
    margin-bottom: 0;
}

/* Use Cases List */
.capability-usecases {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capability-usecases li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    font-size: 0.938rem;
    line-height: 1.5;
}

.capability-usecases li span {
    color: #cbd5e1;
}

/* Badge */
.capability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.938rem;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    align-self: flex-start;
    margin-top: auto;
}

.capability-badge-primary {
    background: linear-gradient(135deg, rgba(139,92,246,.15) 0%, rgba(139,92,246,.1) 100%);
    color: #a78bfa;
    border: 1.5px solid rgba(139,92,246,.3);
}

.capability-badge-cyan {
    background: linear-gradient(135deg, rgba(6,182,212,.15) 0%, rgba(6,182,212,.1) 100%);
    color: #22d3ee;
    border: 1.5px solid rgba(6,182,212,.3);
}

.capability-badge-green {
    background: linear-gradient(135deg, rgba(34,197,94,.15) 0%, rgba(34,197,94,.1) 100%);
    color: #4ade80;
    border: 1.5px solid rgba(34,197,94,.3);
}

.capability-card:hover .capability-badge {
    transform: scale(1.03);
}

/* Card Color Variants */
.capability-card-primary {
    border-color: rgba(139,92,246,.2);
}

.capability-card-primary:hover {
    border-color: rgba(139,92,246,.4);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 80px rgba(139,92,246,.1);
}

.capability-card-cyan {
    border-color: rgba(6,182,212,.2);
}

.capability-card-cyan:hover {
    border-color: rgba(6,182,212,.4);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 80px rgba(6,182,212,.1);
}

.capability-card-green {
    border-color: rgba(34,197,94,.2);
}

.capability-card-green:hover {
    border-color: rgba(34,197,94,.4);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 80px rgba(34,197,94,.1);
}

/* ==================== CAPABILITY CARDS RESPONSIVE ==================== */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .capability-card {
        padding: 2.5rem;
        min-height: 580px;
    }
    
    .capability-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .capability-title {
        font-size: 1.625rem;
    }
    
    .capability-description p {
        font-size: 0.938rem;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .capability-card {
        padding: 2rem;
        min-height: auto;
    }
    
    .capability-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 1.5rem;
    }
    
    .capability-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .capability-description {
        margin-bottom: 1.5rem;
    }
    
    .capability-description p {
        font-size: 0.938rem;
        margin-bottom: 0.875rem;
    }
    
    .capability-usecases {
        margin-bottom: 1.5rem;
        gap: 0.625rem;
    }
    
    .capability-usecases li {
        font-size: 0.875rem;
    }
    
    .capability-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Small Mobile (<480px) */
@media (max-width: 479px) {
    .capability-card {
        padding: 1.75rem;
    }
    
    .capability-icon-wrapper {
        width: 52px;
        height: 52px;
    }
    
    .capability-title {
        font-size: 1.375rem;
    }
    
    .capability-description p {
        font-size: 0.875rem;
    }
    
    .capability-usecases li {
        font-size: 0.813rem;
    }
}

/* ==================== VALUE CARDS - Premium Design ==================== */

/* Base Value Card */
.value-card {
    background: linear-gradient(135deg, rgba(15,23,42,.9) 0%, rgba(11,18,32,.95) 100%);
    border: 1px solid rgba(139,92,246,.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,.4);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139,92,246,.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.value-card:hover .card-glow {
    opacity: 1;
}

/* Icon Wrapper - Hover Animation */
.value-card .icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Unique Card Gradients */
.card-speed {
    background: linear-gradient(135deg, rgba(245,158,11,.03) 0%, rgba(15,23,42,.9) 50%, rgba(11,18,32,.95) 100%);
    border-color: rgba(245,158,11,.15);
}

.card-speed:hover {
    border-color: rgba(245,158,11,.35);
    box-shadow: 0 12px 40px rgba(245,158,11,.15), 0 0 60px rgba(245,158,11,.08);
}

.card-speed .card-glow {
    background: radial-gradient(circle, rgba(245,158,11,.2) 0%, transparent 70%);
}

.card-easy {
    background: linear-gradient(135deg, rgba(6,182,212,.03) 0%, rgba(15,23,42,.9) 50%, rgba(11,18,32,.95) 100%);
    border-color: rgba(6,182,212,.15);
}

.card-easy:hover {
    border-color: rgba(6,182,212,.35);
    box-shadow: 0 12px 40px rgba(6,182,212,.15), 0 0 60px rgba(6,182,212,.08);
}

.card-easy .card-glow {
    background: radial-gradient(circle, rgba(6,182,212,.2) 0%, transparent 70%);
}

.card-focus {
    background: linear-gradient(135deg, rgba(139,92,246,.03) 0%, rgba(15,23,42,.9) 50%, rgba(11,18,32,.95) 100%);
    border-color: rgba(139,92,246,.15);
}

.card-focus:hover {
    border-color: rgba(139,92,246,.35);
    box-shadow: 0 12px 40px rgba(139,92,246,.15), 0 0 60px rgba(139,92,246,.08);
}

.card-focus .card-glow {
    background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%);
}

.card-creative {
    background: linear-gradient(135deg, rgba(236,72,153,.03) 0%, rgba(15,23,42,.9) 50%, rgba(11,18,32,.95) 100%);
    border-color: rgba(236,72,153,.15);
}

.card-creative:hover {
    border-color: rgba(236,72,153,.35);
    box-shadow: 0 12px 40px rgba(236,72,153,.15), 0 0 60px rgba(236,72,153,.08);
}

.card-creative .card-glow {
    background: radial-gradient(circle, rgba(236,72,153,.2) 0%, transparent 70%);
}

/* ==================== VALUE BADGES ==================== */

.value-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.value-card:hover .value-badge {
    transform: scale(1.05);
}

.badge-speed {
    background: linear-gradient(135deg, rgba(245,158,11,.15) 0%, rgba(251,146,60,.1) 100%);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,.25);
    box-shadow: 0 0 20px rgba(245,158,11,.1);
}

.card-speed:hover .badge-speed {
    background: linear-gradient(135deg, rgba(245,158,11,.25) 0%, rgba(251,146,60,.2) 100%);
    border-color: rgba(245,158,11,.4);
    box-shadow: 0 0 25px rgba(245,158,11,.2);
}

.badge-easy {
    background: linear-gradient(135deg, rgba(6,182,212,.15) 0%, rgba(34,211,238,.1) 100%);
    color: #22d3ee;
    border: 1px solid rgba(6,182,212,.25);
    box-shadow: 0 0 20px rgba(6,182,212,.1);
}

.card-easy:hover .badge-easy {
    background: linear-gradient(135deg, rgba(6,182,212,.25) 0%, rgba(34,211,238,.2) 100%);
    border-color: rgba(6,182,212,.4);
    box-shadow: 0 0 25px rgba(6,182,212,.2);
}

.badge-focus {
    background: linear-gradient(135deg, rgba(139,92,246,.15) 0%, rgba(167,139,250,.1) 100%);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,.25);
    box-shadow: 0 0 20px rgba(139,92,246,.1);
}

.card-focus:hover .badge-focus {
    background: linear-gradient(135deg, rgba(139,92,246,.25) 0%, rgba(167,139,250,.2) 100%);
    border-color: rgba(139,92,246,.4);
    box-shadow: 0 0 25px rgba(139,92,246,.2);
}

.badge-creative {
    background: linear-gradient(135deg, rgba(236,72,153,.15) 0%, rgba(244,114,182,.1) 100%);
    color: #f472b6;
    border: 1px solid rgba(236,72,153,.25);
    box-shadow: 0 0 20px rgba(236,72,153,.1);
}

.card-creative:hover .badge-creative {
    background: linear-gradient(135deg, rgba(236,72,153,.25) 0%, rgba(244,114,182,.2) 100%);
    border-color: rgba(236,72,153,.4);
    box-shadow: 0 0 25px rgba(236,72,153,.2);
}

/* ========================================
   АДАПТИВНОСТЬ ДЛЯ РАЗНЫХ УСТРОЙСТВ
   ======================================== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .max-w-container {
        max-width: 1400px;
    }
}

/* Medium Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .max-w-container {
        max-width: 1200px;
    }
    
    h1.text-3xl,
    h1.sm\:text-4xl,
    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 3.5rem !important;
    }
    
    h2.text-2xl,
    h2.sm\:text-3xl,
    h2.md\:text-4xl,
    h2.lg\:text-5xl {
        font-size: 2.5rem !important;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .max-w-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    h1.text-3xl,
    h1.sm\:text-4xl,
    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 3rem !important;
    }
    
    h2.text-2xl,
    h2.sm\:text-3xl,
    h2.md\:text-4xl,
    h2.lg\:text-5xl {
        font-size: 2rem !important;
    }
    
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .upload-zone-clean {
        padding: 3rem 2rem;
    }
}

/* Mobile Landscape & Small Tablets (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .max-w-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    h1.text-3xl,
    h1.sm\:text-4xl,
    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    h2.text-2xl,
    h2.sm\:text-3xl,
    h2.md\:text-4xl,
    h2.lg\:text-5xl {
        font-size: 1.75rem !important;
    }
    
    .upload-zone-clean {
        padding: 2.5rem 1.5rem;
    }
    
    .upload-zone-clean button {
        font-size: 0.938rem;
        padding: 0.875rem 1.75rem;
    }
    
    .grid.sm\:grid-cols-2,
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-3,
    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .cta-bubble {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

/* Large Mobile (426px - 480px) */
@media (min-width: 426px) and (max-width: 480px) {
    .max-w-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    h1.text-3xl,
    h1.sm\:text-4xl,
    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2.text-2xl,
    h2.sm\:text-3xl,
    h2.md\:text-4xl,
    h2.lg\:text-5xl {
        font-size: 1.625rem !important;
    }
    
    button,
    .btn {
        font-size: 0.875rem;
        padding: 0.813rem 1.5rem;
    }
    
    .upload-zone-clean {
        padding: 2.25rem 1.25rem;
    }
    
    .upload-zone-clean button {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
        max-width: 100%;
    }
    
    .grid.sm\:grid-cols-2,
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-3,
    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .py-12,
    .sm\:py-16,
    .md\:py-20 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* Standard Mobile (376px - 425px) */
@media (min-width: 376px) and (max-width: 425px) {
    .max-w-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1.text-3xl,
    h1.sm\:text-4xl,
    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    h2.text-2xl,
    h2.sm\:text-3xl,
    h2.md\:text-4xl,
    h2.lg\:text-5xl {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    p.text-sm,
    p.sm\:text-base,
    p.md\:text-lg {
        font-size: 0.938rem !important;
    }
    
    button,
    .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
    
    .upload-zone-clean {
        padding: 2rem 1.25rem;
    }
    
    .upload-zone-clean svg {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .upload-zone-clean button {
        font-size: 0.813rem;
        padding: 0.688rem 1.25rem;
        max-width: 100%;
    }
    
    .cta-bubble {
        font-size: 0.625rem !important;
        padding: 4px 10px !important;
    }
    
    .grid.sm\:grid-cols-2,
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-3,
    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .gap-6,
    .sm\:gap-8 {
        gap: 2rem !important;
    }
}

/* Small Mobile (321px - 375px) */
@media (min-width: 321px) and (max-width: 375px) {
    body {
        font-size: 14px;
    }

    .max-w-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    h1,
    h1.text-3xl,
    h1.sm\:text-4xl {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        font-weight: 800 !important;
    }

    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 1.875rem !important;
        font-weight: 800 !important;
    }

    p.text-sm,
    p.sm\:text-base,
    p.md\:text-lg {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }

    button,
    .btn {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    .upload-zone-clean {
        padding: 2rem 1rem !important;
    }

    .upload-zone-clean svg {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }

    .upload-zone-clean p.text-xl {
        font-size: 0.875rem;
    }

    .upload-zone-clean p.text-base {
        font-size: 0.75rem;
        margin-bottom: 1rem !important;
    }

    .upload-zone-clean button {
        font-size: 0.75rem !important;
        padding: 0.625rem 1rem !important;
        font-weight: 600 !important;
        width: 100% !important;
        max-width: 280px !important;
    }

    .cta-bubble {
        font-size: 0.625rem;
        padding: 5px 10px;
    }

    .cta-bubble svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    h2.text-2xl,
    h2.sm\:text-3xl,
    h2.md\:text-4xl,
    h2.lg\:text-5xl {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .py-12,
    .sm\:py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .md\:py-20 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .lg\:py-24,
    .xl\:py-28 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .gap-6,
    .sm\:gap-8 {
        gap: 2rem !important;
    }

    .gap-8,
    .sm\:gap-10 {
        gap: 1.5rem !important;
    }

    .rounded-3xl {
        border-radius: 1.25rem !important;
    }

    .rounded-2xl {
        border-radius: 1rem !important;
    }

    .grid.sm\:grid-cols-2,
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-3,
    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Very Small Mobile (320px and below) - Based on 375px with minimal adjustments */
@media (max-width: 320px) {
    /* Use 321-375px styles as base, only minor tweaks */
    
    h1.text-3xl,
    h1.sm\:text-4xl,
    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    h2.text-2xl,
    h2.sm\:text-3xl,
    h2.md\:text-4xl,
    h2.lg\:text-5xl {
        font-size: 1.375rem !important;
    }

    p.text-sm,
    p.sm\:text-base,
    p.md\:text-lg {
        font-size: 0.813rem !important;
    }

    .max-w-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    button,
    .btn {
        padding: 0.625rem 1rem !important;
        font-size: 0.75rem !important;
    }

    .cta-bubble {
        font-size: 0.563rem;
        padding: 4px 8px;
    }

    .cta-bubble svg {
        width: 1rem;
        height: 1rem;
    }

    .comparison-divider {
        width: 32px !important;
        height: 32px !important;
    }

    .comparison-divider svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    .py-12 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .sm\:py-16,
    .md\:py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .gap-6 {
        gap: 1.5rem !important;
    }

    .gap-8,
    .sm\:gap-8 {
        gap: 1.25rem !important;
    }

    .rounded-3xl {
        border-radius: 1rem !important;
    }

    .rounded-2xl {
        border-radius: 0.875rem !important;
    }

    .rounded-xl {
        border-radius: 0.75rem !important;
    }
    
    /* FIX: Thumbnail images must fill their container */
    .rb-demo-thumb {
        overflow: hidden !important;
    }
    
    .rb-demo-thumb img {
        width: 100% !important;
        height: 100% !important;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
}

/* ===== ОБЩИЕ АДАПТИВНЫЕ УЛУЧШЕНИЯ ДЛЯ ВСЕХ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 767px) {
    .lg\:grid-cols-2,
    .lg\:grid-cols-3,
    .lg\:grid-cols-\[auto_1\.6fr_0\.65fr\] {
        grid-template-columns: 1fr !important;
    }

    .comparison-divider {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .aspect-\[4\/5\] {
        aspect-ratio: 4/5;
    }

    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Hide left CTA bubble on mobile */
    .grid.lg\:grid-cols-\[auto_1\.6fr_0\.65fr\] > div:first-child {
        display: none;
    }

    /* Adjust grid to 2 columns on mobile */
    .grid.lg\:grid-cols-\[auto_1\.6fr_0\.65fr\] {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== УЛУЧШЕНИЯ ДЛЯ ПЛАНШЕТОВ В LANDSCAPE РЕЖИМЕ ===== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    h1.text-3xl,
    h1.sm\:text-4xl,
    h1.md\:text-5xl,
    h1.lg\:text-6xl {
        font-size: 3.25rem !important;
    }

    .py-12,
    .sm\:py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .md\:py-20 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .upload-zone-clean {
        padding: 2rem 1.5rem;
    }
}

/* ==================== INTERACTIVE BEFORE/AFTER DEMO ==================== */

/* Demo Container */
#rbDemo {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs */
.rb-demo-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.rb-demo-tab {
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.rb-demo-tab:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.rb-demo-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.rb-demo-tab-icon {
    font-size: 18px;
    line-height: 1;
}

.rb-demo-tab-label {
    line-height: 1;
}

/* Content Area */
.rb-demo-content {
    display: grid;
    grid-template-columns: 186px 1fr 186px;
    gap: 32px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Mini Previews (Thumbnails) */
.rb-demo-thumbs {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 0;
    justify-content: center;
}

.rb-demo-thumb {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-demo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rb-demo-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 92, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.rb-demo-thumb-overlay svg {
    width: 32px;
    height: 32px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rb-demo-thumb:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
}

.rb-demo-thumb:hover .rb-demo-thumb-overlay {
    opacity: 0.3;
}

.rb-demo-thumb.active {
    border-color: #8b5cf6;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3), 0 8px 16px rgba(139, 92, 246, 0.3);
}

.rb-demo-thumb.active .rb-demo-thumb-overlay {
    opacity: 1;
    background: transparent;
}

.rb-demo-thumb.active .rb-demo-thumb-overlay svg {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #8b5cf6;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

/* Main Preview */
.rb-demo-preview {
    position: relative;
    width: 100%;
}

.rb-demo-slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/5;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 18, 32, 0.95) 100%);
    border: 2px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: ew-resize;
    user-select: none;
}

.rb-demo-slider-container.dragging {
    cursor: grabbing;
}

/* Before Image */
.rb-demo-image-before {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rb-demo-image-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s ease;
}

/* After Image */
.rb-demo-image-after {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.rb-demo-checkerboard {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.rb-demo-image-after img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
    transition: opacity 0.15s ease;
}

/* Slider Line */
.rb-demo-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 1));
    z-index: 10;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(139, 92, 246, 0.5);
}

.rb-demo-slider-line::before,
.rb-demo-slider-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rb-demo-slider-line::before {
    top: 0;
}

.rb-demo-slider-line::after {
    bottom: 0;
}

/* Slider Handle */
.rb-demo-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(139, 92, 246, 0.5),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
    cursor: grab;
    transition: all 0.3s ease;
}

.rb-demo-slider-container.dragging .rb-demo-slider-handle {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.3),
        0 12px 32px rgba(139, 92, 246, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

.rb-demo-slider-handle svg {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Labels - positioned inside at the top */
.rb-demo-labels {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 15;
    pointer-events: none;
}

.rb-demo-label {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.rb-demo-label-before {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.rb-demo-label-after {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(124, 58, 237, 0.9));
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-demo-content {
        grid-template-columns: 160px 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    /* Hide right thumbs on tablet */
    .rb-demo-thumbs-right {
        display: none;
    }
    
    .rb-demo-thumbs {
        gap: 20px;
        padding: 30px 0;
    }
    
    .rb-demo-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .rb-demo-slider-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    #rbDemo {
        display: flex;
        flex-direction: column;
    }
    
    /* Content area first */
    .rb-demo-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        order: 1;
    }
    
    /* Preview goes first */
    .rb-demo-preview {
        order: 1;
    }
    
    /* Combine all thumbs into 4×1 grid (4 in a row) */
    .rb-demo-thumbs-left {
        order: 2;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        padding: 0;
    }
    
    /* Hide right thumbs, show only left (they contain all 4) */
    .rb-demo-thumbs-right {
        display: none;
    }
    
    .rb-demo-thumb {
        width: 100%;
        aspect-ratio: 3/4;
    }
    
    .rb-demo-thumb-overlay svg {
        width: 20px;
        height: 20px;
    }
    
    /* Tabs go to the BOTTOM on mobile - 2x2 grid */
    .rb-demo-tabs {
        order: 2;
        margin-top: 20px;
        margin-bottom: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    /* Третья кнопка - центрируем под двумя верхними */
    .rb-demo-tabs .rb-demo-tab:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .rb-demo-tab {
        padding: 12px 16px;
        font-size: 13px;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }
    
    .rb-demo-tab-icon {
        font-size: 18px;
    }
    
    .rb-demo-tab-label {
        display: block;
        font-size: 13px;
        line-height: 1.2;
    }
    
    .rb-demo-slider-container {
        max-width: 100%;
        aspect-ratio: 4/5;
    }
    
    .rb-demo-slider-handle {
        width: 40px;
        height: 40px;
    }
    
    .rb-demo-slider-handle svg {
        width: 20px;
        height: 20px;
    }
    
    .rb-demo-labels {
        top: 12px;
        padding: 0 12px;
    }
    
    .rb-demo-label {
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
    .rb-demo-tabs {
        gap: 6px;
    }
    
    .rb-demo-tab {
        padding: 8px 10px;
        font-size: 11px;
        gap: 5px;
    }
    
    .rb-demo-tab-icon {
        font-size: 14px;
    }
    
    .rb-demo-tab-label {
        font-size: 11px;
    }
    
    .rb-demo-thumbs-left {
        gap: 8px;
    }
    
    .rb-demo-thumb img {
        object-fit: cover;
        object-position: center;
    }
    
    .rb-demo-slider-container {
        border-radius: 16px;
    }
    
    .rb-demo-slider-handle {
        width: 36px;
        height: 36px;
    }
    
    .rb-demo-slider-handle svg {
        width: 18px;
        height: 18px;
    }
    
    .rb-demo-labels {
        top: 10px;
        padding: 0 10px;
    }
    
    .rb-demo-label {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .cta-bubble {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    section {
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ==================== AI TIPS BLOG SECTION - Premium Design ==================== */

/* AI-Рекомендации - Премиальный AI-центр */
#removeBgTipsSection .tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 48px;
  background: 
    linear-gradient(135deg, rgba(15,23,42,.75) 0%, rgba(11,18,32,.85) 100%),
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.05), transparent 40%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.04), transparent 40%);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 28px;
  position: relative;
  overflow: visible;
  box-shadow: 
    0 0 0 1px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(139, 92, 246, 0.1),
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(139, 92, 246, 0.15);
}

/* Мощный градиентный glow */
#removeBgTipsSection .tips-grid::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.25) 0%, 
    rgba(99, 102, 241, 0.15) 20%,
    rgba(6, 182, 212, 0.15) 40%,
    rgba(99, 102, 241, 0.15) 60%,
    rgba(6, 182, 212, 0.15) 80%,
    rgba(139, 92, 246, 0.25) 100%
  );
  border-radius: 28px;
  opacity: 0.8;
  z-index: -1;
  filter: blur(16px);
  animation: borderGlow 8s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.8; filter: blur(16px); }
  50% { opacity: 1; filter: blur(20px); }
}

/* Внутренние градиенты и технологичная сетка */
#removeBgTipsSection .tips-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.08), transparent 50%),
    radial-gradient(circle at center, transparent 30%, rgba(139, 92, 246, 0.03) 70%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  border-radius: 28px;
  pointer-events: none;
  opacity: 0.7;
}

/* Responsive Grid */
@media (min-width: 768px) {
  #removeBgTipsSection .tips-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  #removeBgTipsSection .tips-grid { 
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  #removeBgTipsSection .tips-grid { 
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
  }
  
  #removeBgTipsSection .tips-grid::before {
    border-radius: 20px;
  }
  
  #removeBgTipsSection .tips-grid::after {
    border-radius: 20px;
  }
}

/* Premium AI Card - Усиленная версия */
#removeBgTipsSection .tip-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(11,18,32,.95) 100%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Внутренний градиент */
#removeBgTipsSection .tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Угловой декор */
#removeBgTipsSection .tip-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: 
    linear-gradient(225deg, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.05), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#removeBgTipsSection .tip-card:hover {
  border-color: rgba(139,92,246, 0.6);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 16px 48px rgba(139, 92, 246, 0.25),
    0 0 60px rgba(139, 92, 246, 0.15),
    0 0 0 1px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#removeBgTipsSection .tip-card:hover::before {
  opacity: 1;
}

#removeBgTipsSection .tip-card:hover::after {
  opacity: 1;
}

/* Image Container with Glow */
#removeBgTipsSection .tip-card-image {
  position: relative;
  overflow: hidden;
}

#removeBgTipsSection .tip-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

#removeBgTipsSection .tip-card:hover img {
  transform: scale(1.05);
}

/* Image Overlay */
#removeBgTipsSection .tip-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(11,18,32,0.95), transparent);
  pointer-events: none;
}

/* Card Content */
#removeBgTipsSection .tip-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* AI Badge with Gradient */
#removeBgTipsSection .tip-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#removeBgTipsSection .tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
  transition: all 0.3s ease;
}

#removeBgTipsSection .tip-badge::before {
  content: '⚡';
  font-size: 12px;
}

#removeBgTipsSection .tip-card:hover .tip-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Title */
#removeBgTipsSection .tip-title {
  margin: 0;
}

#removeBgTipsSection .tip-title a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#removeBgTipsSection .tip-title a:hover {
  color: #a78bfa;
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* Excerpt */
#removeBgTipsSection .tip-excerpt {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 1;
}

/* CTA Button */
#removeBgTipsSection .tip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  color: #a78bfa;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

#removeBgTipsSection .tip-link:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(139, 92, 246, 0.6);
  color: #e9d5ff;
  gap: 12px;
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

#removeBgTipsSection .tip-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

#removeBgTipsSection .tip-link:hover svg {
  transform: translateX(3px);
}

/* Loading State */
#removeBgTipsSection .tip-card.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  #removeBgTipsSection .tip-card img {
    height: 160px;
  }
  
  #removeBgTipsSection .tip-card-content {
    padding: 20px;
  }
  
  #removeBgTipsSection .tip-title a {
    font-size: 18px;
  }
  
  #removeBgTipsSection .tip-excerpt {
    font-size: 14px;
  }
  
  #removeBgTipsSection .tip-link {
    padding: 10px 20px;
    font-size: 14px;
  }
}
