* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.navbar {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #2c3e50;
}

.logo span { color: #3498db; }

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.btn-register {
    background: #3498db;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.hero {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    padding: 60px 0 80px;
    color: white;
}

.hero-subtitle {
    margin-bottom: 40px;
    font-size: 18px;
    opacity: 0.9;
}

.role-selection {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.role-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    width: 350px;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.role-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.role-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #3498db;
}

.role-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.role-card ul li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #ecf0f1;
}

.btn-role {
    display: inline-block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: auto; 
}

.btn-client {
    background: #3498db;
}

.btn-role:hover {
    filter: brightness(1.1);
}

/* Карточки заказов */
.latest-jobs { margin-top: 50px; }

.job-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tag {
    background: #e1f0fa;
    color: #3498db;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.btn-apply {
    background: #fff;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-apply:hover {
    background: #3498db;
    color: white;
}
/* Статистика */
.stats-bar {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
}

.stat-text {
    color: #7f8c8d;
    font-size: 14px;
}

/* Категории */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
    font-size: 28px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.cat-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: 0.3s;
}

.cat-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

/* Преимущества */
.how-it-works {
    background: #fdfdfd;
    padding: 60px 0;
}

.features-grid {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.feature-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-item p {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.6;
}
.footer {
    background-color: #1a2a3a;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column; /* Элементы встают друг под друга */
    align-items: center;    /* Центровка по горизонтали */
    justify-content: center;
    text-align: center;     /* Центровка текста внутри блоков */
    gap: 25px;              /* Расстояние между блоками */
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-copyright {
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
    order: 2; /* Можно поменять порядок, если нужно (1 - верх, 2 - центр, 3 - низ) */
}

.footer-copyright strong {
    color: #3498db;
}

.footer-support {
    display: flex;
    flex-direction: column;
    align-items: center; /* Убираем сдвиг вправо, ставим по центру */
}

.footer-support span {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.footer-support a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}
/* Стили для кнопок авторизации в шапке */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между кнопками */
}

.btn-login {
    text-decoration: none;
    color: #555; /* Цвет текста */
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    transition: 0.3s;
    border: 1px solid transparent; /* Резервируем место под рамку */
    border-radius: 5px;
}

.btn-login:hover {
    color: #3498db; /* Цвет при наведении */
    border-color: #3498db; /* Появление рамки при наведении */
    background-color: rgba(52, 152, 219, 0.05); /* Легкий фон */
}

.btn-register {
    background: #3498db;
    color: white;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.btn-register:hover {
    background: #2980b9;
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}
.dropdown-balance {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc; /* Легкий фон для выделения */
}

.bal-label {
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.bal-amount {
    font-size: 16px;
    font-weight: 800;
    color: #2ecc71; /* Зеленый цвет для денег */
}

/* Убедись, что divider не слипается */
.dropdown-divider {
    height: 1px;
    background: #edf2f7;
    margin: 0;
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-support {
        align-items: center;
    }
    .footer-links a {
        margin: 0 10px;
    }
}
