
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* HEADER */
.header {
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
    width: auto;
    border-radius: 8px;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: #888;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2ecc71;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.nav a.active::after,
.nav a:hover::after {
    width: 100%;
}

.auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Стили для авторизованного пользователя */
.auth-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
}

.user-name-link {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.user-name-link:hover {
    color: #27ae60;
    background: rgba(46, 204, 113, 0.1);
}

.btn-logout {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

/* Кнопки для гостя */
.btn-login {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #ccc;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    border-color: #2ecc71;
    color: #2ecc71;
}

.btn-reg {
    background: #2ecc71;
    border: none;
    color: #0a0a0a;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reg:hover {
    background: #27ae60;
}

/* HERO */
.hero {
    padding: 100px 0 80px;
    background: #0a0a0a;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #fff;
}

.hero-text .green {
    color: #2ecc71;
}

.hero-text p {
    font-size: 18px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.btn-green {
    background: #2ecc71;
    border: none;
    color: #0a0a0a;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-green:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.25);
}

.hero-visual {
    border-radius: 24px;
    height: 360px;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) saturate(0.8);
    transition: filter 0.3s;
}

.hero-visual:hover .hero-image {
    filter: brightness(0.85) saturate(1);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* HOW IT WORKS */
.how-it-works {
    background: #0d0d0d;
    padding: 80px 0;
    border-top: 1px solid #141414;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #2ecc71;
    color: #2ecc71;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.step:hover .step-number {
    background: #2ecc71;
    color: #0a0a0a;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.step p {
    color: #777;
    font-size: 14px;
}

.step-divider {
    width: 60px;
    height: 1px;
    background: #222;
    margin-top: -40px;
}

/* CATEGORIES */
.categories {
    padding: 80px 0;
    background: #0d0d0d;
    border-top: 1px solid #141414;
    border-bottom: 1px solid #141414;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.25s;
}

.category-card:hover {
    border-color: #2ecc71;
    transform: translateY(-4px);
    background: #141414;
}

.category-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.category-card p {
    color: #777;
    font-size: 14px;
    margin-bottom: 8px;
}

.category-questions {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    color: #2ecc71;
    margin: 16px 0;
}

.category-questions span {
    font-size: 16px;
    font-weight: 400;
    color: #555;
}

.category-lock {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
}

/* BENEFITS */
.benefits {
    background: #0a0a0a;
    padding: 80px 0;
}

.benefits .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px 15px;
}

.benefit-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2ecc71;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 4px 12px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 4px;
}

.benefit-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.benefit-item p {
    color: #777;
    font-size: 14px;
}

/* FOOTER */
.footer {
    background: #080808;
    padding: 35px 0;
    border-top: 1px solid #141414;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: #555;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2ecc71;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.modal-box {
    position: relative;
    background: #121212;
    width: 420px;
    max-width: 90%;
    border-radius: 20px;
    border: 1px solid #222;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 1px solid #222;
}

.modal-header span {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.modal-body input:focus {
    border-color: #2ecc71;
}

.modal-body input::placeholder {
    color: #555;
}

.btn-green.full {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: #2ecc71;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-link:hover {
    color: #27ae60;
}

.modal-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #888;
}

.modal-switch .btn-link {
    font-size: 14px;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a1a;
    border-left: 3px solid #2ecc71;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 14px;
    color: #ddd;
    z-index: 1100;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.toast.error {
    border-left-color: #e74c3c;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .benefits .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 15px; }
    .nav { gap: 30px; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { max-width: 100%; }
    .hero-text h1 { font-size: 38px; }
    .hero-visual { height: 250px; }
    .grid { grid-template-columns: 1fr 1fr; }
    .benefits .container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer .container { flex-direction: column; gap: 15px; text-align: center; }
    .steps { flex-direction: column; gap: 30px; }
    .step-divider { width: 1px; height: 40px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-text h1 { font-size: 30px; }
    .hero-visual { height: 200px; }
    .grid { grid-template-columns: 1fr; }
    .benefits .container { grid-template-columns: 1fr; }
    .section-title { font-size: 26px; }
}

/* Стили для чекбокса согласия 152-ФЗ */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    padding: 4px 0;
}

.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #2ecc71;
    cursor: pointer;
}

.consent-label a {
    color: #2ecc71;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-label a:hover {
    color: #27ae60;
}