/* 🎨 КРЕАТИВНЫЙ МИНИМАЛИСТИЧНЫЙ ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Основная секция */
.intro-redesign {
    padding: 240px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

body.welcome-banner-visible .intro-redesign {
    padding-top: 360px;
}

/* Анимированный фоновый паттерн */
.intro-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 204, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundPulse 20s ease-in-out infinite;
}

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

/* Креативный заголовок H1 */
.intro__header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.intro__title-creative {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 40px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

/* Анимация слов по одному */
.word-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.word-animate.delay-1 {
    animation-delay: 0.2s;
}

.word-animate.delay-2 {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Фото с креативной рамкой и интерактивом */
.intro__image-wrapper {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.intro__image-creative {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

/* Интерактив при наведении */
.intro__image-creative:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 204, 0, 0.3);
}

.intro__image-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.intro__image-creative:hover::before {
    opacity: 1;
}

.intro__image-creative img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.intro__image-creative:hover img {
    transform: scale(1.05);
}

.intro-img-mobile {
    display: none;
}

/* Креативное описание */
.intro__description-creative {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro__text-minimal {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Подсветка ключевых слов */
.intro__text-minimal::first-line {
    font-weight: 400;
    color: #333;
}

/* Минималистичные кнопки с интерактивом */
.intro__actions-creative {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.btn-creative {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Эффект ripple при клике */
.btn-creative::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-creative:active::before {
    width: 300px;
    height: 300px;
}

/* МИНИМАЛИСТИЧНЫЙ ДИЗАЙН - ОБЕ КНОПКИ БЕЛЫЕ С ЧЁРНОЙ ОБВОДКОЙ */
.btn-creative.primary,
.btn-creative.secondary {
    background: white !important;
    color: #000 !important;
    border: 3px solid #000 !important;
    box-shadow: 0 4px 0 #000, 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: visible !important;
}

.btn-creative.primary:hover,
.btn-creative.secondary:hover {
    background: #000 !important;
    color: white !important;
    transform: translate(-2px, -2px) !important;
    box-shadow: 0 6px 0 #000, 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

.btn-creative.primary:active,
.btn-creative.secondary:active {
    transform: translate(0, 0) !important;
    box-shadow: 0 2px 0 #000, 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    background: #ffcc00 !important;
    color: #000 !important;
}

/* Креативный интерактив - светящийся эффект */
.btn-creative.primary::before,
.btn-creative.secondary::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    background: linear-gradient(45deg, #ffcc00, #ff6b6b, #4ecdc4, #45b7d1) !important;
    border-radius: 8px !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.btn-creative.primary:hover::before,
.btn-creative.secondary:hover::before {
    opacity: 1 !important;
    animation: rainbowGlow 2s linear infinite !important;
}

@keyframes rainbowGlow {
    0% { background: linear-gradient(45deg, #ffcc00, #ff6b6b, #4ecdc4, #45b7d1); }
    25% { background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #ffcc00); }
    50% { background: linear-gradient(45deg, #4ecdc4, #45b7d1, #ffcc00, #ff6b6b); }
    75% { background: linear-gradient(45deg, #45b7d1, #ffcc00, #ff6b6b, #4ecdc4); }
    100% { background: linear-gradient(45deg, #ffcc00, #ff6b6b, #4ecdc4, #45b7d1); }
}

/* Эффект ripple при клике */
.btn-creative.primary::after,
.btn-creative.secondary::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 204, 0, 0.6) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
    z-index: 1 !important;
}

.btn-creative.primary:active::after,
.btn-creative.secondary:active::after {
    width: 300px !important;
    height: 300px !important;
}

/* Плавающая анимация для SVG иконки */
.btn-creative svg {
    transition: transform 0.3s ease;
}

.btn-creative.primary:hover svg {
    transform: translateX(4px);
    animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(4px); }
    50% { transform: translateX(8px); }
}

/* 📱 МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
    .intro-redesign {
        padding: 80px 0 45px;
    }
    
    .intro__header {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }
    
    .intro__title-creative {
        font-size: 32px;
        gap: 5px;
        margin-top: 0 !important;
    }
    
    .intro-img-desktop {
        display: none;
    }
    
    .intro-img-mobile {
        display: block;
    }
    
    .intro__image-wrapper {
        margin-bottom: 30px;
    }
    
    .intro__text-minimal {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .intro__actions-creative {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn-creative {
        width: 100%;
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    body.welcome-banner-visible .intro-redesign {
        padding-top: 240px;
    }
}

/* 💫 ДОПОЛНИТЕЛЬНЫЕ ИНТЕРАКТИВНЫЕ ЭФФЕКТЫ */

/* Параллакс эффект для изображения при скролле */
@media (min-width: 769px) {
    .intro__image-creative {
        transition: transform 0.1s ease-out;
    }
}

/* Пульсирующий эффект на кнопках */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(255, 204, 0, 0.3);
    }
}

.btn-creative.primary {
    animation: pulse 3s ease-in-out infinite;
}

.btn-creative.primary:hover {
    animation: none;
}

/* Креативная подсветка при фокусе (для accessibility) */
.btn-creative:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.3);
}

/* Квадратики с фичами - поднимаем над карточками товаров */
.intro__items {
    position: relative;
    z-index: 10 !important;
    margin-top: 60px;
}

.intro__items .item {
    position: relative;
    z-index: 10 !important;
}

/* Скрываем старые элементы если они есть */
.intro__info {
    display: none;
}

.intro__images {
    display: none;
}

.intro__mobile-image {
    display: none;
}

/* Плавное появление всего блока */
.intro-redesign {
    opacity: 0;
    animation: sectionFadeIn 1s ease 0.2s forwards;
}

@keyframes sectionFadeIn {
    to { opacity: 1; }
}

/* 🌟 Креативный акцент - светящаяся линия под заголовком */
.intro__header::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffcc00 0%, #ffd700 100%);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.5);
    animation: lineGrow 0.8s ease 0.5s forwards;
    transform: scaleX(0);
}

@keyframes lineGrow {
    to { transform: scaleX(1); }
}

/* Интерактивный эффект при наведении на текст */
.intro__text-minimal {
    transition: all 0.3s ease;
}

.intro__text-minimal:hover {
    color: #333;
    transform: scale(1.02);
}

/* 💡 Креативный hover эффект - граница кнопок */
.btn-creative::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    border: 2px solid currentColor;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.btn-creative:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

.rental-card__cta {
    margin-top: auto;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.welcome-banner-visible .intro__header {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body.welcome-banner-visible .intro__header {
        padding-top: 20px !important;
    }
    
    body.welcome-banner-visible .intro-redesign {
        padding-top: 90px;
    }
    
    /* Когда баннер скрыт, убираем лишние отступы */
    body:not(.welcome-banner-visible) .intro-redesign {
        padding-top: 80px;
    }
}

.intro__image-creative picture {
    display: block;
}

.intro__image-creative picture img {
    width: 100%;
    height: auto;
}
