/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --primary-light: #6c8aff;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --secondary-light: #8a2be2;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --info-color: #2a9d8f;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fb 0%, #e9ecef 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Заголовок */
header {
    padding: 25px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad0c4, #ff9a9e);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo i {
    font-size: 2.5rem;
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-text h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Основной контент */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.choice-section {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.choice-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.choice-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Кнопки выбора */
.choice-btn {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

#objectGroupBtn::before {
    background: var(--primary-color);
}

#measureRulesBtn::before {
    background: var(--secondary-color);
}

.choice-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

#objectGroupBtn:hover {
    border-color: var(--primary-color);
}

#measureRulesBtn:hover {
    border-color: var(--secondary-color);
}

.choice-btn:hover .btn-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.btn-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    font-size: 2rem;
    transition: var(--transition);
}

#objectGroupBtn .btn-icon {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.2));
    color: var(--primary-color);
}

#measureRulesBtn .btn-icon {
    background: linear-gradient(135deg, rgba(114, 9, 183, 0.1), rgba(114, 9, 183, 0.2));
    color: var(--secondary-color);
}

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

#objectGroupBtn:hover .btn-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

#measureRulesBtn:hover .btn-icon {
    background: linear-gradient(135deg, var(--secondary-color), #5a08a0);
    color: white;
}

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-content h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.btn-content p {
    color: var(--gray-color);
    font-size: 1rem;
}

.btn-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--gray-color);
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0.7;
}

#objectGroupBtn:hover .btn-arrow {
    background: var(--primary-color);
    color: white;
}

#measureRulesBtn:hover .btn-arrow {
    background: var(--secondary-color);
    color: white;
}

/* Футер */
footer {
    padding: 20px 40px;
    background: var(--light-gray);
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin-bottom: 5px;
}

.footer-info {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        min-height: auto;
    }
    
    header {
        padding: 20px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .choice-section h2 {
        font-size: 1.8rem;
    }
    
    .choice-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .choice-btn {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .btn-icon {
        margin-right: 0;
        margin-bottom: 20px;
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .btn-content {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .btn-content h3 {
        font-size: 1.4rem;
    }
    
    .btn-arrow {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .choice-section h2 {
        font-size: 1.5rem;
    }
    
    .choice-btn {
        padding: 20px 15px;
    }
    
    .btn-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn-content h3 {
        font-size: 1.2rem;
    }
    
    .btn-content p {
        font-size: 0.9rem;
    }
}