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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/im.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Мобильный фон */
@media (max-width: 768px) {
    .background-image {
        background-image: url('../images/mob_b.png');
    }
}

/* Главный контейнер */
.header {
    position: fixed;
    top: 1%;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    color: #FFD700;
    text-align: center;
    text-shadow: 
        2px 2px 0px #B8860B,
        4px 4px 0px #8B4513,
        6px 6px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Impact', 'Arial Black', sans-serif;
    position: relative;
    z-index: 10;
}

/* Стили для барбершопов */
.barber-pole {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.barber-pole::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 215, 0, 0.1), 
        transparent);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(360deg);
    }
}

.barber-pole svg {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Анимация полос внутри SVG */
.spinning svg path[fill="#d80d1a"] {
    animation: barberStripes 3s linear infinite;
    transform-origin: 50% 50%;
}

.spinning svg path[fill="#1d86fa"] {
    animation: barberStripes 3s linear infinite reverse;
    transform-origin: 50% 50%;
}

.spinning.reverse svg path[fill="#d80d1a"] {
    animation: barberStripes 3s linear infinite reverse;
}

.spinning.reverse svg path[fill="#1d86fa"] {
    animation: barberStripes 3s linear infinite;
}

@keyframes barberStripes {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-20px);
    }
}

/* Основное содержимое */
.main-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 200px 20px 120px;
}

/* Нижняя панель */
.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-bottom: 20px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 30%, 
        rgba(0, 0, 0, 0.3) 100%);
}

.bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: linear-gradient(145deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 165, 0, 0.05) 50%, 
        rgba(255, 69, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    min-width: 120px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bottom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.bottom-btn:hover::before {
    left: 100%;
}

.bottom-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 215, 0, 1);
    background: linear-gradient(145deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 165, 0, 0.15) 50%, 
        rgba(255, 69, 0, 0.2) 100%);
}

.bottom-btn:active {
    transform: translateY(-2px);
}

.bottom-btn i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #FFD700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.bottom-btn:hover i {
    color: #FFF;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.btn-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.bottom-btn:hover .btn-text {
    color: #FFD700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.7),
        0 0 20px rgba(255, 215, 0, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .logo-container {
        gap: 20px;
    }
    
    .barber-pole {
        width: 60px;
        height: 60px;
    }
    
    .barber-pole svg {
        width: 40px;
        height: 40px;
    }
    
    .since-text {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    
  
    .bottom-buttons {
        gap: 10px;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .bottom-btn {
        min-width: 80px;
        padding: 15px 20px;
    }
    
    .bottom-btn i {
        font-size: 20px;
    }
    
    .btn-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .logo-container {
        gap: 15px;
    }
    
    .barber-pole {
        width: 50px;
        height: 50px;
    }
    
    .barber-pole svg {
        width: 35px;
        height: 35px;
    }
    
    .since-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
  
    .bottom-btn {
        min-width: 70px;
        padding: 12px 15px;
    }
    
    .bottom-btn i {
        font-size: 18px;
    }
    
    .btn-text {
        font-size: 10px;
    }
}

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



/* Дополнительные эффекты */
.premium-btn {
    position: relative;
}

.premium-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 215, 0, 0.2), 
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-btn:hover::after {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Стили для надписи "since 2021" */
.since-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #FFA500;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Arial', sans-serif;
    text-shadow: 
        1px 1px 0px #B8860B,
        2px 2px 0px #8B4513,
        3px 3px 5px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 165, 0, 0.4);
    position: relative;
}



/* Анимация появления для заголовка */
@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* СУПЕР КРУТЫЕ ЭФФЕКТЫ ПОЯВЛЕНИЯ С ДЫМОМ */

/* Дымовой эффект при загрузке */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(200, 200, 200, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(180, 180, 180, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(220, 220, 220, 0.7) 0%, transparent 50%);
    background-size: 200px 200px, 300px 300px, 400px 400px, 250px 250px, 350px 350px;
    animation: smokeEffect 1.2s ease-out forwards;
    z-index: 9999;
    pointer-events: none;
}

@keyframes smokeEffect {
    0% {
        opacity: 1;
        transform: scale(0.8);
        filter: blur(0px);
    }
    40% {
        opacity: 0.6;
        transform: scale(1.3);
        filter: blur(8px);
    }
    80% {
        opacity: 0.2;
        transform: scale(1.8);
        filter: blur(15px);
    }
    100% {
        opacity: 0;
        transform: scale(2.2);
        filter: blur(25px);
        visibility: hidden;
    }
}

/* Обновленные анимации появления */
.since-text {
    opacity: 0;
    animation: simpleAppear 0.8s ease-out 0.5s both;
}

.main-title {
    opacity: 0;
    animation: fireAppear 1s ease-out 1.8s both;
}

.barber-pole {
    opacity: 0;
    animation: spiralAppear 0.8s ease-out 2.2s both;
}

.barber-pole.spinning.reverse {
    animation: spiralAppear 0.8s ease-out 2.4s both;
}

.bottom-btn {
    opacity: 0;
    transform: translateY(100px);
}

.bottom-btn:nth-child(1) { animation: slideUpBounce 0.6s ease-out 2.8s both; }
.bottom-btn:nth-child(2) { animation: slideUpBounce 0.6s ease-out 3s both; }
.bottom-btn:nth-child(3) { animation: slideUpBounce 0.6s ease-out 3.2s both; }
.bottom-btn:nth-child(4) { animation: slideUpBounce 0.6s ease-out 3.4s both; }
.bottom-btn:nth-child(5) { animation: slideUpBounce 0.6s ease-out 3.6s both; }

/* Анимации появления элементов */
@keyframes simpleAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
        filter: blur(2px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0px) scale(1);
        filter: blur(0px);
    }
}

@keyframes explosiveAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.3) rotate(-90deg);
        filter: blur(2px);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes fireAppear {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
        filter: blur(8px) hue-rotate(60deg);
        text-shadow: 0 0 30px rgba(255, 69, 0, 0.8);
    }
    30% {
        opacity: 0.6;
        transform: scale(1.1) translateY(-10px);
        filter: blur(3px) hue-rotate(30deg);
        text-shadow: 0 0 40px rgba(255, 165, 0, 0.9);
    }
    70% {
        opacity: 0.9;
        transform: scale(0.95) translateY(5px);
        filter: blur(1px) hue-rotate(10deg);
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
        filter: blur(0px) hue-rotate(0deg);
        text-shadow: 
            2px 2px 0px #B8860B,
            4px 4px 0px #8B4513,
            6px 6px 10px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6);
    }
}

@keyframes spiralAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(720deg);
        filter: blur(15px);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
        filter: blur(5px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.1);
        filter: blur(1px);
    }
    70% {
        opacity: 1;
        transform: translateY(10px) scale(0.95);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
        filter: blur(0px);
    }
}

/* Дополнительные искры */
.header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

/* ВОЛШЕБНАЯ ПЫЛЬ НА ВЕСЬ ЭКРАН */

/* Контейнер для волшебных частиц */
.magic-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    animation: dustAppear 1s ease-out 4s both;
}

@keyframes dustAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Слои волшебной пыли */
.magic-dust::before,
.magic-dust::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

/* --- PRELOADER OVERLAY --- */
.preloader-overlay {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at 50% 40%, #FFD700 0%, #1e1e1e 80%, #111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(.77,0,.18,1);
    opacity: 1;
    pointer-events: all;
}
.preloader-overlay.hide {
    opacity: 0;
    pointer-events: none;
}
.preloader-logo {
    font-size: 3.5rem;
    color: #FFD700;
    text-shadow: 0 0 40px #FFD70088, 0 0 80px #fff2;
    animation: logoPulse 1.5s infinite alternate cubic-bezier(.77,0,.18,1);
}
@keyframes logoPulse {
    0% { filter: blur(0px); opacity: 1; }
    100% { filter: blur(2px); opacity: 0.7; }
}

/* --- MAGIC PARTICLES --- */
.magic-dust {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    top: 0; left: 0; width: 100vw; height: 100vh;
}
.magic-dust .particle {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 60%, #fff 100%);
    opacity: 0.7;
    filter: blur(1px);
    animation: floatParticle 4s infinite linear;
}
@keyframes floatParticle {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { opacity: 1; }
    100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}

/* --- MAIN CONTENT FADE-IN --- */
.main-content, .header, .bottom-panel {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(.77,0,.18,1), transform 1.2s cubic-bezier(.77,0,.18,1);
}
body.page-loaded .main-content,
body.page-loaded .header,
body.page-loaded .bottom-panel {
        opacity: 1;
    transform: translateY(0) scale(1);
}

/* Preloader scissors cut effect */
.preloader-anim {
    position: relative;
    width: 420px;
    max-width: 90vw;
    margin: 0 auto;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.preloader-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFD700;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    font-family: 'Impact', 'Arial Black', sans-serif;
}
.preloader-title span {
    display: inline-block;
    transition: opacity 0.25s, filter 0.25s, transform 0.25s;
    opacity: 1;
    filter: none;
}
.preloader-title span.cut {
    opacity: 0;
    filter: blur(8px) brightness(2);
    transform: translateY(30px) scale(1.2) rotate(-10deg);
}
.preloader-scissors {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    font-size: 2.2rem;
    color: #FFD700;
    transition: left 0.18s cubic-bezier(.77,0,.18,1), top 0.18s cubic-bezier(.77,0,.18,1), transform 0.18s;
    pointer-events: none;
}
.preloader-scissors.cut i {
    animation: scissorsCut 0.18s linear;
}
@keyframes scissorsCut {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-30deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1); }
}
@media (max-width: 600px) {
    .preloader-anim { width: 98vw; }
    .preloader-title { font-size: 2rem; }
}


