/* ============================================
   GENERVIS 2026 - Ultra Modern Design
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0caf3a;
    --primary-dark: #0d8a2e;
    --primary-light: #1d9100;
    --secondary: #0f172a;
    --accent: #0056d3;
    --gradient-1: linear-gradient(135deg, #0caf3a 0%, #0056d3 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --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: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loaded {
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.logo-animate {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 30px;
}

.logo-letter {
    font-size: 2.5rem;
    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(-12px); }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    animation: loadingSlide 1.2s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Navigation */
.navbar-modern {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    transition: all var(--transition-normal);
    z-index: 100;
}

.navbar-modern.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-lg);
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar-logo {
    height: 42px;
    width: auto;
    transition: transform var(--transition-fast);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-actions {
    display: flex;
    gap: 16px;
    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;
    font-size: 15px;
}

.nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary);
}

.nav-user {
    color: var(--primary) !important;
    font-weight: 600;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 0;
    cursor: pointer;
    font-size: 15px;
}

.btn-modern.btn-primary {
    background: var(--gradient-1);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(12, 175, 58, 0.3);
}

.btn-modern.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(12, 175, 58, 0.45);
    color: #ffffff;
}

.btn-modern.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-modern.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(12, 175, 58, 0.05);
}

.btn-modern.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.navbar-toggle span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--secondary);
    z-index: 999;
    transition: right var(--transition-normal);
    padding: 100px 30px 40px;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 16px;
}

.mobile-nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 25s ease-in-out infinite;
}

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

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;   
    left: -100px;    
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 175, 58, 0.08);
    border: 1px solid rgba(12, 175, 58, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-slogan {
    font-size: 20px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
    max-width: 580px;
    font-weight: 400;
}

.hero-slogan strong {
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 28px;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.7;
}

/* Hero Toggle */
.hero-toggle-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hero-toggle-btn:hover { 
    color: var(--primary-dark); 
    gap: 12px;
}

.hero-toggle-btn i { 
    transition: transform 0.3s ease; 
    font-size: 12px; 
}

.hero-toggle-btn.is-active i { 
    transform: rotate(180deg); 
}

.hero-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
    margin-top: 0;
}

.hero-details.is-open {
    max-height: 600px;
    opacity: 1;
    margin-top: 12px;
    margin-bottom: 24px;
}

.hero-details-inner {
    background: rgba(12, 175, 58, 0.04);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 28px 32px;
}

.hero-details-lead {
    font-size: 17px;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.hero-details-inner p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.hero-details-inner p:last-child { 
    margin-bottom: 0; 
}

.hero-details-closing {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(12, 175, 58, 0.15);
    font-style: italic;
    color: #64748b !important;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Hero Visual Sticky Fix */
.hero-visual {
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-visual-sticky {
        position: sticky;
        top: 120px;
    }
}

.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: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-image.floating {
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

/* Sections Common */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-block;
    background: rgba(12, 175, 58, 0.1);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(12, 175, 58, 0.2);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section */
.about-section {
    background: #ffffff;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(12, 175, 58, 0.15);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: rgba(12, 175, 58, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 28px;
    color: var(--primary);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-1);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
}

/* Features Section */
.features-section {
    background: #f8fafc;
}

.features-grid {
    display: grid;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 60px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-item-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-item-image img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.feature-item:hover .feature-item-image img {
    transform: scale(1.02);
}

.feature-item-content {
    flex: 1;
}

.feature-item-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-item-content h3 i {
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-item-content p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-item-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SERVICES & CASES CARDS (ИСПРАВЛЕНИЕ ВЫСОТЫ)
   ============================================ */
.services-grid,
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    align-items: stretch; /* Ключевое свойство: растягивает все карточки в ряду */
}

.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.04);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ключевое свойство: занимает всю высоту ячейки грида */
}

.service-card:hover,
.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(12, 175, 58, 0.2);
}

/* Обертка изображения с aspect-ratio вместо фиксированной высоты */
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Гарантирует пропорции и предотвращает схлопывание */
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.service-card:hover .card-image,
.case-card:hover .card-image {
    transform: scale(1.05); /* Плавный зум при наведении */
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.08), transparent 60%);
    pointer-events: none;
}

.card-header {
    padding: 24px 28px 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-header i {
    font-size: 22px;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    line-height: 1.4;
}

.card-body {
    padding: 0 28px 24px;
    flex-grow: 1; /* Ключевое свойство: занимает всё свободное пространство, прижимая футер вниз */
    display: flex;
    flex-direction: column;
}

.card-body p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.card-footer {
    padding: 20px 28px 28px;
    background: #ffffff;
    display: flex;
    gap: 12px;
    margin-top: auto; /* Двойная гарантия прижатия к низу */
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    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: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.icon-info { background: #10b981; }
.icon-proto { background: #0ea5e9; }
.icon-start { background: #ef4444; }
.icon-video { background: #f59e0b; }

/* Tech Section */
.tech-section {
    background: var(--gradient-2);
    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: 16px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: default;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}

.tech-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(12, 175, 58, 0.3);
    color: #ffffff;
}

/* Partners Section */
.partners-section {
    background: #ffffff;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.partner-logo {
    height: 70px;
    width: auto;
    opacity: 0.6;
    transition: all var(--transition-normal);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* Support Section */
.support-section {
    background: var(--gradient-2);
    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(220px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.support-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}

.support-item:hover {
    background: rgba(12, 175, 58, 0.15);
    border-color: var(--primary);
    transform: translateY(-6px);
}

.support-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.support-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Diplomas Slider */
.diplomas-section {
    background: #f8fafc;
}

.diplomas-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
}

.diplomas-slider::-webkit-scrollbar {
    height: 6px;
}

.diplomas-slider::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 3px;
}

.diplomas-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.diploma-item {
    flex: 0 0 280px;
    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);
    border: 4px solid #ffffff;
}

.diploma-item img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-1);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.2;
}

.cta-content .btn-modern.btn-primary {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cta-content .btn-modern.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer-modern {
    background: var(--secondary);
    color: #ffffff;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.6;
    font-size: 15px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin-bottom: 12px;
    opacity: 0.8;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.footer-year {
    font-size: 14px;
    opacity: 0.5;
    margin-top: 20px;
}

/* Packages Section */
.packages-section {
    background: #f8fafc;
    padding: 120px 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.06;
    border-radius: 50%;
    pointer-events: none;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.package-card {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(12, 175, 58, 0.15);
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(12, 175, 58, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.package-card.featured:hover {
    box-shadow: 0 20px 60px rgba(12, 175, 58, 0.2);
    transform: translateY(-10px);
}

.package-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(12, 175, 58, 0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-icon {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1;
    color: var(--primary);
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.package-description {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    width: 100%;
    text-align: left;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: #475569;
    font-size: 15px;
    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: 16px;
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.package-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 28px;
}

.package-price span {
    font-size: 15px;
    font-weight: 500;
    color: #94a3b8;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in-left"] {
    transform: translateX(-40px);
}

[data-animate="fade-in-left"].animated {
    transform: translateX(0);
}

[data-animate="fade-in-right"] {
    transform: translateX(40px);
}

[data-animate="fade-in-right"].animated {
    transform: translateX(0);
}

[data-animate="zoom-in"] {
    transform: scale(0.95);
}

[data-animate="zoom-in"].animated {
    transform: scale(1);
}

/* ============================================
   RESPONSIVE & MOBILE FIXES
   ============================================ */

@media (max-width: 1199px) {
    .hero-title { font-size: 3rem; }
    .feature-item { padding: 40px; gap: 40px; }
}

@media (max-width: 991px) {
    .navbar-actions { display: none; }
    .navbar-toggle { display: flex; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 32px; }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    .feature-item.reverse { flex-direction: column; }
    .feature-item-image { order: -1; margin-bottom: 20px; }
    .feature-item-content h3 { justify-content: center; }
    
    .section-title { font-size: 2.25rem; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-brand p { margin: 0 auto; }
    .footer-contact { text-align: center; }
    .footer-contact p { justify-content: center; }
    
    .hero-bg-animation .gradient-orb {
        width: 300px !important;
        height: 300px !important;
        opacity: 0.3 !important;
    }
    .hero-bg-animation .orb-3 { display: none; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero-section { padding: 120px 0 60px; }
    .hero-title { font-size: 2rem; }
    .hero-slogan { font-size: 18px; }
    .hero-description { font-size: 1rem; }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn-modern { width: 100%; }
    
    .stat-number { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    
    .tech-list { gap: 12px; }
    .tech-item { padding: 12px 20px; font-size: 14px; }
    
    .partners-grid { gap: 30px; }
    .partner-logo { height: 50px; }
    
    .cta-content h2 { font-size: 2rem; }
    .packages-grid { grid-template-columns: 1fr; }
    .package-card.featured { order: -1; }

    /* Мобильная адаптация Hero */
    .hero-visual {
        order: -1;
        margin-bottom: 40px;
    }
    .hero-image-container {
        max-width: 100%;
    }
    .hero-image {
        margin-top: 0;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    /* Адаптация карточек на мобильных */
    .services-grid, .cases-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card-header {
        padding: 20px 24px 12px;
    }
    
    .card-body {
        padding: 0 24px 20px;
    }
    
    .card-footer {
        padding: 16px 24px 24px;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.75rem; }
    .feature-card { padding: 32px 24px; }
    .feature-item { padding: 30px 20px; }
    .support-grid { grid-template-columns: 1fr; }
    .diploma-item { flex: 0 0 240px; }
    
    .hero-stats {
        justify-content: space-between;
    }
    .stat-item {
        flex: 0 0 45%;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Utilities */
::selection {
    background: var(--primary);
    color: #ffffff;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}