/* 
* Voltara Flex - AI-Powered Trading Courses
* Main Stylesheet
* 
* This stylesheet contains all styles for the Voltara Flex website,
* with a focus on responsive design and modern aesthetics.
*/

/* ====== VARIABLES ====== */
:root {
    /* Brand Colors - Updated Modern Palette */
    --primary-color: #2563eb; /* Modern blue */
    --primary-dark: #1d4ed8; /* Darker blue for hover states */
    --secondary-color: #f97316; /* Vibrant orange accent */
    --secondary-dark: #ea580c; /* Darker orange for hover states */
    --tertiary-color: #6366f1; /* Indigo for accents */
    
    /* Neutral Colors */
    --dark: #0f172a; /* Near black for text */
    --dark-light: #334155; /* Lighter dark for secondary text */
    --light: #f8fafc; /* Off-white for backgrounds */
    --light-gray: #e2e8f0; /* Light gray for borders, dividers */
    --medium-gray: #94a3b8; /* Medium gray for form elements, secondary info */
    
    /* AI-Specific Accent Colors */
    --tech-blue: #0ea5e9; /* Technology blue for AI elements */
    --tech-purple: #8b5cf6; /* Purple for AI/tech accents */
    --chart-green: #10b981; /* Success/positive trends */
    --chart-red: #ef4444; /* Error/negative trends */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb, #6366f1);
    --gradient-secondary: linear-gradient(135deg, #f97316, #fb7185);
    --gradient-dark: linear-gradient(135deg, #0f172a, #334155);
    --gradient-hero: linear-gradient(135deg, #1e3a8a, #3b82f6, #8b5cf6);
    
    /* Typography */
    --heading-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem;  /* 8px */
    --spacing-md: 1rem;    /* 16px */
    --spacing-lg: 1.5rem;  /* 24px */
    --spacing-xl: 2rem;    /* 32px */
    --spacing-xxl: 3rem;   /* 48px */
    
    /* Border Radius */
    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem;  /* 8px */
    --border-radius-lg: 1rem;    /* 16px */
    --border-radius-xl: 1.5rem;  /* 24px */
    --border-radius-full: 9999px; /* Fully rounded */
    
    /* Container Width */
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from { 
        transform: translateX(30px);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes gradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--light);
    position: relative;
    min-height: 100vh;
    padding-top: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-md);
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    max-width: 70ch; /* Limit width for better readability and SEO */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
}

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

.text-gradient-alt {
    background-image: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.gradient-text {
    background: linear-gradient(120deg, #2563eb, #6366f1, #8b5cf6, #6366f1, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    background-size: 200% auto;
    animation: gradientBg 8s ease infinite;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* ====== LAYOUT UTILITIES ====== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

section:not(:last-child) {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-image: var(--gradient-primary);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--border-radius-full);
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

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

.animated-element {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.stagger-animation > * {
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

.floating-animation {
    animation: float 4s ease-in-out infinite;
}

/* ====== BUTTONS ====== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-full);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-image: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-3px);
    color: white;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover::after {
    opacity: 0.8;
}

.btn-secondary {
    background-image: var(--gradient-secondary);
    color: white;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: white;
}

.btn-outline {
    display: inline-block;
    padding: calc(var(--spacing-md) - 2px) calc(var(--spacing-xl) - 2px);
    border-radius: var(--border-radius-full);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ====== HEADER ====== */
.site-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xs) 0;
    height: auto;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    transition: transform var(--transition-normal);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    color: var(--dark);
    transition: transform var(--transition-fast);
}

.logo-text {
    font-size: 1.6rem;
    margin-left: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: linear-gradient(120deg, #2563eb, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 3s ease-in-out infinite;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.logo-icon:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 var(--spacing-md);
}

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-xs);
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav a i {
    margin-right: 5px;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.main-nav a:hover i {
    transform: translateY(-2px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: var(--gradient-primary);
    transition: width var(--transition-normal);
    transform-origin: left;
}

.main-nav a:hover,
.main-nav li.active a {
    color: var(--primary-color);
}

.main-nav a:hover::after,
.main-nav li.active a::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher a {
    margin: 0 var(--spacing-xs);
    color: var(--dark-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.language-switcher a img {
    margin-right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.language-switcher a:hover img {
    transform: scale(1.1);
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--primary-color);
}

.language-switcher span {
    color: var(--medium-gray);
    margin: 0 var(--spacing-xs);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    margin: 2px 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ====== HERO SECTION ====== */
.hero {
    position: relative;
    background-image: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientBg 15s ease infinite;
    color: white;
    padding: calc(var(--spacing-xl) * 0.5) 0;
    width: 100%;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=2532&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1140px;
    margin: -40px auto 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    max-width: 800px;
    animation: fadeIn 1s ease;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    animation: fadeIn 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
    margin-bottom: var(--spacing-md);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    display: block;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.hero-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: translateY(-25px);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(0.92);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1);
}

.page-hero {
    background-image: var(--gradient-hero);
    background-size: 300% 300%;
    animation: gradientBg 15s ease infinite;
    color: white;
    padding: calc(var(--spacing-xxl) * 1.5) 0 var(--spacing-xl);
    text-align: center;
    position: relative;
    margin-top: 72px; /* Height of fixed header */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=2532&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: white;
    animation: fadeIn 1s ease;
}

/* ====== ADVANTAGES SECTION ====== */
.advantages {
    background-color: white;
    padding: var(--spacing-xxl) 0;
}

.advantages .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.advantage-box {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.advantage-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: var(--gradient-primary);
    z-index: 1;
}

.advantage-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.advantage-box:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-box h3 {
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.advantage-box h3::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-image: var(--gradient-primary);
    margin: var(--spacing-xs) auto 0;
    transition: width var(--transition-normal);
    border-radius: var(--border-radius-full);
}

.advantage-box:hover h3::after {
    width: 100%;
}

.advantage-box p {
    margin-bottom: 0;
}

/* ====== TESTIMONIALS SECTION ====== */
.testimonials {
    background-color: var(--light);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: var(--gradient-primary);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    opacity: 0.05;
}

.testimonials::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: var(--gradient-secondary);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    opacity: 0.05;
}

.testimonials h2 {
    margin-bottom: var(--spacing-xl);
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    text-align: left;
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    font-size: 5rem;
    line-height: 1;
    font-family: serif;
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-light);
    display: flex;
    align-items: center;
}

.testimonial-author::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-image: var(--gradient-primary);
    margin-right: var(--spacing-sm);
}

.cta-center {
    margin-top: var(--spacing-xl);
}

/* ====== ABOUT PAGE STYLES ====== */
.about-section {
    padding: var(--spacing-xl) 0;
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-section.alternate {
    background-color: var(--light);
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.about-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.vision-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--tech-blue));
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.vision-section h2 {
    color: white;
}

.vision-section p {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

/* ====== COURSES PAGE STYLES ====== */
.courses-section {
    padding: var(--spacing-xl) 0;
}

.course-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-header {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-lg);
    position: relative;
}

.course-header h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.course-content {
    padding: var(--spacing-lg);
}

.course-description {
    margin-bottom: var(--spacing-lg);
}

.course-includes h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--dark-light);
    font-size: 1.1rem;
}

.course-includes ul {
    list-style-type: none;
    margin-bottom: var(--spacing-lg);
}

.course-includes li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-lg);
}

.course-includes li:before {
    content: "✓";
    color: var(--chart-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.course-action {
    text-align: center;
}

.course-card.featured .course-header {
    background-color: var(--tech-blue);
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom-left-radius: var(--border-radius-sm);
}

.course-card.premium .course-header {
    background-color: var(--dark);
}

.advantages-section {
    background-color: var(--light);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.advantages-section h2 {
    margin-bottom: var(--spacing-xl);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.advantage-item {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.advantage-item .advantage-icon {
    margin: 0 auto var(--spacing-md);
}

.advantage-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* ====== CONTACT PAGE STYLES ====== */
.contact-section {
    background-color: #f8fafc;
    padding: 60px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(14, 165, 233, 0.03) 100%);
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

/* Основные стили для контактной формы */
.contact-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    overflow: hidden;
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: var(--gradient-primary);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-header {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block !important;
}

.input-with-icon,
.select-with-icon,
.textarea-with-icon {
    position: relative;
}

.input-with-icon i,
.select-with-icon i,
.textarea-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    transition: color 0.3s ease;
    display: inline-block !important;
    z-index: 5;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
}

.textarea-with-icon i {
    top: 18px;
    transform: none;
}

.input-with-icon input,
.select-with-icon select,
.textarea-with-icon textarea {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 15px 14px 45px;
    width: 100%;
    font-size: 16px;
    background: #f8fafc;
    color: #334155;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.input-with-icon input:focus,
.select-with-icon select:focus,
.textarea-with-icon textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.input-with-icon input:focus + i,
.select-with-icon select:focus + i,
.textarea-with-icon textarea:focus + i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.form-group:hover {
    transform: translateY(-2px);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.required {
    color: #e11d48;
    margin-left: 3px;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.form-actions button {
    min-width: 180px;
    padding: 14px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.form-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.4s ease;
}

.form-actions button:hover::before {
    width: 100%;
}

.btn-primary {
    background-image: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Правая сторона контактов */
.contact-info-container {
    margin-top: 0;
}

.contact-info-card {
    background-image: var(--gradient-primary);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    padding: 40px;
    color: white;
    height: 100%;
}

.contact-info-card h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.75rem;
    font-weight: 700;
}

.contact-info-grid {
    display: grid;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    background-color: rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.25);
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details p {
    opacity: 0.9;
    margin-bottom: 5px;
    font-size: 15px;
}

.contact-details a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Адаптивность для контактной формы */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-header,
    .form-group.captcha-group,
    .form-actions {
        grid-column: span 1;
    }
    
    .contact-info-container {
        margin-top: 30px;
    }
}

/* ====== THANK YOU PAGE STYLES ====== */
.thankyou-section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.thankyou-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background-color: var(--chart-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.thankyou-message {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.next-steps {
    text-align: left;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--light);
    border-radius: var(--border-radius-md);
}

.thankyou-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* ====== POLICY PAGES STYLES ====== */
.policy-section {
    padding: var(--spacing-xl) 0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.policy-updated {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-lg);
}

.policy-intro {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

.policy-section-item {
    margin-bottom: var(--spacing-xl);
}

.policy-section-item h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

/* ====== FOOTER ====== */
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: var(--spacing-xl) 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 40px;
}

.footer-tagline {
    color: var(--medium-gray);
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style-type: none;
    margin: 0;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: var(--medium-gray);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
    color: var(--medium-gray);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(0.5);
    transition: filter var(--transition-fast);
}

.social-links a:hover img {
    filter: brightness(0) invert(1);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.payment-methods img {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.payment-methods img:hover {
    opacity: 1;
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.5rem;
        max-width: 60ch;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: calc(var(--spacing-xxl) + 2rem) 0 var(--spacing-xl);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-image {
        max-width: 600px; /* Меньшее изображение для планшетов */
    }
    
    .advantages .container,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero {
        padding: calc(var(--spacing-xl) + 4rem) 0 var(--spacing-xl);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow-md);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .main-nav.open {
        max-height: 300px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    
    .main-nav li {
        margin: 0 0 var(--spacing-sm) 0;
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    .testimonial-container,
    .about-section .container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-container {
        margin-top: 0;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.captcha-group,
    .form-group:last-of-type,
    .form-actions {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
        max-width: 100%;
    }
    
    .hero {
        padding: calc(var(--spacing-xl) + 2rem) 0 var(--spacing-lg);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .thankyou-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* Добавляем дополнительные медиа-запросы для Mac дисплеев */
@media (min-width: 1200px) and (max-height: 800px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-image {
        max-width: 45%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

/* ====== NEWLY ADDED STYLES ====== */

/* ===== GENERAL SECTION UPDATES ===== */
section {
    position: relative;
    overflow: hidden;
}

.section-divider {
    height: 5vw;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: 100% 100%;
    z-index: 10;
}

.section-divider.wave-top {
    top: 0;
    transform: rotate(180deg);
}

.section-divider.wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
}

.section-divider.wave-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
}

.scroll-indicator-bar {
    height: 100%;
    background-image: var(--gradient-primary);
    width: 0;
    transition: width 0.1s ease;
}

/* ===== HERO SECTION UPDATES ===== */
.hero {
    display: flex;
    align-items: center;
    padding: calc(var(--spacing-xxl) + 4rem) 0 var(--spacing-xl);
    gap: var(--spacing-xl);
    min-height: auto;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.hero-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: translateY(-25px);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(0.92);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1);
}

/* ===== STATS SECTION ===== */
.stats-section {
    background-color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat-box {
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-image: var(--gradient-primary);
    border-radius: var(--border-radius-full);
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--heading-font);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.counter-symbol {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark-light);
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
    background-color: var(--light);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    width: 30vw;
    height: 30vw;
    background-image: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -15vw;
    left: -15vw;
    opacity: 0.05;
    animation: morph 15s linear infinite alternate;
}

.why-choose-section::after {
    content: '';
    position: absolute;
    width: 25vw;
    height: 25vw;
    background-image: var(--gradient-secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: -12.5vw;
    right: -12.5vw;
    opacity: 0.05;
    animation: morph 18s linear infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 50% 50% 50% 50% / 30% 70% 30% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    75% {
        border-radius: 50% 50% 50% 50% / 70% 30% 70% 30%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.advantages-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.advantage-box {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.advantage-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: var(--gradient-primary);
    z-index: 1;
}

.advantage-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.advantage-box:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-box img {
    width: 60px;
    height: 60px;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    background-color: white;
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.steps-container {
    margin-top: var(--spacing-xl);
    position: relative;
}

.steps-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-image: var(--gradient-primary);
    opacity: 0.3;
    z-index: 0;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.step:nth-child(odd) {
    flex-direction: row;
    padding-right: 50%;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: 50%;
    text-align: right;
}

.step-number {
    width: 50px;
    height: 50px;
    background-image: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 var(--spacing-md);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.step-content {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    flex-grow: 1;
    position: relative;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    margin-bottom: 0;
}

/* ===== TESTIMONIALS SECTION UPDATES ===== */
.testimonial {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    font-size: 5rem;
    line-height: 1;
    font-family: serif;
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--light);
    box-shadow: var(--shadow-md);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-light);
    margin-bottom: var(--spacing-sm);
}

.testimonial-rating {
    color: #FFD700;
    margin-top: 10px;
}

.testimonial-rating i {
    font-size: 16px;
    margin: 0 2px;
    display: inline-block !important;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    background-color: var(--light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.featured-logo {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.featured-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.featured-logo img {
    height: 100%;
    width: auto;
}

@media (max-width: 768px) {
    .featured-logos {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .featured-logo {
        width: 100%;
        max-width: 150px;
    }
}

/* Font Awesome icons fix - глобальное исправление */
i[class^="fa"],
i[class*=" fa"],
.fa, 
.fas, 
.far, 
.fal, 
.fad, 
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Дополнительный уровень поддержки для иконок */
.btn-primary i, 
.btn-secondary i,
.btn-outline i,
.feature-icon i,
.testimonial-rating i,
.step-number i,
.stat-box i,
.main-nav a i {
    display: inline-block !important;
    margin-right: 5px;
}

/* Улучшенные стили для кнопок с иконками */
.btn-primary, 
.btn-secondary, 
.btn-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Стили для логотипа, чтобы он был виден везде */
.logo-icon {
    display: inline-block !important;
}

/* ===== FEATURED IN SECTION FIXED ===== */
.featured-in-section {
    background-color: #f8fafc;
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.featured-in-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(14, 165, 233, 0.03) 100%);
    z-index: 0;
}

.featured-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.featured-logo-item {
    background-color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    min-width: 200px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.featured-logo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-logo-item img {
    max-width: 160px;
    max-height: 60px;
}

.featured-logo-item object {
    max-width: 160px;
    max-height: 60px;
    width: 100%;
}

@media (max-width: 768px) {
    .featured-logos-container {
        gap: 1.5rem;
    }
    
    .featured-logo-item {
        min-width: 150px;
        min-height: 70px;
        padding: 15px;
    }
    
    .featured-logo-item img,
    .featured-logo-item object {
        max-width: 120px;
        max-height: 50px;
    }
}

/* ====== INNOVATIVE COURSES SECTION FIXED ====== */
.innovative-courses-section {
    background-color: white;
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.innovative-courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 5% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 95% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 25%);
    z-index: 0;
}

.innovative-courses-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.innovative-text {
    flex: 1;
    padding-right: var(--spacing-lg);
}

.highlighted-text {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
}

.course-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.course-features .feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-features .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    margin-right: 10px;
}

.feature-icon i {
    display: inline-block !important;
    color: #2563eb;
    font-size: 1.25rem;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, #2563eb, #6366f1);
}

.feature-item:hover .feature-icon i {
    color: white !important;
}

.feature-text {
    font-weight: 600;
    flex: 1;
}

.innovative-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.innovative-image:hover {
    transform: scale(1.02);
}

.innovative-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-slow);
}

.innovative-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    color: white;
    padding: var(--spacing-md);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 992px) {
    .innovative-courses-content {
        flex-direction: column;
    }
    
    .innovative-text {
        padding-right: 0;
    }
    
    .innovative-image {
        width: 100%;
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .course-features {
        grid-template-columns: 1fr;
    }
}

/* Форма в футере */
.site-footer form {
    margin-top: var(--spacing-md);
}

.footer-newsletter {
    position: relative;
    margin-top: var(--spacing-md);
    max-width: 320px;
}

.newsletter-form {
    width: 100%;
}

.footer-newsletter input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--border-radius-full);
    padding: calc(var(--spacing-sm) + 4px) var(--spacing-md);
    width: 100%;
    transition: all var(--transition-normal);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.footer-newsletter button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background-image: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-full);
    padding: 0 var(--spacing-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-xl);
}

.footer-logo {
    flex: 1;
}

.footer-newsletter {
    flex: 1;
    max-width: 320px;
}

.featured-logo-item object {
    max-width: 150px;
    max-height: 50px;
    width: auto;
    height: auto;
}

/* Улучшения для контактной формы */
.form-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.form-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    display: inline-block !important;
}

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.input-with-icon,
.select-with-icon,
.textarea-with-icon {
    position: relative;
}

.input-with-icon i,
.select-with-icon i,
.textarea-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    transition: color var(--transition-fast);
    display: inline-block !important;
}

.textarea-with-icon i {
    top: 16px;
    transform: none;
}

.input-with-icon input,
.select-with-icon select,
.textarea-with-icon textarea {
    padding-left: 40px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
}

.input-with-icon input:focus,
.select-with-icon select:focus,
.textarea-with-icon textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-with-icon input:focus + i,
.select-with-icon select:focus + i,
.textarea-with-icon textarea:focus + i {
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.contact-info-card {
    background-image: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
}

.contact-info-card h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: white;
    font-size: 1.75rem;
}

.contact-info-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.contact-details h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.contact-details a {
    color: white;
    transition: opacity var(--transition-fast);
}

.contact-details a:hover {
    opacity: 0.8;
    color: white;
}

.social-links-contact {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.social-links-contact h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-normal);
    color: white;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background-color: white;
    color: var(--primary-color);
}

.social-icons i {
    display: inline-block !important;
}

/* Медиа-запросы для контактной формы */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-container {
        margin-top: var(--spacing-md);
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.captcha-group,
    .form-group:last-of-type,
    .form-actions {
        grid-column: span 1;
    }
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Улучшения для captcha поля */
.captcha-group {
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-top: 10px;
}

.captcha-group label {
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.captcha-group input {
    background-color: white;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Социальные ссылки внизу карточки */
.connect-with-us {
    margin-top: 40px;
    text-align: center;
    position: relative;
}

.connect-with-us::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

.connect-with-us h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    color: white;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background-color: white;
    color: var(--primary-color);
}

.social-icons a i {
    font-size: 18px;
    display: inline-block !important;
}