/* Общие стили */
body {
    font-family: 'Lora', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: break-all;
}

/* Стили для изображений */
img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
}

/* Стили для кнопок с призывом к действию */
a:not(.header a), button:not(.header button) {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    a:not(.header a), button:not(.header button) {
        width: 100%;
    }
}

/* Анимация появления блоков */
.animate-fade-in {
    opacity: 0;
    -webkit-transform: translateY(20px);
    -moz-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-animation: fadeIn 0.6s forwards;
    -moz-animation: fadeIn 0.6s forwards;
    animation: fadeIn 0.6s forwards;
}

@-webkit-keyframes fadeIn {
    to { opacity: 1; -webkit-transform: translateY(0); }
}
@-moz-keyframes fadeIn {
    to { opacity: 1; -moz-transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Табы */
.tab-button {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.tab-button.active {
    background-color: #3b82f6 !important;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* Спойлеры */
.spoiler-toggle {
    position: relative;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.spoiler-toggle::after {
    content: 'expand_more';
    font-family: 'Material Icons';
    position: absolute;
    right: 1rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
}
.spoiler-toggle.active::after {
    content: 'expand_less';
}
.spoiler-content {
    display: none;
}
.spoiler-content.active {
    display: block;
}

/* Бегущая строка */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}
.animate-marquee {
    display: inline-block;
    -webkit-animation: marquee 15s linear infinite;
    -moz-animation: marquee 15s linear infinite;
    animation: marquee 15s linear infinite;
}
@-webkit-keyframes marquee {
    0% { -webkit-transform: translateX(100%); }
    100% { -webkit-transform: translateX(-100%); }
}
@-moz-keyframes marquee {
    0% { -moz-transform: translateX(100%); }
    100% { -moz-transform: translateX(-100%); }
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Плавный скролл для якорных ссылок */
a[href^="#"] {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    -moz-scroll-behavior: smooth;
}

/* Адаптивность для навигации */
@media (max-width: 991px) {
    nav {
        display: none !important;
    }
}

/* Стили для формы */
form input, form select, form textarea {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
form input:focus, form select:focus, form textarea:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Дополнительные стили для Tailwind */
.container {
    max-width: 1200px;
}