/* Загальні стилі */
:root {
    --primary-blue: #1a5fb4;
    --secondary-blue: #2980b9;
    --accent-green: #27ae60;
    --accent-red: #e74c3c;
    --accent-orange: #f39c12;
    --light-gray: #f5f7fa;
    --medium-gray: #bdc3c7;
    --dark-gray: #34495e;
    --text-color: #2c3e50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

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

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 30px;
}

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

.logo i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--dark-gray);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover {
    background-color: rgba(26, 95, 180, 0.1);
    color: var(--primary-blue);
}

nav a.active {
    background-color: var(--primary-blue);
    color: white;
}

/* Герой-секція */
.hero {
    background: linear-gradient(135deg, #1a5fb4 0%, #2980b9 100%);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Авторизація */
.auth-section {
    margin-bottom: 40px;
}

.auth-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.auth-card h2 {
    color: var(--dark-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-card > p {
    color: var(--medium-gray);
    margin-bottom: 25px;
}

.auth-status {
    background-color: #fff9e6;
    border-left: 4px solid var(--accent-orange);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-indicator.not-authed i {
    color: var(--accent-red);
}

.status-indicator.authed i {
    color: var(--accent-green);
}

.status-info {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.auth-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.auth-btn:hover {
    background-color: var(--secondary-blue);
}

.auth-btn.secondary {
    background-color: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.auth-btn.secondary:hover {
    background-color: rgba(26, 95, 180, 0.1);
}

.demo-note {
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-blue);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.demo-note i {
    color: var(--primary-blue);
    margin-top: 3px;
}

/* Картки голосувань */
.voting-options h2 {
    color: var(--dark-gray);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.option-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.option-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

.option-icon.president {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.option-icon.referendum {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.option-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.option-card p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.option-stats {
    display: flex;
    justify-content: space-between;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

.option-stats i {
    margin-right: 5px;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--medium-gray);
    color: var(--medium-gray);
}

.footer-info {
    margin-top: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Адаптивність */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}
