/* ================================================
   LIGA STAVOK APK - PREMIUM MOBILE-FIRST DESIGN
   Современный адаптивный дизайн с оптимизацией
   ================================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #017133;
    --primary-light: #01a84d;
    --primary-dark: #014d24;
    --text-white: #FFFFFF;
    --text-light: #F0F0F0;
    --bg-dark: #0a0f14;
    --bg-darker: #050810;
    --accent-gold: #ffd700;
    --gradient-primary: linear-gradient(135deg, #017133 0%, #01a84d 100%);
    --gradient-dark: linear-gradient(135deg, #0a0f14 0%, #1a1f24 100%);
    --gradient-hero: linear-gradient(135deg, rgba(1, 113, 51, 0.92) 0%, rgba(5, 8, 16, 0.88) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(1, 113, 51, 0.4);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === HEADER === */
header {
    background: rgba(10, 15, 20, 0.98);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(1, 113, 51, 0.3);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-white);
}

nav a:hover::after {
    width: 100%;
}

.login-btn {
    background: var(--text-white);
    color: var(--bg-dark);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--text-white);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

.login-btn:hover {
    background: transparent;
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* === MOBILE MENU === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.7rem 1.3rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.hero-feature i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid var(--text-white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* === SECTIONS === */
section {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* === ADVANTAGES === */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.advantage-card {
    background: var(--gradient-dark);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(1, 113, 51, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    font-size: 2.8rem;
    color: var(--primary-green);
    margin-bottom: 1.2rem;
    display: block;
}

.advantage-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* === APP FEATURES === */
.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.feature-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-white);
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.app-mockup {
    position: relative;
    text-align: center;
    padding: 1rem;
}

.app-mockup img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.app-mockup img:hover {
    transform: scale(1.03);
}

/* === SPORTS GRID === */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sport-card {
    position: relative;
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.sport-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    transition: all 0.3s ease;
}

.sport-card:hover img {
    transform: scale(1.1);
}

.sport-card:hover {
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    transform: translateY(-8px);
}

.sport-overlay h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.sport-overlay p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === FAQ === */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gradient-dark);
    border-radius: 15px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(1, 113, 51, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.3rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-white);
    transition: background 0.3s ease;
    font-size: 0.95rem;
}

.faq-question:hover {
    background: rgba(1, 113, 51, 0.1);
}

.faq-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.3rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* === FOOTER === */
footer {
    background: var(--bg-dark);
    border-top: 2px solid rgba(1, 113, 51, 0.3);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.age-restriction {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE DESIGN === */

/* Tablets (768px - 1024px) */
@media (min-width: 768px) {
    .app-features {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .app-mockup {
        order: 2;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    html {
        font-size: 17px;
    }
    
    .hero {
        min-height: 650px;
        padding: 0;
    }
    
    section {
        padding: 5rem 2rem;
    }
}

/* Tablet & Desktop (768px+) - показываем навигацию */
@media (min-width: 768px) {
    nav {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    header {
        position: sticky;
    }
    
    .header-container {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    nav {
        order: 3;
        flex-basis: 100%;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 0;
    }
    
    nav a {
        display: block;
        padding: 0.7rem 1rem;
        text-align: center;
        background: rgba(1, 113, 51, 0.1);
        border-radius: 8px;
    }
    
    .login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: 500px;
        padding: 0;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-features {
        gap: 0.8rem;
    }
    
    .hero-feature {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .advantages-grid,
    .sports-grid {
        gap: 1.5rem;
    }
    
    .advantage-card,
    .sport-card {
        padding: 1.5rem;
    }
    
    .feature-item {
        gap: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .sport-card {
        height: 250px;
    }
    
    .sport-overlay {
        padding: 1.2rem;
    }
    
    .faq-question {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 0.8rem;
    }
    
    .hero {
        min-height: 450px;
        padding: 0;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-feature {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hero-feature i {
        font-size: 1rem;
    }
    
    section {
        padding: 2.5rem 1rem;
    }
    
    .advantage-card {
        padding: 1.5rem 1.2rem;
    }
    
    .advantage-icon {
        font-size: 2.4rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .sport-card {
        height: 220px;
    }
    
    .sport-overlay {
        padding: 1rem;
    }
    
    .sport-overlay p {
        font-size: 0.85rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .advantage-card:hover {
        transform: none;
    }
    
    .sport-card:hover {
        transform: none;
    }
    
    .sport-card:hover img {
        transform: scale(1.05);
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Image Grid Mobile Adaptations */
@media (max-width: 767px) {
    /* Adapt 3-column image grids to single column */
    section div[style*="grid-template-columns: repeat(3, 1fr)"],
    section div[style*="display: grid; grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    
    /* Adapt 2-column grids to single column */
    section div[style*="grid-template-columns: repeat(2, 1fr)"],
    section div[style*="grid-template-columns: 1fr 1fr"],
    section div[style*="display: grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Flex containers to column on mobile */
    section div[style*="display: flex; justify-content: center"],
    section div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    /* Max-width adjustments for images */
    section div[style*="max-width: 500px"],
    section div[style*="max-width: 800px"] {
        max-width: 100% !important;
    }
    
    /* Hide large decorative images on very small screens */
    @media (max-width: 480px) {
        section img[style*="border-radius"][style*="box-shadow"] {
            max-height: 300px;
            object-fit: cover;
        }
    }
}

/* === LIGHTBOX STYLES === */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(1, 113, 51, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: linear-gradient(135deg, #017133 0%, #01a84d 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 113, 51, 0.4);
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 25px rgba(1, 113, 51, 0.6);
}

.lightbox-image {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lightbox-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.lightbox-image:hover::after {
    opacity: 0.9;
}

/* Print Styles */
@media print {
    header,
    footer,
    .cta-buttons,
    .login-btn {
        display: none;
    }
}
