/* Кастомные CSS стили для лендинга производителей кухонь */

/* Базовые стили */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes rotatePulse {
    0% {
        transform: rotate(0) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Прелоадер */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    flex-direction: column;
    color: white;
    font-size: 24px;
    gap: 8px;
}

.loader-icon {
    color: white;
    font-size: 40px;
    animation: rotatePulse 1.25s infinite linear;
    line-height: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Компоненты */
.company-card {
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Фильтры */
.filter-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.filter-btn:hover:not(.active) {
    background-color: #f1f5f9 !important;
    transform: translateY(-1px);
}

/* Hero секция */
.hero-bg {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background-attachment: fixed;
}

/* Карточки статистики */
.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Рейтинговые карточки */
.rating-position {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

.company-card .rating-position:nth-child(1) {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Золото */
}

.company-card:nth-child(2) .rating-position {
    background: linear-gradient(135deg, #6b7280, #4b5563); /* Серебро */
}

.company-card:nth-child(3) .rating-position {
    background: linear-gradient(135deg, #92400e, #78350f); /* Бронза */
}

/* Звезды рейтинга */
.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-stars .fas {
    margin-right: 1px;
}

/* Преимущества */
.advantage-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

.advantage-item:hover {
    transform: translateX(2px);
}

.advantage-item .fas {
    color: #10b981;
    font-size: 0.875rem;
}

/* Недостатки */
.disadvantage-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: #dc2626;
    font-size: 0.875rem;
}

.disadvantage-item .fas {
    color: #dc2626;
    margin-top: 0.125rem;
}

/* Галерея изображений */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gallery-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Placeholder для изображений */
.image-placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    border-radius: 0.5rem;
}

.image-placeholder .fas {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Методология */
.methodology-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease;
}

.methodology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.methodology-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Навигация */
.nav-link {
    position: relative;
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Кнопка "Наверх" */
#back-to-top {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

/* Мобильное меню */
.mobile-menu {
    animation: fadeInUp 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .company-card {
        padding: 1rem;
    }
    
    .company-card .flex.items-center.gap-3.mb-2 {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .gallery-image {
        height: 6rem;
    }
    
    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .methodology-card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .rating-position {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Анимации при скролле */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

/* Утилиты */
.text-gradient {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Эффекты при загрузке */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

/* Hover эффекты для карточек */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Градиенты для бейджей */
.badge-leader {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.badge-quality {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.badge-fast {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-individual {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.badge-belarus {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.badge-local {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.badge-stable {
    background: linear-gradient(135deg, #eab308, #d97706);
}

.badge-large {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.badge-experience {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

/* FAQ секция */

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover h3 {
    color: #2563eb;
}

.faq-icon {
    transition: all 0.3s ease;
}

.faq-answer {
    transition: all 0.3s ease;
    animation: fadeInDown 0.3s ease;
}

.faq-answer.hidden {
    animation: fadeOutUp 0.3s ease;
}
.faq-answer ol,.faq-answer ul{
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-left: 20px;
}
.faq-answer ol{
    list-style: decimal;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Стили для контента FAQ */
.faq-answer .prose {
    line-height: 1.7;
}

.faq-answer .prose h4 {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.faq-answer .prose p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.faq-answer .prose ul {
    margin: 0;
    padding-left: 1rem;
}

.faq-answer .prose li {
    margin: 0.25rem 0;
}

/* Эффекты для изображений */
.image-hover {
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-hover img {
    transition: transform 0.3s ease;
}

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

/* Паралакс эффект для hero секции */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

.list-numbers {
    list-style: decimal;
    padding-left: 20px;
}

.logo img {
    width: 220px;
}
@media(max-width: 767px){
    .logo img {
        width: 160px;
    }
}

.page-loader img {
    width: 140px;
    position: absolute;
    top: 10px;
}