/* Reset and Base Styles */
@font-face {
    font-family: 'SF Pro';
    src: url('SF-Pro.ttf') format('truetype');
    font-weight: 100 1000;
    font-stretch: 50% 100%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro';
    src: url('SF-Pro-Italic.ttf') format('truetype');
    font-weight: 100 1000;
    font-stretch: 50% 100%;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-bg: #000000;
    --color-text: #FFFFFF;
    --color-accent: #9CF700;
    --color-card-bg: #111111;
    --color-border: #333333;
    
    --font-main: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --container-width: 1200px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 510;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 18px;
}

/* Typography Utilities */
.link-highlight {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.link-highlight:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.font-heading {
    font-family: var(--font-main);
    font-weight: 1000;
    font-stretch: 50%;
    font-variation-settings: 'wght' 1000, 'wdth' 50;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.font-body {
    font-family: var(--font-main);
    font-weight: 510;
    font-variation-settings: 'wght' 510, 'wdth' 100;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Components */
.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 1rem 3rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

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

.btn-accent:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars if content slightly exceeds */
    border-bottom: 1px solid var(--color-border);
    position: relative; /* For background video */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

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

.hero .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* For scroll indicator */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    width: 100%;
    left: 0;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse-icon {
    width: 20px;
    height: 35px;
    border: 2px solid var(--color-text);
    border-radius: 10px;
    position: relative;
}

.mouse-wheel {
    width: 2px;
    height: 6px;
    background-color: var(--color-accent);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: mouse-scroll 2s infinite;
}

@keyframes mouse-scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.hero-image-wrapper {
    margin-bottom: 2vh;
    display: flex;
    justify-content: center;
    flex-shrink: 1; /* Allow image to shrink if needed */
    min-height: 0; /* Important for flex child shrinking */
}

.hero-image {
    max-width: 100%;
    max-height: 45vh; /* Limit image height on desktop */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem); /* Reduced max size */
    margin-bottom: 2vh;
    color: #FFFFFF;
    line-height: 0.9;
    flex-shrink: 0;
    white-space: normal; /* Allow wrapping */
}

.highlight {
    background-color: var(--color-accent);
    color: #000000;
    padding: 0 0.1em;
    display: inline-block;
    white-space: nowrap; /* Keep "ОТ БРИУСА" together */
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Mobile adjustments for Hero */
@media (max-width: 768px) {
    .hero {
        height: 100vh; /* Restore full viewport height */
        min-height: -webkit-fill-available; /* Fix for mobile browser toolbars */
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 6rem); /* Maximize size for mobile */
        letter-spacing: -0.05em; /* Very tight for impact */
        line-height: 0.85;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Tariffs Section */
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tariff-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tariff-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.tariff-card-vip {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(156, 247, 0, 0.1);
}

.tariff-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.tariff-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tariff-price {
    font-size: 2.5rem; /* Slightly larger */
    color: var(--color-accent);
    margin: 0;
}

.tariff-price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tariff-price-old {
    font-size: 1.5rem;
    color: #666;
    text-decoration: line-through;
    opacity: 0.7;
}

.tariff-price-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
    line-height: 1.2;
}

.highlight-text {
    color: var(--color-accent);
    font-weight: 1000;
}

.tariff-extra-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.extra-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.extra-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.extra-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    width: 100%;
}

.extra-title .highlight {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    white-space: normal;
}

.extra-info-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
}

.tariff-body {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.tariff-section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: #888;
}

.tariff-list, .tariff-list-ordered {
    list-style: none;
    padding-left: 0;
}

.tariff-list li, .tariff-list-ordered li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.tariff-list li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tariff-list-icons {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.tariff-list-icons li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tariff-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.tariff-list-icons span {
    padding-top: 2px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(156, 247, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; /* Grid cell size */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0) 100%); /* Fade out at bottom */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0) 100%);
}

/* Ambient Glows */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(156, 247, 0, 0.08) 0%, rgba(156, 247, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.glow-1 {
    top: -300px;
    left: -300px;
}

.glow-2 {
    bottom: -300px;
    right: -300px;
}

.glow-3 {
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(156, 247, 0, 0.05) 0%, rgba(156, 247, 0, 0) 70%);
}

/* Note with Icon */
.note-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.note-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.note-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    fill: var(--color-accent); /* Fill the lightning bolt */
}

.note {
    text-align: center;
    color: var(--color-bg);
    background-color: var(--color-accent);
    margin: 0; /* Reset margin since wrapper handles it */
    font-family: var(--font-main);
    font-weight: 1000;
    font-variation-settings: 'wght' 1000, 'wdth' 50;
    text-transform: uppercase;
    font-size: 1.1rem; /* Reduced from 1.5rem */
    padding: 0.4rem 0.8rem;
    display: inline-block;
    transform: none; /* Remove skew */
}

.start-date {
    font-size: 1.8rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    text-align: center;
}

/* Target Audience Section - Carousel */
.target-audience {
    overflow: hidden; /* Prevent horizontal scroll on body */
}

.reviews-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem; /* Reduced from var(--spacing-lg) which was 4rem */
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-lg);
    margin-top: 1rem; /* Add air above title relative to icon */
    color: var(--color-text);
}

.carousel-hint {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align left to match title usually, or center if title is centered */
    margin-bottom: 0.5rem; /* Space between icon and title */
    color: var(--color-accent);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.carousel-hint.hidden {
    opacity: 0;
}

.hint-icon {
    display: block;
    height: 24px; /* Smaller icon */
    width: auto;
}

.carousel-wrapper {
    display: flex;
    gap: 1rem; /* Reduced gap from var(--spacing-md) which is 2rem */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem; /* Space for scrollbar if visible/touch */
    margin: 0 calc(-1 * var(--spacing-md)); /* Negative margin to bleed to edges */
    padding-left: var(--spacing-md); /* Restore padding */
    padding-right: var(--spacing-md);
    
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

.review-item {
    flex: 0 0 auto;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-snap-align: center;
}

.review-description {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #FFFFFF; /* Changed from #AAA to white for 100% visibility */
    margin: 0;
    text-align: left;
    opacity: 1; /* Explicitly set to 100% */
}

.carousel-card {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.carousel-card:hover {
    transform: scale(1.02);
    border-color: var(--color-accent);
}

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

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img, .modal-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid var(--color-border);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close svg {
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    opacity: 0.7;
    transform: rotate(90deg);
}

body.modal-open {
    overflow: hidden;
}

/* Mobile adjustments for Carousel */
@media (max-width: 768px) {
    .review-item {
        width: 240px;
    }
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    overflow: hidden;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-sm);
}

.footer-logo {
    font-size: 25vw; /* Massive responsive font size */
    line-height: 0.8;
    color: #222; /* Subtle dark grey or use var(--color-accent) if preferred */
    margin: 0;
    letter-spacing: -0.05em;
    width: 100%;
    display: block;
}

.footer-copyright {
    color: #666;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for lists */
.audience-list li:nth-child(1) { transition-delay: 0.1s; }
.audience-list li:nth-child(2) { transition-delay: 0.2s; }
.audience-list li:nth-child(3) { transition-delay: 0.3s; }
.audience-list li:nth-child(4) { transition-delay: 0.4s; }
.audience-list li:nth-child(5) { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
}
