/* 
   РезюмеПро — CSS Дизайн-Система
   Высококонтрастная стилистика с моноширинными акцентами и четкой структурой
*/

:root {
    /* Переопределение токенов под строгую контрастную палитру */
    --bg: #0d0f12;
    --surface: #16191e;
    --surface-2: #21262e;
    --text: #f0f3f8;
    --muted: #8b949e;
    --border: #30363d;
    
    /* Неоново-акцентные цвета */
    --brand: #00f0ff;
    --brand-2: #7000ff;
    --accent: #00ff66;
    
    --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius-1: 6px;
    --radius-2: 12px;
    --radius-3: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

.site-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Шапка сайта */
.site-header {
    background: rgba(22, 25, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--brand);
}

.logo-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: var(--radius-1);
    color: var(--accent);
}

/* Навигация */
.main-nav {
    display: flex;
    gap: 24px;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-2);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-brand {
    background: var(--brand);
    color: #000;
    border-color: var(--brand);
}

.btn-brand:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--surface-2);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--muted);
}

/* Общие стили страниц */
.page-section {
    padding: 50px 0 80px;
}

.text-center {
    text-align: center;
}

.contacts-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Сетка контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    padding: 32px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text);
}

/* Форма контактов */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
}

/* Уведомления */
.alert {
    padding: 16px;
    border-radius: var(--radius-2);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-success {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.alert-danger {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid #ff3232;
    color: #ff6b6b;
}

.alert-icon {
    font-weight: bold;
    font-family: var(--font-mono);
}

/* Инфо-карточки справа */
.contacts-info-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

.info-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.info-link:hover {
    text-decoration: underline;
}

.info-note {
    font-size: 0.75rem;
    color: var(--muted);
}

.info-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 16px;
}

.social-tags-list {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.social-btn:hover {
    border-color: var(--brand);
}

.social-icon {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: bold;
}

.office-text {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-mono);
}

/* Центр Поддержки & FAQ */
.support-hero-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.support-hero-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.support-hero-content p {
    color: var(--muted);
    margin-bottom: 24px;
}

.support-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.faq-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: var(--brand);
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-family: var(--font-mono);
    color: var(--brand);
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer p {
    margin: 0;
}

.support-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.support-nav-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    padding: 28px;
    position: relative;
}

.card-mono-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: var(--radius-1);
    display: inline-block;
    margin-bottom: 12px;
}

.support-nav-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.support-nav-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Правовые страницы */
.legal-page {
    padding: 60px 0 100px;
    max-width: 800px;
}

.legal-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.legal-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-date {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-top: 8px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-section h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-section p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.legal-section ul {
    color: var(--muted);
    line-height: 1.7;
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-link {
    color: var(--brand);
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}

/* Подвал */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--brand);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 4px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--brand);
    text-decoration: none;
    border-radius: var(--radius-1);
}

.copyright {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 24px;
    font-family: var(--font-mono);
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .support-nav-grid {
        grid-template-columns: 1fr;
    }

    .support-hero-actions {
        flex-direction: column;
    }

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 16px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}