/* CSS-переменные для согласованной темы */
:root {
    /* Основные цвета (монохромная схема) */
    --primary-color: #3a506b;
    --primary-light: #5a6e89;
    --primary-dark: #1a324b;
    --primary-hover: #4a6081;
    --primary-active: #2a425b;
    
    /* Акцентные цвета */
    --accent-color: #6b8eae;
    --accent-light: #8ba6c6;
    --accent-dark: #4b6e8e;
    
    /* Нейтральные цвета */
    --background-light: #f5f7fa;
    --background-dark: #2b3a4a;
    --text-light: #f0f5fa;
    --text-dark: #1a2530;
    --text-muted: #6c757d;
    
    /* Теневые эффекты */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    /* Отступы и радиусы */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* Переходы и анимации */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.title {
    line-height: 1.2;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateZ(10px);
    transition: transform var(--transition-normal);
}

.hero-title:hover {
    transform: translateZ(20px) scale(1.05);
}

p {
    margin-bottom: 1rem;
}

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

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

/* Кнопки (глобальные стили) */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px) translateZ(5px);
    box-shadow: var(--shadow-md);
}

.button:hover::before {
    transform: translateX(100%);
}

.button:active {
    background-color: var(--primary-active);
    transform: translateY(1px) translateZ(0);
}

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

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

.button.is-large {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

.button.is-rounded {
    border-radius: 9999px;
}

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

.section {
    padding: var(--spacing-lg) 0;
}

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

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-menu {
    display: flex;
}

.navbar-item {
    margin-left: var(--spacing-sm);
    position: relative;
    font-weight: 600;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

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

.navbar-burger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.navbar-burger span {
    display: block;
    height: 2px;
    width: 30px;
    background-color: var(--primary-color);
    margin: 6px 5px;
    transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
    margin-top: 65px; /* Для учета фиксированного хедера */
}

.hero.is-fullheight {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-body {
    width: 100%;
    z-index: 2;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-title, .hero .subtitle, .hero p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Services Section */
.card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

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

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

.card-content .title {
    margin-top: 0;
}

.card-content .button {
    margin-top: auto;
    align-self: flex-start;
}

/* Statistics Section */
.has-background-light {
    background-color: var(--background-light);
}

.box {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal);
}

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

.box .title {
    color: var(--primary-color);
}

/* Workshops Section */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}

.column {
    padding: 1rem;
}

.column.is-half {
    width: 50%;
}

.column.is-one-third {
    width: 33.333333%;
}

.column.is-one-quarter {
    width: 25%;
}

.column.is-two-thirds {
    width: 66.666667%;
}

/* Innovation Section */
.content {
    color: var(--text-dark);
}

.content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.content ul {
    list-style-position: inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

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

.image {
    display: block;
    position: relative;
    max-width: 100%;
}

/* Resources Section */
.is-multiline {
    flex-wrap: wrap;
}

/* Events Calendar Section */
.media {
    display: flex;
    align-items: flex-start;
}

.media-left {
    margin-right: var(--spacing-md);
}

.media-content {
    flex: 1;
}

.p-5 {
    padding: 1.25rem;
}

/* Behind the Scenes Section */
.mt-4 {
    margin-top: 1rem;
}

.is-size-5 {
    font-size: 1.25rem;
}

/* Blog Section */
.subtitle.is-6 {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Media Section */
.mt-6 {
    margin-top: 3rem;
}

/* Contact Section */
.field {
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.control {
    position: relative;
}

.input, .textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 80, 107, 0.25);
    outline: none;
}

.textarea {
    min-height: 150px;
    resize: vertical;
}

.is-fullwidth {
    width: 100%;
}

/* Footer Section */
.footer {
    padding: var(--spacing-lg) 0;
    color: var(--text-light);
}

.has-background-dark {
    background-color: var(--background-dark);
}

.footer .title {
    color: white;
}

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

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

.footer a {
    color: var(--text-light);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.mr-3 {
    margin-right: 1rem;
}

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

/* Служебные классы */
.mb-6 {
    margin-bottom: 3rem;
}

.has-text-white {
    color: white !important;
}

.has-text-grey-lighter {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Анимации и 3D эффекты */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

/* Адаптивная типографика */
@media screen and (max-width: 1023px) {
    html {
        font-size: 15px;
    }
    
    .title.is-1 {
        font-size: 2.5rem;
    }
    
    .title.is-2 {
        font-size: 2rem;
    }
    
    .title.is-3 {
        font-size: 1.75rem;
    }
    
    .title.is-4 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .title.is-1 {
        font-size: 2rem;
    }
    
    .title.is-2 {
        font-size: 1.75rem;
    }
    
    .title.is-3 {
        font-size: 1.5rem;
    }
    
    .title.is-4 {
        font-size: 1.25rem;
    }
    
    .column.is-half, 
    .column.is-one-third, 
    .column.is-one-quarter,
    .column.is-two-thirds {
        width: 100%;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-menu.is-active {
        display: block;
    }
    
    .navbar-item {
        display: block;
        margin: 1rem 0;
    }
    
    .navbar-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .media {
        flex-direction: column;
    }
    
    .media-left {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Страницы Success, Privacy и Terms */
.success-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
}

.privacy-content,
.terms-content {
    padding-top: 100px;
}

/* Дополнительные стили для "Читать далее" ссылок */
.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-normal);
}

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

/* Стили для социальных сетей в футере */
.social-links {
    display: flex;
}

.social-links a {
    margin-right: 1rem;
    font-weight: 600;
    position: relative;
    transition: transform var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-links a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: width var(--transition-normal);
}

.social-links a:hover::before {
    width: 100%;
}

/* Параллакс эффект для фоновых изображений */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Эффекты гласморфизма */
.glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Ретро элементы */
.retro-text {
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.retro-border {
    border: 3px solid var(--primary-color);
    box-shadow: 5px 5px 0px var(--primary-dark);
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* CSS для скрипта анимации при скролле */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для изображений в карточках */
.card .card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-height: 250px;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .navbar-brand{
        width: 100%;
    }
}