:root {
    /* Нейтральная цветовая схема с корпоративными акцентами */
    --primary-color: #2c5282;
    --primary-hover: #2a4a7a;
    --primary-light: #4a90e2;
    --secondary-color: #718096;
    --accent-color: #38b2ac;
    --accent-hover: #319795;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #4fd1c7 100%);
    --gradient-neutral: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Биоморфные тени */
    --bio-shadow-sm: 0 4px 20px rgba(44, 82, 130, 0.08);
    --bio-shadow-md: 0 10px 40px rgba(44, 82, 130, 0.12);
    --bio-shadow-lg: 0 20px 60px rgba(44, 82, 130, 0.15);
    
    /* Переходы */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Типографика */
    --font-primary: 'Archivo Black', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Радиусы */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    overflow-x: hidden;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* Параграфы */
p {
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--neutral-600);
}

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

.btn:hover, 
.button:hover, 
button:hover, 
input[type="submit"]:hover, 
.bio-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--bio-shadow-lg);
    color: white;
}

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

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

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

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

.btn.is-large,
.button.is-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Читать далее */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

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

.read-more::after {
    content: '→';
    transition: var(--transition-smooth);
}

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

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--bio-shadow-sm);
    z-index: 1000;
}

.navbar-brand .title {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.5rem;
}

.navbar-item {
    color: var(--neutral-700);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-item:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-item:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8) 0%, rgba(56, 178, 172, 0.6) 100%);
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.hero .title,
.hero .subtitle,
.hero p {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Success page стили */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding-top: 80px;
}

.success-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

/* Privacy и Terms pages */
.privacy-content,
.terms-content {
    padding-top: 100px;
    padding-bottom: 2rem;
}

/* Анимации */
@keyframes drawIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Применение анимаций */
.animate-fade-in {
    animation: drawIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: bounceIn 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-card {
    animation: drawIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-card:nth-child(1) { animation-delay: 0.1s; }
.animate-card:nth-child(2) { animation-delay: 0.2s; }
.animate-card:nth-child(3) { animation-delay: 0.3s; }
.animate-card:nth-child(4) { animation-delay: 0.4s; }

/* Секции */
.section {
    padding: 4rem 0;
    position: relative;
}

.section.has-background-light {
    background: var(--gradient-neutral);
}

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

/* Карточки */
.card, 
.bio-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--bio-shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card:hover,
.bio-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--bio-shadow-lg);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Service карточки */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--bio-shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bio-shadow-md);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

/* Statistics Widget */
.stat-widget {
    text-align: center;
    padding: 1rem;
}

.counter {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 3rem;
}

/* Process Steps */
.process-step {
    padding: 2rem 1rem;
    transition: var(--transition-smooth);
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: var(--bio-shadow-md);
}

.step-number {
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--bio-shadow-md);
    background: white;
}

.slider-wrapper {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 3rem;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--bio-shadow-md);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--bio-shadow-sm);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.3);
}

/* Формы */
.bio-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--bio-shadow-lg);
    border: 1px solid var(--glass-border);
}

.bio-input,
.bio-select select {
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition-smooth);
    background: white;
    font-family: var(--font-secondary);
}

.bio-input:focus,
.bio-select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    outline: none;
}

.bio-select {
    position: relative;
}

.bio-select::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    pointer-events: none;
}

/* Labels */
.label {
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    display: block;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 3rem 0 1rem;
}

.footer .title {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

/* Social Links в Footer */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--neutral-800);
    color: var(--neutral-400);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

/* Утилитарные классы */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }
.p-6 { padding: 3rem; }

/* Отзывчивость */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
    
    .hero-body {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .slider-wrapper {
        height: auto;
        min-height: 400px;
    }
    
    .slide {
        padding: 1.5rem;
        height: auto;
    }
    
    .navbar-burger {
        color: var(--primary-color);
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        font-size: 1.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .btn, 
    .button, 
    .bio-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .btn.is-large,
    .button.is-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .slide {
        padding: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    .navbar,
    .slider-controls,
    .slider-dots,
    .btn,
    .button,
    .bio-button {
        display: none !important;
    }
    
    .section {
        break-inside: avoid;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bio-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --bio-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
        --bio-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    }
    
    .card,
    .bio-card,
    .service-card {
        border: 2px solid var(--neutral-300);
    }
}