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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .language-selector {
        position: fixed;
        top: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 1000;
    }
    
    .flags {
        justify-content: center;
        width: auto;
        margin: 0 auto;
        max-width: 90vw;
        padding: 8px;
        gap: 6px;
    }
    
    .flag-btn img {
        width: 22px;
        height: 15px;
    }
}

.flags {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.flag-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.flag-btn img {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
}

.flag-btn:hover {
    transform: scale(1.1);
}

.flag-btn.active {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* На десктопе порядок: текст слева, менеджер справа */
@media (min-width: 769px) {
    .text-content {
        order: 1;
    }
    
    .manager-section {
        order: 2;
    }
}

.text-content {
    color: white;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.4;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

/* Manager Section */
.manager-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.manager-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 350px;
    width: 100%;
}

.manager-photo {
    margin-bottom: 25px;
}

.manager-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4f46e5;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.manager-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.manager-info p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.contact-btn i {
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .flags {
        padding: 8px;
        gap: 6px;
    }
    
    .flag-btn img {
        width: 25px;
        height: 16px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* На мобилке менеджер показывается первым */
    .manager-section {
        order: 1;
    }
    
    .text-content {
        order: 2;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .manager-card {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .manager-photo img {
        width: 120px;
        height: 120px;
    }
    
    .contact-buttons {
        gap: 12px;
    }
    
    .contact-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .manager-card {
        padding: 25px 15px;
    }
    
    .manager-photo img {
        width: 100px;
        height: 100px;
    }
    
    .contact-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

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

.main-content {
    animation: fadeInUp 0.8s ease-out;
}

.manager-card {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hover effects */
.feature:hover {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

.manager-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}
