/* API-документация — в концепции about/careers/press */

.api-docs-container {
    padding-bottom: var(--space-2xl, 3rem);
}

.api-docs-hero .about-subtitle {
    max-width: 720px;
}

.api-docs-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xl, 2rem);
    color: var(--text-secondary, #64748b);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Базовый URL и аутентификация */
.api-docs-auth {
    padding: var(--space-6xl, 4rem) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: var(--space-2xl, 2rem) 0;
    border-radius: 24px;
    border: 1px solid var(--border-light, #e2e8f0);
}

.api-docs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.api-docs-card {
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.api-docs-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.api-docs-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.5rem 0;
}

.api-docs-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary, #475569);
    line-height: 1.5;
    margin: 0;
}

.api-docs-code {
    display: block;
    font-size: 0.875rem;
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #0f172a;
    word-break: break-all;
    margin-top: 0.5rem;
}

.api-docs-card code {
    font-size: 0.8125rem;
    background: #f1f5f9;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    color: #2563eb;
}

/* Таблица разделов */
.api-docs-endpoints {
    padding: var(--space-6xl, 4rem) 0;
    margin: var(--space-2xl, 2rem) 0;
}

.api-docs-table-wrap {
    max-width: 800px;
    margin: 0 auto var(--space-lg, 1.5rem);
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.api-docs-table {
    width: 100%;
    border-collapse: collapse;
}

.api-docs-table th,
.api-docs-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9375rem;
}

.api-docs-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.api-docs-table tr:last-child td {
    border-bottom: none;
}

.api-docs-table code {
    font-size: 0.875rem;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #2563eb;
}

.api-docs-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary, #64748b);
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Пример запроса */
.api-docs-example {
    padding: var(--space-6xl, 4rem) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: var(--space-2xl, 2rem) 0;
    border-radius: 24px;
    border: 1px solid var(--border-light, #e2e8f0);
}

.api-docs-pre {
    max-width: 720px;
    margin: 0 auto 1rem;
    padding: 1.25rem 1.5rem;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

.api-docs-pre code {
    color: #e2e8f0;
    background: none;
    padding: 0;
}

/* Как начать */
.api-docs-get-started {
    padding: var(--space-6xl, 4rem) 0;
    margin: var(--space-2xl, 2rem) 0;
}

.api-docs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.api-docs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Контакт */
.api-docs-contact {
    padding: var(--space-6xl, 4rem) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: var(--space-2xl, 2rem) 0;
    border-radius: 24px;
    border: 1px solid var(--border-light, #e2e8f0);
}

.api-docs-contact-box {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.api-docs-contact-box p {
    margin: 0;
    font-size: 1.0625rem;
}

.api-docs-contact-box i {
    margin-right: 0.5rem;
    color: var(--primary, #2563eb);
    width: 1.25rem;
    text-align: center;
}

.api-docs-contact-box a {
    color: var(--primary, #2563eb);
    text-decoration: none;
    font-weight: 600;
}

.api-docs-contact-box a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .api-docs-cards {
        grid-template-columns: 1fr;
    }
    .api-docs-pre {
        font-size: 0.8125rem;
        padding: 1rem;
    }
}
