/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Main Block */
.main-block {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
}

.main-block h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.main-block h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
    line-height: 1.1;
}

/* Telegram Button */
.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
    text-decoration: none;
    min-width: 280px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.telegram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #0077b3 0%, #0099e6 100%);
}

.telegram-button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.telegram-button svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.telegram-button:hover svg {
    transform: scale(1.1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .main-block {
        padding: 50px 35px;
    }
    
    .main-block h1 {
        font-size: 2.2rem;
    }
    
    .main-block h2 {
        font-size: 2.6rem;
    }
    
    .telegram-button {
        padding: 18px 36px;
        font-size: 1.2rem;
        min-width: 260px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-block {
        padding: 40px 30px;
        border-radius: 15px;
    }
    
    .main-block h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .main-block h2 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }
    
    .telegram-button {
        padding: 16px 32px;
        font-size: 1.1rem;
        min-width: 240px;
    }
    
    .telegram-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .main-block {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .main-block h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .main-block h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        line-height: 1.2;
    }
    
    .telegram-button {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 220px;
        gap: 12px;
    }
    
    .telegram-button svg {
        width: 22px;
        height: 22px;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 320px) {
    .main-block {
        padding: 25px 15px;
    }
    
    .main-block h1 {
        font-size: 1.3rem;
    }
    
    .main-block h2 {
        font-size: 1.6rem;
    }
    
    .telegram-button {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 200px;
        gap: 10px;
    }
    
    .telegram-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .main-block {
        padding: 20px 30px;
    }
    
    .main-block h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .main-block h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .telegram-button {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 200px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .telegram-button svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .main-block {
        background: rgba(30, 30, 30, 0.95);
        color: #fff;
    }
    
    .main-block h1 {
        color: #fff;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .main-block {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .telegram-button {
        display: none;
    }
    
    .loading-overlay {
        display: none !important;
    }
}