:root {
    --primary-blue: #4F98FF;
    --dark-bg: #1B1D21;
    --text-grey: #ADADAD;
    --white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #F0F5FF;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.main-container {
    width: 100%;
    max-width: 1440px;
    background-color: var(--dark-bg);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.hero-bg {
    width: 100%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 40px 60px 0 60px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
}

.logo img {
    height: 32px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
}

.login-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.hero-text {
    text-align: center;
    color: var(--white);
    padding-top: 180px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
}

.search-widget {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    z-index: 5;
}

.search-tabs {
    display: flex;
}

.tab {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: none;
    padding: 12px 32px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: var(--white);
    color: #111;
}

.search-form {
    background: var(--white);
    padding: 12px 12px 12px 24px;
    border-radius: 0 16px 16px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group.full-width {
    flex: 1;
}

.search-icon {
    width: 20px;
    opacity: 0.6;
}

.search-form select,
.search-form input {
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 15px;
    color: #333;
    width: 100%;
}

.search-form select {
    cursor: pointer;
    padding-right: 20px;
}

.divider {
    width: 1px;
    height: 24px;
    background: #E5E5E5;
    margin: 0 24px;
}

.btn-dark {
    background: #0B0B0B;
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background 0.3s;
}

.btn-dark:hover {
    background: #333;
}

.popular-section {
    background-color: var(--dark-bg);
    border-radius: 40px 0 0 0;
    padding: 60px;
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.popular-header h2 {
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
}

.carousel-nav {
    display: flex;
    gap: 12px;
}

.carousel-nav button {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav button:hover {
    transform: scale(1.1);
}

/* Вот она магия для корректного клика! */
.carousel-nav button img {
    filter: brightness(0) invert(1);
    width: 24px;
    opacity: 0.5;
    transition: opacity 0.3s;
    pointer-events: none;
}

.carousel-nav button:hover img {
    opacity: 1;
}

.swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-slide {
    width: 186px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

.img-wrapper {
    width: 100%;
    height: 186px;
    border-radius: 16px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card:hover .img-wrapper img {
    transform: scale(1.08);
}

.card-info h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.card-info p {
    color: var(--text-grey);
    font-size: 13px;
}

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up-1 {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.fade-up-2 {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.fade-up-3 {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
}