/* assets/css/style.css - Основные стили и анимации */

* {
    font-family: 'Roboto', 'Arial', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #1e1e2f;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563EB, #3B82F6, #1D4ED8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3B82F6, #60A5FA, #2563EB);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #3B82F6 #1e1e2f;
}

/* Эффекты карточек */
.card-hover {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.2);
}

.btn-click:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* Пульсация кнопок */
@keyframes bluePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.pulse-btn {
    animation: bluePulse 1.8s infinite;
}

.pulse-btn:hover {
    animation: none;
}

/* Фоновые пузырьки */
.bubble-bg {
    position: relative;
    overflow-x: hidden;
    background-color: #ffffff;
}

.bubble-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 5% 15%, rgba(79, 70, 229, 0.12) 8px, transparent 8px),
                      radial-gradient(circle at 92% 25%, rgba(99, 102, 241, 0.1) 12px, transparent 12px),
                      radial-gradient(circle at 15% 70%, rgba(79, 70, 229, 0.08) 15px, transparent 15px),
                      radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.12) 10px, transparent 10px),
                      radial-gradient(circle at 45% 92%, rgba(79, 70, 229, 0.09) 20px, transparent 20px),
                      radial-gradient(circle at 70% 12%, rgba(99, 102, 241, 0.07) 14px, transparent 14px),
                      radial-gradient(circle at 25% 45%, rgba(79, 70, 229, 0.06) 18px, transparent 18px),
                      radial-gradient(circle at 60% 60%, rgba(99, 102, 241, 0.11) 22px, transparent 22px),
                      radial-gradient(circle at 95% 55%, rgba(79, 70, 229, 0.05) 16px, transparent 16px),
                      radial-gradient(circle at 8% 88%, rgba(99, 102, 241, 0.08) 25px, transparent 25px);
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.bubble-bg > * {
    position: relative;
    z-index: 1;
}

/* Герой секция */
.hero-section {
    position: relative;
    overflow: hidden;
}

.bubbles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    background-image: url('https://i.ibb.co/6RM51rv2/Pngtree-transparent-soap-bubbles-vector-colorful-5204648.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    animation: floatBubble 8s ease-in-out infinite;
}

@keyframes floatBubble {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) translateX(8px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
}

/* Логотипы */
.logo-img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 42px;
    }
    .footer-logo-img {
        height: 42px;
    }
}

/* Карточки цен - оптимизированные без тормозов */
.price-card {
    background: white;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.2);
}

.price-icon {
    transition: transform 0.3s ease;
}

.price-card:hover .price-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4F46E5, #6366F1) !important;
}

.price-card:hover .price-icon i {
    color: white !important;
}

/* Иконки преимуществ */
.floating-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

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

/* Плавающая кнопка телефона (жёлтая) */
.floating-phone {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #eab308);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.floating-phone.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: phonePulse 1.8s infinite;
}

.floating-phone:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #d97706, #ca8a04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    animation: none;
}

.floating-phone i {
    font-size: 1.8rem;
    color: white;
}

@keyframes phonePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@media (max-width: 768px) {
    .floating-phone {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 20px;
    }
    .floating-phone i {
        font-size: 1.5rem;
    }
}

/* Изображение в герое */
.hero-image-block {
    width: 100%;
    height: auto;
    display: block;
    animation: floatImage 4s ease-in-out infinite;
}

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

@media (min-width: 768px) {
    .hero-image-block {
        max-width: 140%;
        margin-left: -40%;
    }
}

@media (min-width: 1024px) {
    .hero-image-block {
        max-width: 150%;
        margin-left: -50%;
    }
}

/* Стрелки в секции "Как работаем" */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #818cf8;
    background: white;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    flex-shrink: 0;
}

.step-arrow i {
    font-size: 1.8rem;
}

.step-arrow:hover {
    transform: scale(1.1);
    color: #4F46E5;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.2);
}

@media (max-width: 768px) {
    .step-arrow {
        display: none;
    }
}

/* Номера шагов */
.step-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Кастомные кнопки навигации */
.custom-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #4F46E5;
    font-size: 1.2rem;
}

.custom-nav-btn:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.gallery-custom-prev {
    left: 0;
}

.gallery-custom-next {
    right: 0;
}

/* Анимация появления */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект для навигационных ссылок */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #4F46E5, #3B82F6);
    transition: width 0.3s ease;
}

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

/* Анимация для карточек отзывов */
.review-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ===== СТИЛИ ДЛЯ КНОПОК ===== */

/* Базовые стили для всех кнопок */
.order-btn,
.hero-main-btn,
.footer-submit-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Текстура для кнопок */
.order-btn::before,
.hero-main-btn::before,
.footer-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.ibb.co/LXKjkP30/Gemini-Generated-Image-u1zy8hu1zy8hu1zy.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.order-btn:hover::before,
.hero-main-btn:hover::before,
.footer-submit-btn:hover::before {
    opacity: 0.4;
}

/* Текст поверх текстуры */
.order-btn span,
.order-btn i,
.hero-main-btn span,
.hero-main-btn i,
.footer-submit-btn span {
    position: relative;
    z-index: 2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .text-4xl {
        font-size: 1.8rem;
    }
    
    .price-card {
        padding: 20px 15px;
    }
    
    .price-card h3 {
        font-size: 1.2rem;
    }
    
    .price-card .text-4xl {
        font-size: 1.5rem;
    }
}

/* Эффект загрузки */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Фикс для карусели "До/Після" */
.beforeAfterSwiper {
    overflow: visible !important;
    width: 100%;
}

.beforeAfterSwiper .swiper-slide {
    width: 100% !important;
    height: auto !important;
}

.beforeAfterSwiper img {
    width: 100%;
    max-width: 100%;
    height: 224px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .beforeAfterSwiper img {
        height: 200px;
    }
}

/* Фикс для пагинации */
.before-after-pagination {
    display: flex;
    gap: 6px;
}

.before-after-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s;
}

.before-after-pagination .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 4px;
    background-color: #4F46E5;
}

/* Общий фикс для горизонтальной прокрутки */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

body * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Фикс для стабильной высоты карусели */
.before-after-track {
    display: flex;
}

.before-after-slide {
    flex-shrink: 0;
    width: 100%;
}

/* Фиксируем минимальную высоту для всех слайдов */
.before-after-slide > div {
    min-height: 320px;
}

@media (max-width: 768px) {
    .before-after-slide > div {
        min-height: 280px;
    }
}
/* ===== ВИМКНЕННЯ АНІМАЦІЙ НА ТЕЛЕФОНІ ===== */
@media (max-width: 768px) {
    /* Вимикаємо всі анімації пухирців */
    .bubbles-overlay,
    .bubble,
    .section-bubbles,
    .bubble-light,
    .bubble-white {
        display: none !important;
    }
    
    /* Вимикаємо анімації появи */
    .fade-up,
    .fade-up.visible,
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Вимикаємо анімації іконок та карток */
    .floating-icon,
    .price-card:hover,
    .price-card:hover .price-icon,
    .hero-image-block,
    .step-number,
    .review-card:hover {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Вимикаємо текстуру на кнопках на телефоні (легше малювати) */
    .order-btn::before,
    .hero-main-btn::before,
    .footer-submit-btn::before {
        display: none !important;
    }
}