/* Основные CSS-переменные */
:root {
    /* Основная цветовая схема */
    --primary: #2c60e6;
    --primary-dark: #1a45b5;
    --primary-light: #5781ff;
    
    --secondary: #e63b2c;
    --secondary-dark: #b52a1a;
    --secondary-light: #ff5c4d;
    
    --accent: #36e2d4;
    --accent-dark: #27ada1;
    --accent-light: #6fffef;
    
    /* Нейтральные цвета */
    --dark: #1a1a2e;
    --medium: #2a2a40;
    --light: #f5f7fa;
    --lighter: #ffffff;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
    --gradient-dark: linear-gradient(135deg, var(--dark), var(--medium));
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    
    /* Радиусы */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

/* Базовые стили */
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Секция Hero */
.hero {
    position: relative;
    background-color: var(--dark);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6);
    z-index: 0;
}

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

.hero-description {
    max-width: 700px;
    margin-top: 1.5rem;
    line-height: 1.7;
}

.title.has-text-white, 
.subtitle.has-text-white,
.has-text-white {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Кнопки */
.button {
    transition: all var(--transition-normal);
    font-weight: 500;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

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

.button.is-primary {
    background-color: var(--primary);
    border-color: transparent;
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
}

.button.is-light.is-outlined {
    border-color: var(--lighter);
    color: var(--lighter);
}

.button.is-light.is-outlined:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.button.is-info {
    background-color: var(--primary);
}

.button.is-danger {
    background-color: var(--secondary);
}

/* Хедер и навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    min-height: 5rem;
}

.navbar-item {
    font-weight: 500;
    color: var(--dark);
    transition: color var(--transition-fast);
}

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

.navbar-burger {
    height: 3.5rem;
    width: 3.5rem;
}

/* Секции */
.section {
    padding: 5rem 1.5rem;
}

.section:nth-of-type(odd) {
    background-color: var(--light);
}

.section:nth-of-type(even) {
    background-color: var(--lighter);
}

/* Заголовки секций */
.section .title.is-2 {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section .title.is-2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Секция Services */
.service-card {
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.service-card .image-container {
    overflow: hidden;
    height: 240px;
    width: 100%;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card .card-content {
    flex: 1;
    padding: 1.5rem;
}

/* Секция History & Methodology */
.history-section,
.methodology-section {
    position: relative;
}

.history-section .image,
.methodology-section .image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.history-section .image img,
.methodology-section .image img {
    transition: transform var(--transition-slow);
}

.history-section .image:hover img,
.methodology-section .image:hover img {
    transform: scale(1.03);
}

/* Секция Research */
.research-section .image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Секция Resources */
.resource-card {
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card ul {
    margin-left: 1rem;
}

.resource-card li {
    margin-bottom: 0.5rem;
}

/* Секция Success Stories */
.success-card {
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    border-left: 4px solid var(--primary);
}

.success-card:hover {
    transform: translateY(-5px);
}

.case-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(44, 96, 230, 0.1);
    border-radius: var(--radius-sm);
}

/* Секция Testimonials */
.testimonial-card {
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .image-container {
    width: 120px;
    height: 120px;
    margin: 1.5rem auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
}

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

.testimonial-card .card-content {
    text-align: center;
    padding: 1.5rem;
}

/* Секция Community */
.community-section {
    background: linear-gradient(to right, rgba(44, 96, 230, 0.05), rgba(54, 226, 212, 0.05));
}

.workshop-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.workshop-card:hover {
    transform: translateY(-5px);
}

/* Секция Contact */
.contact-section {
    background-color: var(--light);
}

.contact-form-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info .icon {
    margin-right: 1rem;
    color: var(--primary);
}

/* Футер */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 5rem 1.5rem 2rem;
}

.footer .title {
    color: var(--lighter);
}

.footer a {
    color: var(--accent-light);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

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

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

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Страница success.html */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.success-content {
    max-width: 600px;
    padding: 3rem;
    background-color: var(--lighter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Страницы privacy.html и terms.html */
.privacy-page,
.terms-page {
    padding-top: 100px;
}

.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--lighter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-play-state: paused;
}

.animate-on-scroll.animate {
    animation-play-state: running;
}

/* Медиа запросы для адаптивности */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-md);
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem !important;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .hero-description {
        font-size: 1rem !important;
    }
    
    .title.is-1 {
        font-size: 2.5rem !important;
    }
    
    .subtitle.is-3 {
        font-size: 1.75rem !important;
    }
    
    .service-card .image-container,
    .research-section .image {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 2.5rem 1rem;
    }
    
    .title.is-1 {
        font-size: 2rem !important;
    }
    
    .subtitle.is-3 {
        font-size: 1.5rem !important;
    }
    
    .service-card .image-container {
        height: 180px;
    }
}

/* Специальные эффекты и утилиты */
.has-text-primary { color: var(--primary) !important; }
.has-text-secondary { color: var(--secondary) !important; }
.has-text-accent { color: var(--accent) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }

.glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Ссылки "Читать далее" */
.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    position: relative;
    padding-right: 1.5rem;
}

.read-more::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-dark);
}

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

/* Стили для навигации по странице */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.scroll-to-top.visible {
    opacity: 0;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}