:root {
    --primary: #010ED0;
    --dark: #242627;
    --white: #ffffff;
    --gray: #f8f9fa;
    --border: #e0e0e0;
}

body { margin: 0; font-family: 'Segoe UI', sans-serif; background: var(--gray); color: var(--dark); line-height: 1.6; }
.container { width: 92%; max-width: 1100px; margin: 0 auto; }
a { text-decoration: none; transition: 0.3s; }

.main-header { background: var(--white); border-bottom: 2px solid #eee; padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo a { font-size: 22px; font-weight: 800; color: var(--dark); }
.logo span { color: var(--primary); }

.navigation ul { list-style: none; display: flex; padding: 0; margin: 0; align-items: center; }
.navigation li { margin-left: 20px; }
.navigation a { color: var(--dark); font-weight: 600; }
.navigation a:hover { color: var(--primary); }
.nav-btn { background: var(--primary); color: #fff !important; padding: 8px 18px; border-radius: 4px; }

.hero-section { min-height: 70vh; display: flex; align-items: center; text-align: center; background: #fff; padding: 40px 0; }
.badge { color: var(--primary); font-weight: bold; text-transform: uppercase; margin-bottom: 15px; display: block; }
.hero-content h1 { font-size: clamp(28px, 5vw, 48px); margin: 0; }
.hero-content h2 { font-size: clamp(18px, 3vw, 24px); color: #666; font-weight: 400; }

.buy-link, .btn-primary, .submit-btn { 
    background: var(--primary); color: #fff; padding: 12px 30px; border-radius: 4px; 
    font-weight: bold; border: none; cursor: pointer; display: inline-block; 
}
.buy-link:hover, .btn-primary:hover, .submit-btn:hover { background: #000bb3; transform: translateY(-2px); }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); padding: 11px 30px; border-radius: 4px; font-weight: bold; }

.auth-wrapper { display: flex; justify-content: center; padding: 40px 0; }
.auth-card { background: #fff; width: 100%; max-width: 450px; padding: 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); box-sizing: border-box; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }

.service-row { 
    background: #fff; border: 1px solid var(--border); padding: 20px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-radius: 8px; margin-bottom: 15px; 
}
.service-info h3 { margin: 5px 0; font-size: 22px; }
.category-tag { color: var(--primary); font-size: 12px; font-weight: bold; }
.price-value { font-size: 24px; font-weight: 800; color: var(--primary); }

.main-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.main-table th { background: var(--primary); color: #fff; padding: 15px; text-align: left; }
.main-table td { padding: 15px; border-bottom: 1px solid #eee; }

.success-box { background: #d4edda; color: #155724; padding: 15px; margin-bottom: 20px; border-radius: 4px; border-left: 5px solid #28a745; }
.error-msg { background: #fdecea; color: #d32f2f; padding: 15px; margin-bottom: 20px; border-radius: 4px; border-left: 5px solid #f44336; }

@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .service-row { flex-direction: column; text-align: center; gap: 15px; }
}

/* Вспомогательные правки для сетки */
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-12, .col-md-6, .col-lg-4 { padding-left: 15px; padding-right: 15px; }

/* Чтобы иконки смотрелись красиво */
.bi { vertical-align: middle; }
.success-box i { font-size: 18px; margin-right: 10px; }

/* Фикс для кнопок внутри сетки */
.service-row {
    transition: transform 0.2s;
    display: flex;
}
.service-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}