@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Переменные для киберпанк темы */
:root {
    --cyber-purple-dark: #0a0014;
    --cyber-purple: #1a0033;
    --cyber-purple-light: #330066;
    --cyber-pink: #ff1493;
    --cyber-blue: #00ffff;
    --cyber-gold: #FFD700;
    --cyber-silver: #C0C0C0;
    --cyber-bronze: #CD7F32;
    --cyber-special: #8A2BE2;
}

h2 {
    font-size: 4em;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff1493, #8a2be2, #ff69b4, #9370db, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.2);
    position: relative;
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
    background-color: rgba(20, 5, 30, 0.9);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    h2 {  font-size: 2em;}
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Киберпанк контейнер */
.kiber-container {
    background: linear-gradient(135deg, #0a0014 0%, #1a0033 25%, #330066 50%, #1a0033 75%, #0a0014 100%);
    padding: 30px 15px 15px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.kiber-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493, #00ffff);
    background-size: 400% 400%;
    animation: border-glow 4s ease infinite;
    border-radius: 15px;
    z-index: -2;
}

.kiber-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #0a0014 0%, #1a0033 25%, #330066 50%, #1a0033 75%, #0a0014 100%);
    border-radius: 13px;
    z-index: -1;
}

@keyframes border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Киберпанк навигация */
.kiber-href {
    display: flex;
    gap: 50px;
    place-content: center;
    margin: 50px 0 50px 0;
    position: relative;
    z-index: 10;
}

.kiber-href::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -30px;
    right: -30px;
    bottom: -15px;
    background: linear-gradient(45deg, transparent, rgba(255, 20, 147, 0.1), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kiber-href:hover::before {
    opacity: 1;
}

.kiber-href a {
    font-size: 30px;
    text-decoration: none;
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.kiber-href a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 20, 147, 0.2) 25%, 
        rgba(0, 255, 255, 0.2) 50%, 
        rgba(255, 20, 147, 0.2) 75%, 
        transparent 100%
    );
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.kiber-href a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff1493, #00ffff);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px #00ffff;
}

.kiber-href a:hover {
    font-weight: 900;
    transform: scale(1.05) perspective(1000px) rotateX(10deg);
    text-shadow: 
        0 0 10px #ff1493,
        0 0 20px #ff1493,
        0 0 30px #ff1493,
        2px 2px 0px #00ffff,
        4px 4px 0px rgba(0, 255, 255, 0.5);
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.8));
    animation: glitch 0.3s ease-in-out;
}

.kiber-href a:hover::before {
    opacity: 1;
    animation: neon-pulse 1s ease-in-out infinite alternate;
}

.kiber-href a:hover::after {
    width: calc(100% + 20px);
}

@keyframes glitch {
    0%, 100% { transform: scale(1.05) perspective(1000px) rotateX(10deg); }
    20% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(-2px); }
    40% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(2px); }
    60% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(-1px); }
    80% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(1px); }
}

@keyframes neon-pulse {
    0% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 20, 147, 0.2) 25%, 
            rgba(0, 255, 255, 0.2) 50%, 
            rgba(255, 20, 147, 0.2) 75%, 
            transparent 100%
        );
    }
    100% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 20, 147, 0.6) 25%, 
            rgba(0, 255, 255, 0.6) 50%, 
            rgba(255, 20, 147, 0.6) 75%, 
            transparent 100%
        );
    }
}

/* Стили для заголовка даты */
.kiber-container h3 {
    color: #00ffff;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Улучшенные степы */
.steps {
    gap: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.step {
    display: flex;
    height: 200px;
    width: 100%;
    border-radius: 15px;
    text-align: left;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 240, 255, 0.95));
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493);
    background-size: 300% 300%;
    animation: step-border 3s ease infinite;
    border-radius: 15px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 240, 255, 0.95));
    border-radius: 13px;
    z-index: -1;
}

@keyframes step-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(255, 20, 147, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2);
}

.step:hover::before {
    opacity: 1;
}

.step:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

.step-text {
    padding: 20px 10px 10px 20px;
    min-height: 200px;
    z-index: 1;
}

.step-text h3 {
    height: 35%;
    font-size: 15px;
    line-height: normal;
    margin: 0px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #2c1810;
}

.step-text hr {
    margin: 10px 10px 10px 0px;
    background: linear-gradient(90deg, #ff1493, #00ffff);
    height: 2px;
    border: none;
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.5);
}

.step-text p {
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #444;
}

.step img {
    border-radius: 0 15px 15px 0;
    height: auto;
    transition: 0.6s ease;
}

/* Киберпанк кнопка */
.btn-kiber {
    margin-top: 10px;
    background: linear-gradient(45deg, #ff1493, #00ffff);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-kiber:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

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

/* Оптимизированные баннеры */
.zoo-banner-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    margin: 30px 0;
    width: 100%;
}

.zoo-banner {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: #1a0033;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 25/12; /* Соотношение сторон для больших баннеров */
}

.zoo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.3);
}

.zoo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom; /* Устраняет проблему с пробелами под изображениями */
    display: block; /* Убирает проблему с лишним пространством */
    will-change: transform; /* Подготавливает браузер к анимации */
    transition: transform 0.4s ease;
}

.zoo-banner img:hover {
    transform: scale(1.04);
}

.zoo-banner:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff1493, #00ffff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

/* Размеры баннеров */
.zoo-big {
    grid-column: span 2; /* Занимает 1/4 сетки */
}

.zoo-small {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1; /* Квадратный формат */
}

/* Улучшенный important блок */
.important {
    align-items: center;
    background: linear-gradient(135deg, #fff7fc 0%, #f0e6ff 50%, #fff7fc 100%);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 50px 10px;
    margin: 20px 0 20px 0;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.important::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493);
    background-size: 300% 300%;
    animation: important-border 4s ease infinite;
    border-radius: 15px;
    z-index: -2;
}

.important::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #fff7fc 0%, #f0e6ff 50%, #fff7fc 100%);
    border-radius: 13px;
    z-index: -1;
}

@keyframes important-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.important span {
    color: #c16c92;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 5px rgba(193, 108, 146, 0.3);
    font-size: 1.3em;
}

/* Якорные ссылки */
#old_archive, #kiber-sale, #kiber-rate {
    scroll-margin-top: 100px;
}

.kiber-center {
    justify-content: center;
}

.matrix-bg {
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .zoo-banner-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .zoo-banner-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kiber-href {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    .kiber-href a {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .zoo-banner-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zoo-banner {
        /* aspect-ratio: 2/1; */
    }
    
    .kiber-href {
        flex-direction: column;
        gap: 20px;
    }
    
    .kiber-href a {
        font-size: 20px;
    }
}

@media (min-width: 900px) and (max-width: 1495px) {
    .step img {
        display: none;
    }
    .step {
        height: auto;
        padding-bottom: 20px;
    }
}

@media (min-width:600px) and (max-width: 899px) {
    .step {
        flex-direction: column-reverse;
        justify-content: flex-end;
        height: auto;
        padding-bottom: 20px;
    }
    .step img {
        object-fit: cover;
        margin-top: 10px;
        object-position: top;
        border-radius: 15px;
        max-height: 200px;
    }
    .step-text h3 {
        height: auto;
    }
}

@media (max-width: 599px) {
    .steps {
        flex-direction: column;
    }
    .step img {
        width: 25vw;
        object-fit: cover;
        object-position: top;
    }
    .step h3 {
        align-content: center;
    }
    .step-text {
        padding-right: 15px;
        width: 75vw;
    }
    .contact {
        display: block;
    }
    .contact-icon {
        margin-top: 15px;
    }
    .step-text p {
        text-align: left;
    }
}

@media (max-width: 767px) { 
    .kiber-crutch .swiper-wrapper {
        aspect-ratio: 3 / 1;
        width: 100%;
    }

    .kiber-crutch .top_slider_wrapp.view_3 .main-slider__item tr{
        background-size: contain;
        margin-top: -12px;
        padding-top: 40%;
    }
}

/* Стили для таймера ярмарки */
.fair-timer-container {
    text-align: center;
    margin: 20px 0 0 0;
    padding: 20px;
    background: rgba(20, 5, 30, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 20, 147, 0.5);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.fair-timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: timer-scan 3s ease-in-out infinite;
}

@keyframes timer-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.fair-status {
    font-family: 'Orbitron', monospace;
    font-size: 1.4em;
    font-weight: 700;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    animation: status-glow 2s ease-in-out infinite alternate;
}

.fair-status.ended {
    color: #ff1493;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
}

@keyframes status-glow {
    0% { text-shadow: 0 0 15px rgba(0, 255, 255, 0.6); }
    100% { text-shadow: 0 0 25px rgba(0, 255, 255, 0.8), 0 0 35px rgba(0, 255, 255, 0.4); }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.time-unit {
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(50, 15, 80, 0.6));
    border: 2px solid rgba(255, 20, 147, 0.4);
    border-radius: 10px;
    padding: 15px 10px;
    min-width: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
    border-color: #ff1493;
}

.time-value {
    font-family: 'Orbitron', monospace;
    font-size: 2em;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #ffffff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: timer-flow 3s linear infinite;
}

@keyframes timer-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.time-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.8em;
    font-weight: 600;
    color: #ff1493;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.4);
}

.timer-info {
    margin-top: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    letter-spacing: 1px;
}

/* Адаптация таймера для мобильных устройств */
@media (max-width: 768px) {
    .fair-timer-container {
        margin: 15px 0 20px 0;
        padding: 15px;
    }

    .fair-status {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    .countdown-timer {
        gap: 10px;
    }

    .time-unit {
        padding: 10px 8px;
        min-width: 60px;
    }

    .time-value {
        font-size: 1.6em;
    }

    .time-label {
        font-size: 0.7em;
    }
}
