/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #6A8EEB 0%, #8BA3F0 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    
    /* Colors */
    --primary-color: #6A8EEB;
    --secondary-color: #8BA3F0;
    --accent-color: #667eea;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --black: #1a202c;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: #6d78ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    padding-top: var(--spacing-lg);
    margin-top: 0;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    filter: 
        contrast(1.1) 
        brightness(1.05) 
        saturate(0.8) 
        hue-rotate(10deg);
    transition: var(--transition-normal);
}

.hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    filter: 
        contrast(1.15) 
        brightness(1.1) 
        saturate(0.9) 
        hue-rotate(15deg);
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 50%, 
        rgba(106, 142, 235, 0.3) 100%);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Choice Section */
.choice-section {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl) 0;
    position: relative;
}

.choice-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}


.choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.choice-button {
    display: block;
    text-decoration: none;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.choice-button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.choice-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    color: var(--white);
    transition: var(--transition-normal);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.choice-button-primary {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(123, 179, 240, 0.2) 100%);
}

.choice-button-primary:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3) 0%, rgba(123, 179, 240, 0.3) 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.3);
}

.choice-button-primary .choice-icon {
    background: linear-gradient(135deg, #4A90E2, #7BB3F0);
}

.choice-button-secondary {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
}

.choice-button-secondary:hover {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.3) 0%, rgba(102, 126, 234, 0.3) 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(118, 75, 162, 0.3);
}

.choice-button-secondary .choice-icon {
    background: linear-gradient(135deg, #764BA2, #667eea);
}

.choice-button:hover .choice-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.choice-text h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.choice-text p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.choice-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.choice-button:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-info {
    text-align: center;
}

.footer-info h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 768px) {
    .choice-section {
        padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
        padding-top: var(--spacing-md);
        margin-top: 0;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .hero-image {
        display: none;
    }


    .choice-buttons {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        margin-top: var(--spacing-xl);
    }

    .choice-button {
        padding: var(--spacing-xl);
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .choice-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-2xl);
    }

    .choice-text h3 {
        font-size: var(--font-size-lg);
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        color: var(--white) !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        font-weight: 700;
    }
    
    .choice-text p {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Дополнительные media queries для лучшей совместимости */
@media (max-width: 414px) {
    /* iPhone 11 Pro Max, iPhone XS Max */
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .choice-button {
        padding: var(--spacing-md);
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    .choice-text h3 {
        font-size: var(--font-size-base);
        line-height: 1.2;
    }
    
    .choice-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 375px) {
    /* iPhone X, iPhone 11 Pro */
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .choice-button {
        padding: var(--spacing-sm);
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    .choice-text h3 {
        font-size: var(--font-size-sm);
        line-height: 1.1;
    }
    
    .choice-text p {
        font-size: 12px;
    }
    
    .choice-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 320px) {
    /* iPhone SE, старые Android */
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .choice-button {
        padding: var(--spacing-xs);
        background: rgba(0, 0, 0, 0.8) !important;
    }
    
    .choice-text h3 {
        font-size: 11px;
        line-height: 1.0;
    }
    
    .choice-text p {
        font-size: 10px;
    }
    
    .choice-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }


    .choice-button {
        padding: var(--spacing-lg);
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(35px);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .choice-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }

    .choice-text h3 {
        font-size: var(--font-size-base);
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
        color: var(--white) !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
        font-weight: 700;
    }
    
    .choice-text p {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    }
}

/* Универсальные стили для лучшей совместимости */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Фиксы для разных браузеров */
.choice-button {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.hero-img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Smooth scrolling */

/* Selection styles */
::selection {
    background: var(--accent-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--white);
}
