@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS Variables for consistent colors */
:root {
    --primary-black: #000000;
    --primary-yellow: linear-gradient(180deg, #fec732 0%, #fec732 100%);
    --secondary-gray: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 43.75%, #D3D3D3 100%);
    --yellow-solid: #fec732;
    --text-white: #ffffff;
    --text-dark: #333333;
    --hover-yellow: #e6b329;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--primary-black);
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--yellow-solid);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-yellow);
}

.card-image.solo {
    max-width: 300px;
}

header .container {
    max-width: unset !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--yellow-solid);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-yellow);
}

.auth-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #fec732 0%, #f0b90b 100%);
    color: var(--primary-black);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0b90b 0%, #e6b329 100%);
    transform: translateY(-2px);
    color: var(--primary-black);
    box-shadow: 0 8px 25px rgba(254, 199, 50, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-black);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.98);
    padding: 2rem;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav {
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav .auth-buttons {
    margin-top: 2rem;
    flex-direction: column;
    gap: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 35%;
    padding: 2rem 0;
    margin-left: auto;
    margin-right: 2rem;
    text-align: left;
    padding-left: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    background: var(--primary-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
}

.hero-cta .btn {
    flex: 0 0 auto;
    min-width: 250px;
    padding: 14px 24px;
}

.hero-cta .btn i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--yellow-solid);
}

/* Cards and Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

ul, ol {
    list-style: none;
}

.card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 199, 50, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(254, 199, 50, 0.2);
    border-color: var(--yellow-solid);
}

.card h3 {
    color: var(--yellow-solid);
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.table th {
    background: var(--yellow-solid);
    color: var(--primary-black);
    font-weight: 600;
}

.table tr:hover {
    background: rgba(254, 199, 50, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    padding: 3rem 0 1rem;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--yellow-solid);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--yellow-solid);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.payment-icon {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */

@media (max-width: 1280px) {
    .nav-desktop{
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .auth-buttons .btn {
        padding: 12px 20px;
        font-size: 16px;
        min-width: 120px;
        border-radius: 5px;
    }
}

@media (max-width: 440px) {
    .auth-buttons .btn span {
        display: none;
    }

    .auth-buttons .btn {
        min-width: unset !important;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .auth-buttons .btn i {
        display: inline !important;
        margin-right: 0;
    }
}

.auth-buttons .btn i {
    display: none;
}

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        max-width: 38% !important;
        margin-right: 1.5rem !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-cta .btn {
        min-width: 220px !important;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav {
        gap: 1.5rem;
    }
}

/* Мобильные (до 767px) */
@media (max-width: 767px) {
    .auth-buttons .btn {
        padding: 12px 10px !important;
    }

    .hero {
        align-items: flex-end !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .hero-cta .btn {
        width: auto !important;
        max-width: 300px !important;
        min-width: 280px !important;
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.7rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
    }
    
    .hero-cta .btn {
        max-width: 280px !important;
        min-width: 260px !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .section {
        margin-bottom: 2rem;
    }
    
    .section.text-center {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .section.text-center .hero-cta {
        gap: 1rem;
    }
    
    .section.text-center .hero-cta .btn {
        min-width: auto;
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .auth-buttons {
        gap: 0.8rem;
    }
    
    .auth-buttons .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
}

/* Laptop (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Большие экраны (1280px+) */
@media (min-width: 1280px) {
    .hero-content {
        max-width: 32% !important;
        margin-right: 3rem !important;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-description {
        font-size: 1.1rem !important;
    }
}

/* CTA Section Improvements */
.section.text-center .hero-cta {
    justify-content: center;
    margin: 2rem auto;
    max-width: 800px;
}

.section.text-center .hero-cta .btn {
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

/* Enhanced CTA Sections */
.section.text-center {
    background: linear-gradient(135deg, rgba(254, 199, 50, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(254, 199, 50, 0.1);
}

.section.text-center h2.section-title {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.section.text-center .hero-cta {
    margin: 2.5rem auto;
    gap: 2rem;
}

.section.text-center .hero-cta .btn {
    min-width: 250px;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Button icon spacing */
.btn i {
    margin-right: 10px;
    font-size: 0.9em;
}

/* Card button improvements */
.card .btn {
    margin-top: 1rem;
    width: auto;
    min-width: 140px;
}

/* Auth buttons in header */
.auth-buttons {
    gap: 1.2rem;
}

.auth-buttons .btn {
    min-width: 100px;
    padding: 10px 33px;
    font-size: 16px;
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-yellow {
    color: var(--yellow-solid);
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}