@import url('https://fonts.googleapis.com/css2?family=Consolas&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #060608;
    --bg-main-gradient: radial-gradient(circle at 50% -20%, #1a0d0d 0%, #060608 70%);
    --bg-card: #0c0c0f;
    --bg-input: #121216;
    --accent-red: #dd2d4a;
    --accent-glow: rgba(221, 45, 74, 0.25);
    --text-white: #ffffff;
    --text-muted: #787885;
    --border: rgba(255, 255, 255, 0.03);
    --border-hover: rgba(221, 45, 74, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    user-select: none;
}

body {
    background-color: var(--bg-main);
    background-image: var(--bg-main-gradient);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка сайта */
header {
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

/* Стилизация твоего логотипа AR с автоматическим удалением черного фона */
.logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Убирает черный фон, оставляя только светлые элементы */
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-profile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-exit-nav {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-exit-nav:hover { color: #ff4d4d; border-color: rgba(255,77,77,0.2); }

.btn-auth-primary {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(221, 45, 74, 0.2);
}

.btn-auth-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.btn-auth-secondary:hover { color: var(--text-white); }

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    flex: 1;
}

/* Главная страница */
.hero-wrapper {
    text-align: center;
    padding: 100px 0 60px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 25px;
}
.hero-title span { color: var(--accent-red); }

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-hero-purchase {
    background: var(--accent-red);
    color: #fff;
    padding: 16px 38px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(221, 45, 74, 0.3);
}

.btn-hero-video {
    background: #101014;
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 16px 38px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

.index-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.stat-card-index {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
}

.stat-row-index {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.stat-title-index { font-weight: 700; font-size: 1.05rem; }
.stat-value-index { font-family: 'Consolas', monospace; font-size: 1.1rem; font-weight: 700; }
.stat-desc-index { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* Карточки продуктов */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.product-card:hover { border-color: var(--border-hover); }

.prod-days { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; }
.prod-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.prod-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 25px; flex: 1; }
.prod-price { font-size: 2.2rem; font-weight: 900; font-family: 'Consolas', monospace; margin-bottom: 20px; }

.btn-prod-buy {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.product-card:hover .btn-prod-buy { background: var(--accent-red); border-color: transparent; }

/* Личный кабинет (Профиль) */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    margin-top: 25px;
}

.profile-left-panel, .profile-right-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
}

.profile-avatar-block {
    text-align: center;
    margin-bottom: 25px;
}
.avatar-image-placeholder {
    width: 90px; height: 90px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 0 auto 15px;
}
.profile-un-text { font-size: 1.2rem; font-weight: 800; }
.profile-email-text { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.sub-status-bar { width: 100%; height: 5px; background: rgba(255,255,255,0.02); border-radius: 3px; margin: 20px 0 8px; }
.sub-status-fill { width: 100%; height: 100%; background: #454550; border-radius: 3px; }
.sub-status-fill.active { background: var(--accent-red); }

.profile-info-input-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.p-info-label { color: var(--text-muted); }
.p-info-value { font-weight: 600; }

.profile-action-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-white);
}
.profile-action-link:hover { border-color: var(--border-hover); }

/* Админ-панель */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table th, .admin-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.admin-table th { color: var(--text-muted); font-weight: 600; }
.admin-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-white);
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 5px;
}
.admin-btn:hover { border-color: var(--accent-red); }

/* Страницы Юридических Документов */
.doc-box { max-width: 800px; margin: 40px auto; }
.doc-title-main { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; }
.doc-subtitle-update { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.doc-block { display: flex; gap: 30px; margin-bottom: 40px; }
.doc-number { font-size: 3.5rem; font-weight: 900; color: rgba(221, 45, 74, 0.15); font-family: 'Consolas', monospace; line-height: 1; }
.doc-text h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; }
.doc-text p { color: #9c9ca3; line-height: 1.7; font-size: 0.95rem; }

/* Формы Авторизации */
.auth-wrapper { max-width: 380px; margin: 60px auto; text-align: center; }
.auth-form-title { font-size: 1.8rem; font-weight: 800; margin: 20px 0; }
.form-group { margin-bottom: 15px; }
.form-control {
    width: 100%; background: var(--bg-input); border: 1px solid var(--border);
    padding: 14px 18px; border-radius: 10px; color: var(--text-white); font-size: 0.95rem; outline: none;
}
.form-control:focus { border-color: rgba(221, 45, 74, 0.4); }

.hcaptcha-dummy-box {
    background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
    padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
}
.captcha-checkbox { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,0.1); border-radius: 4px; cursor: pointer; }
.agreement-checkbox-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 20px; font-size: 0.8rem; color: var(--text-muted); }
.agreement-box { width: 16px; height: 16px; border: 2px solid var(--border); border-radius: 3px; cursor: pointer; }

.btn-auth-submit {
    width: 100%; background: var(--accent-red); color: white; border: none;
    padding: 14px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-bottom: 15px;
}

/* Система Тостов */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 10000; }
.toast {
    background: #0f0f14; border: 1px solid var(--accent-red); padding: 14px 22px;
    border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 600;
    transform: translateX(180%); transition: transform 0.25s ease;
}
.toast.active { transform: translateX(0); }

/* Футер */
footer { border-top: 1px solid var(--border); padding: 50px 20px; background: #040405; margin-top: auto; }
.footer-top { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; margin-bottom: 30px; }
.footer-left { max-width: 320px; }
.f-left-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 900; font-size: 1.15rem; text-transform: uppercase; }
.f-left-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.footer-grid-links { display: flex; gap: 60px; }
.f-col h4 { color: var(--text-white); margin-bottom: 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.f-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; font-size: 0.85rem; }
.f-col a:hover { color: var(--text-white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.02); padding-top: 25px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }