/* =========================================
   1. СБРОС СТИЛЕЙ (TAILWIND PREFLIGHT)
   ========================================= */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overscroll-behavior-y: none;
    /* Фикс для Android: убивает системную резинку */
    height: 100%;
    /* Фикс для Android */
}

body {
    margin: 0;
    line-height: inherit;
    overscroll-behavior-y: none;
    /* Фикс для Android */
    height: 100%;
    /* Фикс для Android */
}

a {
    color: inherit;
    text-decoration: inherit;
}

button {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    text-transform: none;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    padding: 0;
}

h1,
h2,
p {
    margin: 0;
}

img,
svg,
video {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. ВАШИ КАСТОМНЫЕ КЛАССЫ И ФИКСЫ
   ========================================= */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none !important;
}

.BebasNeue-Book {
    font-family: BebasNeue-Book, sans-serif;
    font-weight: 300;
}

.roboto-mono {
    font-family: BebasNeue-Light, sans-serif;
    font-weight: 300;
}

.safe-pt {
    padding-top: max(1rem, env(safe-area-inset-top));
}

.safe-pb {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* =========================================
   АДАПТАЦИЯ SWIPER JS
   ========================================= */
.swiper {
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#fullscreen-menu {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px);
}

.menu-open {
    opacity: 1;
    pointer-events: auto;
}

.menu-closed {
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   3. ИСПОЛЬЗОВАННЫЕ КЛАССЫ TAILWIND
   ========================================= */
.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.h-8 {
    height: 2rem;
}

.h-full {
    height: 100%;
}

.w-8 {
    width: 2rem;
}

.w-full {
    width: 100%;
}

.max-w-6xl {
    max-width: 72rem;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.gap-6 {
    gap: 1.5rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.bg-black {
    background-color: #000000;
}

/* Заменено на rgba() для поддержки старых ТВ-браузеров */
.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.4);
}

.bg-black\/90 {
    background-color: rgba(0, 0, 0, 0.9);
}

.object-cover {
    object-fit: cover;
}

.p-2 {
    padding: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-28 {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pb-10 {
    padding-bottom: 2.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.text-left {
    text-align: left;
}

.text-1xl {
    font-size: 1.0rem;
    line-height: 1.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.75rem;
    line-height: 2rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-white {
    color: #ffffff;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:text-gray-400:hover {
    color: #9ca3af;
}

.hover\:text-white\/70:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   4. АДАПТИВНОСТЬ (ПЛАНШЕТЫ/ПК)
   ========================================= */
@media (min-width: 768px) {
    .md\:pb-24 {
        padding-bottom: 6rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

/* Бронебойный фикс для видео на Smart TV (заменяет object-cover) */
.tv-video-fix {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto !important;
    height: auto !important;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Оставляем для смартфонов и ПК */
}

/* 404 */

.glitch-text {
    animation: glitch 1s linear infinite;
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}
