/* 
   UNDERBALL — Основные стили
   Этот файл легко редактировать вручную.
*/

:root {
    --bg-color: #000000;
    --accent-color: #E31E24;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --card-bg: #0D0D0D;
    --border-color: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c01a1f;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.full-width {
    width: 100%;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 32px 0;
    transition: all 0.5s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 120px;
    width: auto;
    transition: height 0.5s ease;
}

.navbar.scrolled .logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: white;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: black;
    z-index: 2000;
    transition: right 0.4s ease;
    padding: 32px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.mobile-menu-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    height: calc(100% - 100px);
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-group span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.large-link {
    font-size: 24px;
    font-weight: 900;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%),
        linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%),
        url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-content {
    width: 100%;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 80px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.accent {
    color: var(--accent-color);
}

.hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.hero-list {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-list li {
    margin-bottom: 8px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Features */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-image {
    height: 424px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 32px;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Info Section */
.info {
    padding: 80px 0;
}

.info-header {
    margin-bottom: 48px;
}

.info-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

.info-header p {
    color: var(--text-secondary);
    max-width: 800px;
}

.info-banner {
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.info-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Location */
.location {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.location-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 32px;
}

.location-info {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.address {
    font-size: 18px;
    font-weight: 500;
}

.landmark {
    color: var(--text-secondary);
}

.location-map {
    height: 400px;
    background-color: #1A1A1A;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: black;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    max-width: 400px;
    margin-bottom: 32px;
}

.footer-phone {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-nav h4, .footer-rules h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.footer-nav ul li, .footer-rules ul li {
    margin-bottom: 16px;
}

.footer-nav ul li a, .footer-rules ul li a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.footer-nav ul li a:hover, .footer-rules ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

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

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
}

/* Content Pages (Rules, etc.) */
.content-page {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.content-header {
    margin-bottom: 64px;
    text-align: center;
}

.content-header h1 {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
}

.content-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
}

.content-body ul {
    margin-bottom: 32px;
}

.content-body li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.content-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.content-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 48px 0;
}

/* Gallery Carousel */
.gallery {
    padding: 80px 0;
}

.gallery-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-header h2 {
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding-bottom: 20px;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.carousel-item {
    flex: 0 0 80%;
    aspect-ratio: 16 / 9;
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 45%;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 30%;
    }
}

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

.carousel-item:hover img {
    transform: scale(1.05);
}

/* Reels Section */
.reels {
    padding: 80px 0;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .reels-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.reel-card {
    aspect-ratio: 9 / 16;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.reel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.reel-overlay span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-text h1 {
        font-size: 60px;
    }
    
    .hero-list, .hero-actions {
        justify-content: center;
    }
    
    .location {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 48px;
    }
}
