/* ============================================================
   ОБЩИЕ СТИЛИ
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================
   МЕНЮ (ШАПКА)
   ============================================================ */
.top-menu {
    background: #1a1a2e;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.logo {
    color: white;
    font-size: 24px;
    font-weight: 800;
}
.logo span {
    color: #0073e6;
}
.nav-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.nav-links a {
    color: #b0b0c8;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 14px;
}
.nav-links a:hover {
    background: #0073e6;
    color: white;
}
.nav-links a.active {
    background: #0073e6;
    color: white;
}

/* ============================================================
   ГЛАВНАЯ (HERO)
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    text-align: center;
    padding: 80px 20px;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}
.hero h1 span {
    color: #0073e6;
}
.hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 30px;
}
.btn-hero {
    display: inline-block;
    padding: 14px 40px;
    background: #0073e6;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-hero:hover {
    background: #005bb5;
    transform: translateY(-2px);
}

/* ============================================================
   ТАРИФЫ
   ============================================================ */
section {
    margin: 60px 0;
}
section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.tariff-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}
.tariff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.tariff-card.popular {
    border: 2px solid #0073e6;
    position: relative;
}
.tariff-card .badge {
    background: #0073e6;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}
.tariff-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.tariff-card .price {
    font-size: 32px;
    font-weight: 800;
    color: #0073e6;
    margin-bottom: 20px;
}
.tariff-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: #718096;
}
.tariff-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}
.tariff-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}
.tariff-card ul li::before {
    content: '✅ ';
}
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: #0073e6;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #005bb5;
}
.btn-danger {
    background: #e53e3e;
}
.btn-danger:hover {
    background: #c53030;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature i {
    font-size: 48px;
    color: #0073e6;
    margin-bottom: 12px;
}
.feature h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.feature p {
    color: #718096;
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.testimonial p {
    font-style: italic;
    color: #4a5568;
}
.testimonial strong {
    display: block;
    margin-top: 12px;
    color: #1a202c;
}

/* ============================================================
   ФОРМЫ (РЕГИСТРАЦИЯ, ВХОД)
   ============================================================ */
.auth-form {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}
.auth-form .form-group {
    margin-bottom: 20px;
}
.auth-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}
.auth-form .form-group input,
.auth-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}
.auth-form .form-group input:focus,
.auth-form .form-group textarea:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0,115,230,0.1);
}
.auth-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}
.auth-form .error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.auth-form .success {
    background: #c6f6d5;
    color: #276749;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.auth-form .links {
    text-align: center;
    margin-top: 20px;
    color: #718096;
}
.auth-form .links a {
    color: #0073e6;
}
.auth-form .links a:hover {
    text-decoration: underline;
}

/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ
   ============================================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.dashboard-header h1 {
    font-size: 32px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.dashboard-grid .card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.dashboard-grid .card h3 {
    margin-bottom: 16px;
    color: #1a202c;
}
.dashboard-grid .card p {
    padding: 6px 0;
    color: #4a5568;
}
.dashboard-grid .card .status {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.dashboard-grid .card .status.paid,
.dashboard-grid .card .status.active {
    background: #c6f6d5;
    color: #276749;
}
.dashboard-grid .card .status.pending {
    background: #fefcbf;
    color: #975a16;
}
.dashboard-grid .card .status.failed {
    background: #fed7d7;
    color: #c53030;
}
.dashboard-grid .card .btn {
    margin-top: 12px;
    width: 100%;
    text-align: center;
}

/* ============================================================
   АДМИНКА
   ============================================================ */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.admin-container h1 {
    margin-bottom: 30px;
}
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.admin-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow-x: auto;
}
.admin-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-card table th,
.admin-card table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}
.admin-card table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}
.admin-card table tr:hover {
    background: #f7fafc;
}
.admin-card .status {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.admin-card .status.paid,
.admin-card .status.active {
    background: #c6f6d5;
    color: #276749;
}
.admin-card .status.pending {
    background: #fefcbf;
    color: #975a16;
}
.admin-card .status.failed {
    background: #fed7d7;
    color: #c53030;
}
.admin-card .btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    background: #0073e6;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.admin-card .btn-sm:hover {
    background: #005bb5;
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
footer {
    background: #1a1a2e;
    color: #a0aec0;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
}
footer .footer-links a {
    color: #a0aec0;
    margin: 0 10px;
    font-size: 14px;
}
footer .footer-links a:hover {
    color: #0073e6;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .nav-links {
        justify-content: center;
        width: 100%;
    }
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
    .auth-form {
        padding: 20px;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 10px;
    }
    .admin-card table {
        font-size: 12px;
    }
    .admin-card table th,
    .admin-card table td {
        padding: 6px 8px;
    }
}

/* ============================================================
   СТРАНИЦЫ РЕГИСТРАЦИИ И ВХОДА
   ============================================================ */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-form {
    max-width: 500px;
    width: 100%;
    background: white;
    padding: 45px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.auth-form h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 8px;
    color: #1a202c;
}
.auth-form .subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 15px;
}
.auth-form .form-group {
    margin-bottom: 18px;
}
.auth-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 14px;
}
.auth-form .form-group input,
.auth-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
    background: #f7fafc;
}
.auth-form .form-group input:focus,
.auth-form .form-group textarea:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0,115,230,0.1);
    background: white;
}
.auth-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #0073e6, #00c6ff);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 6px;
}
.auth-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,115,230,0.3);
}
.auth-form .error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}
.auth-form .success {
    background: #c6f6d5;
    color: #276749;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}
.auth-form .links {
    text-align: center;
    margin-top: 20px;
    color: #718096;
    font-size: 15px;
}
.auth-form .links a {
    color: #0073e6;
    font-weight: 600;
}
.auth-form .links a:hover {
    text-decoration: underline;
}
.auth-form .divider {
    text-align: center;
    margin: 20px 0;
    color: #a0aec0;
    font-size: 14px;
    position: relative;
}
.auth-form .divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #edf2f7;
}
.auth-form .divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* ===== АДАПТИВ ДЛЯ ФОРМ ===== */
@media (max-width: 576px) {
    .auth-form {
        padding: 30px 20px;
    }
    .auth-form h2 {
        font-size: 24px;
    }
}