/* ============================================
   GENERVIS 2026 - Ultra Modern Design
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0caf3a;
    --primary-dark: #0d8a2e;
    --primary-light: #1d9100;
    --secondary: #212936;
    --accent: #0056d3;
    --gradient-1: linear-gradient(135deg, #0caf3a 0%, #1d9100 100%);
    --gradient-2: linear-gradient(135deg, #212936 0%, #0caf3a 100%);
    --gradient-3: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #212936;
    line-height: 1.6;
    overflow-x: hidden;
}

body.loaded {
    overflow: auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.logo-animate {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 30px;
}

.logo-letter {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    animation: letterFloat 1.5s ease-in-out infinite;
}

.logo-letter:nth-child(1) { animation-delay: 0s; }
.logo-letter:nth-child(2) { animation-delay: 0.1s; }
.logo-letter:nth-child(3) { animation-delay: 0.2s; }
.logo-letter:nth-child(4) { animation-delay: 0.3s; }
.logo-letter:nth-child(5) { animation-delay: 0.4s; }
.logo-letter:nth-child(6) { animation-delay: 0.5s; }
.logo-letter:nth-child(7) { animation-delay: 0.6s; }
.logo-letter:nth-child(8) { animation-delay: 0.7s; }

@keyframes letterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: #ffffff;
    animation: loadingSlide 1s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Navigation */
.navbar-modern {
    background: rgba(33, 41, 54, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: all var(--transition-normal);
}

.navbar-modern.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-normal);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary);
}

.nav-user {
    color: var(--primary) !important;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-modern.btn-primary {
    background: var(--gradient-1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(12, 175, 58, 0.4);
}

.btn-modern.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 175, 58, 0.5);
}

.btn-modern.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: rgba(12, 175, 58, 0.4);
}

.btn-modern.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-modern.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--secondary);
    z-index: 1000;
    transition: right var(--transition-normal);
    padding: 80px 30px;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible; /* ← было: hidden */
    pointer-events: none;
    z-index: 1; /* Убедитесь, что фон ниже контента */
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 150px;
    background: #667eea;
    bottom: 100px;   
    left: -50px;    
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #764ba2;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--secondary);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    margin-top:35px;
}

.hero-image.floating {
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
}

/* Sections Common */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-1);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: #ffffff;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    background: #f8fafc;
}

.features-grid {
    display: grid;
    gap: 40px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse .feature-item-content {
    direction: ltr;
}

.feature-item-image img {
    width: 100%;
    max-width: 450px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.feature-item-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item-content h3 i {
    color: var(--primary);
}

.feature-item-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services & Cases Grid */
.services-grid,
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card,
.case-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover,
.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 24px;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.card-body {
    padding: 25px;
}

.card-body p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-footer {
    padding: 20px 25px;
    background: #f8fafc;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 16px;
}

.icon-button:hover {
    transform: scale(1.1);
}

.icon-info { background: #28A745; }
.icon-proto { background: #17A2B8; }
.icon-start { background: #dc3545; }
.icon-video { background: #fd7e14; }

/* Tech Section */
.tech-section {
    background: linear-gradient(135deg, #212936 0%, #1a2029 100%);
    color: #ffffff;
}

.tech-section .section-title {
    color: #ffffff;
}

.tech-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(12, 175, 58, 0.4);
}

/* Partners Section */
.partners-section {
    background: #ffffff;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner-logo {
    height: 80px;
    width: auto;
    opacity: 0.7;
    transition: all var(--transition-normal);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #212936 0%, #1a2029 100%);
    color: #ffffff;
}

.support-section .section-title {
    color: #ffffff;
}

.support-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.support-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.support-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.support-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.support-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* Diplomas Slider */
.diplomas-section {
    background: #f0f9ff;
}

.diplomas-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 30px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.diplomas-slider::-webkit-scrollbar {
    height: 8px;
}

.diplomas-slider::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.diplomas-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.diploma-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
}

.diploma-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.diploma-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-2);
    padding: 120px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Footer */
.footer-modern {
    background: var(--secondary);
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: center;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-year {
    font-size: 14px;
    opacity: 0.6;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in-left"] {
    transform: translateX(-50px);
}

[data-animate="fade-in-left"].animated {
    transform: translateX(0);
}

[data-animate="fade-in-right"] {
    transform: translateX(50px);
}

[data-animate="fade-in-right"].animated {
    transform: translateX(0);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

[data-animate="zoom-in"].animated {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-actions {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .feature-item {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .feature-item.reverse {
        direction: ltr;
    }
    
    .feature-item-image {
        order: -1;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-modern.btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tech-list {
        gap: 10px;
    }
    
    .tech-item {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .partners-grid {
        gap: 25px;
    }
    
    .partner-logo {
        height: 60px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-social {
        order: -1;
    }
    
    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .diploma-item {
        flex: 0 0 250px;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Selection */
::selection {
    background: var(--primary);
    color: #ffffff;
}

/* Focus */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PACKAGES SECTION - Genervis 2026
   ============================================ */

.packages-section {
    background: #f8fafc;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.packages-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
}

.packages-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.06;
    border-radius: 50%;
    pointer-events: none;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.package-card {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(12, 175, 58, 0.2);
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(12, 175, 58, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.package-card.featured:hover {
    box-shadow: 0 20px 60px rgba(12, 175, 58, 0.25);
    transform: translateY(-10px);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(12, 175, 58, 0.3);
    white-space: nowrap;
}

.package-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.package-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
    text-align: left;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: var(--primary);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.package-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
}

.package-price span {
    font-size: 14px;
    font-weight: 500;
    color: #888;
}

/* Анимации появления */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate][data-delay] {
    transition-delay: calc(var(--delay, 0ms) + 100ms);
}

/* Адаптив */
@media (max-width: 991px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .package-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .packages-section {
        padding: 60px 0;
    }
    
    .package-card.featured {
        order: -1; /* Поднимаем популярный тариф на мобильных */
    }
    
    .package-price {
        font-size: 1.75rem;
    }
}

/* === Адаптация орбов в HERO для мобильных === */
@media (max-width: 991px) {
    .hero-bg-animation .gradient-orb {
        /* Уменьшаем размер */
        width: 150px !important;      /* Было, например, 400px */
        height: 150px !important;
        
        /* Уменьшаем радиус скругления */
        border-radius: 30px !important;  /* Было 50% для идеального круга */
        
        /* Опционально: корректируем позицию, чтобы не перекрывал контент */
        transform: scale(0.8) !important;
    }
    
    /* Если нужно точечно настроить каждый орб */
    .hero-bg-animation .orb-1 {
        width: 120px !important;
        height: 120px !important;
        border-radius: 25px !important;
        top: 10% !important;   /* Корректировка позиции */
        left: 5% !important;
    }
    
    .hero-bg-animation .orb-2 {
        width: 100px !important;
        height: 100px !important;
        border-radius: 20px !important;
    }
    
    .hero-bg-animation .orb-3 {
        display: none !important;  /* Можно скрыть третий орб на мобильных, если мешает */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .hero-bg-animation .gradient-orb {
        width: 100px !important;
        height: 100px !important;
        border-radius: 20px !important;
        opacity: 0.6 !important;  /* Можно сделать чуть прозрачнее */
    }
}

/* === Изображение в карточке сервиса/кейса — высота ×1.8 === */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 288px;              /* 160px × 1.8 */
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.card-image-wrapper:hover .card-image {
    transform: scale(1.08);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.12), transparent 70%);
    pointer-events: none;
    border-radius: inherit;
}

/* Планшет */
@media (max-width: 991px) {
    .card-image-wrapper {
        height: 252px;  /* 140px × 1.8 */
        border-radius: 14px 14px 0 0;
    }
}

/* Мобильный — комфортная высота */
@media (max-width: 576px) {
    .card-image-wrapper {
        height: 200px;  /* 110px × 1.8 ≈ 200px */
    }
    
    .case-card .card-image-wrapper {
        height: 280px;
    }
}

/* Кейсы на десктопе */
.case-card .card-image-wrapper {
    height: 360px;  /* 200px × 1.8 */
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .card-image-wrapper {
        height: 180px;
    }
    .case-card .card-image-wrapper {
        height: 240px;
    }
}