:root {
    /* Пастельная цветовая схема */
    --primary-color: #B8A7E6;
    --primary-dark: #9A85D9;
    --secondary-color: #F7C8C8;
    --accent-color: #A8E6CF;
    --accent-dark: #7DDAA7;
    --tertiary-color: #FFE4B5;
    --quaternary-color: #E6F3FF;
    
    /* Текстовые цвета */
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --text-white: #FFFFFF;
    --text-dark: #1A202C;
    
    /* Фоновые цвета */
    --bg-primary: #FAFAFA;
    --bg-secondary: #F7FAFC;
    --bg-dark: #2D3748;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #B8A7E6 0%, #F7C8C8 100%);
    --gradient-secondary: linear-gradient(135deg, #A8E6CF 0%, #FFE4B5 100%);
    --gradient-hero: linear-gradient(135deg, rgba(184, 167, 230, 0.9) 0%, rgba(247, 200, 200, 0.9) 100%);
    --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    
    /* Тени и эффекты */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Переходы и анимации */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --morph-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Размеры и отступы */
    --border-radius: 12px;
    --border-radius-large: 20px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Шрифты */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;
}

/* Глобальные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;

    scroll-behavior: smooth;
}
.title:not(.is-spaced)+.subtitle{
    margin-top: 0!important;
}
.select select:not([multiple]){
   height: auto!important;
}
body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-medium);
}

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

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Глобальные стили кнопок */
.btn,
.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--morph-transition);
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.btn::before,
.button::before,
input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-medium);
}

.btn:hover,
.button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    background: var(--gradient-secondary);
}

.btn:hover::before,
.button:hover::before,
input[type="submit"]:hover::before {
    left: 100%;
}

.btn.is-large,
.button.is-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn.is-outlined,
.button.is-outlined {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.is-outlined:hover,
.button.is-outlined:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Навигация */
.apex-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-medium);
    padding: var(--spacing-sm) 0;
}

.apex-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-item {
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--morph-transition);
}

.navbar-item:hover {
    background: var(--glass-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.apex-hero {
    position: relative;
    background: 
        var(--gradient-overlay),
        url('image/professional-auto-service-hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
}

.apex-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.apex-hero .container {
    position: relative;
    z-index: 2;
}

.apex-hero-title {
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-md);
    animation: morphIn 1s ease-out;
}

.apex-hero-subtitle {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: morphIn 1s ease-out 0.2s both;
}

.apex-hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: morphIn 1s ease-out 0.4s both;
}

/* Секции */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

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

.apex-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.apex-section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* Карточки */
.card,
.apex-service-card,
.apex-team-card,
.apex-resource-card {
    background: var(--text-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--morph-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover,
.apex-service-card:hover,
.apex-team-card:hover,
.apex-resource-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.card-image,
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
    margin: 0 auto;
}

.card:hover .card-image img,
.apex-service-card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.card-content p {
    flex: 1;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* Services Section */
.apex-services {
    background: 
        linear-gradient(rgba(168, 230, 207, 0.05), rgba(255, 228, 181, 0.05)),
        var(--bg-primary);
}

/* Team Section */
.apex-team {
    background: var(--bg-secondary);
}

.apex-team-card .image-container {
    height: 250px;
    border-radius: 50%;
    width: 200px;
    margin: var(--spacing-md) auto var(--spacing-sm);
}

.apex-team-card .image-container img {
    border-radius: 50%;
}

/* Innovation Section */
.apex-innovation {
    background: 
        linear-gradient(135deg, rgba(184, 167, 230, 0.1) 0%, rgba(247, 200, 200, 0.1) 100%),
        var(--bg-primary);
    padding: var(--spacing-xl) 0;
}

.apex-innovation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.apex-innovation-timeline {
    position: relative;
    padding-left: var(--spacing-md);
}

.apex-innovation-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
}

.timeline-marker {
    position: absolute;
    left: -9px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: 3px solid var(--text-white);
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* Portfolio Section */
.apex-portfolio {
    background: var(--bg-secondary);
}

.apex-gallery-item {
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--morph-transition);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apex-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.apex-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
    margin: 0 auto;
}

.apex-gallery-item:hover img {
    transform: scale(1.1);
}

/* Resources Section */
.apex-resources {
    background: 
        linear-gradient(135deg, rgba(168, 230, 207, 0.1) 0%, rgba(255, 228, 181, 0.1) 100%),
        var(--bg-primary);
}

/* Insights Section */
.apex-insights {
    background: var(--bg-secondary);
}

.apex-insights-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.apex-insights-content h3 {
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.apex-insights-content h3:first-child {
    margin-top: 0;
}

/* Careers Section */
.apex-careers {
    background: 
        linear-gradient(135deg, rgba(184, 167, 230, 0.1) 0%, rgba(247, 200, 200, 0.1) 100%),
        var(--bg-primary);
}

.apex-careers-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.apex-careers-content p {
    margin-bottom: var(--spacing-md);
}

/* Contact Section */
.apex-contact {
    background: var(--bg-secondary);
}

.apex-contact-form {
    background: var(--text-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-lg);
}

.apex-contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: var(--spacing-lg);
}

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

.label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.input,
.textarea,
.select select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(184, 167, 230, 0.2);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition-medium);
    background: var(--text-white);
    color: var(--text-primary);
}

.input:focus,
.textarea:focus,
.select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 167, 230, 0.1);
}

/* Footer */
.apex-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.apex-footer h4 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.apex-footer ul {
    list-style: none;
}

.apex-footer ul li {
    margin-bottom: var(--spacing-xs);
}

.apex-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-medium);
}

.apex-footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.apex-social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.apex-social-links a {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--morph-transition);
    font-weight: 500;
}

.apex-social-links a:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Анимации морфинг */
@keyframes morphIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.morph-float {
    animation: morphFloat 3s ease-in-out infinite;
}

/* Утилиты */
.has-text-centered {
    text-align: center;
}

.mb-6 {
    margin-bottom: var(--spacing-xl);
}

.mt-6 {
    margin-top: var(--spacing-xl);
}

/* Страницы Privacy и Terms */
.privacy-content,
.terms-content {
    padding-top: 100px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

/* Страница Success */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--text-white);
}

.success-content {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: morphIn 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .apex-hero {
        padding: 100px 0 60px;
    }
    
    .apex-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .columns.is-multiline .column {
        margin-bottom: var(--spacing-md);
    }
    
    .apex-team-card .image-container {
        width: 150px;
        height: 150px;
    }
    
    .apex-innovation-timeline {
        padding-left: var(--spacing-sm);
    }
    
    .timeline-item {
        padding-left: var(--spacing-sm);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .apex-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .apex-hero-buttons .btn,
    .apex-hero-buttons .button {
        width: 100%;
        max-width: 280px;
    }
    
    .card-content {
        padding: var(--spacing-sm);
    }
    
    .apex-contact-form,
    .apex-contact-info {
        padding: var(--spacing-md);
    }
    
    .timeline-marker {
        left: -6px;
        width: 12px;
        height: 12px;
    }
}

/* Дополнительные стили для гиперреалистичных текстур */
.texture-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.texture-gradient {
    background: var(--gradient-primary);
}

.texture-shadow {
    box-shadow: var(--shadow-heavy);
}

/* Стили для "Читать далее" ссылок */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--morph-transition);
    border-bottom: 2px solid transparent;
}

.read-more:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: var(--transition-medium);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

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

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--text-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling для всех элементов */
* {
    scroll-behavior: smooth;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles для accessibility */
.btn:focus,
.button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}