/* =====================================================
   ОБЩИЕ СТИЛИ (перекрывают все шаблоны)
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b0e14;
    font-family: 'Inter', sans-serif;
    color: #eef2f6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 0 0 40px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   НАВИГАЦИЯ (общая для всех страниц)
   ===================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
    gap: 16px;
}

/* =====================================================
   ЛОГОТИП С BF В КВАДРАТЕ
   ===================================================== */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0c1b52, #1e419b);
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(63, 110, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(63, 110, 255, 0.45);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #c0d0f0, #7a9cf5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    font-weight: 400;
    color: #6a7c94;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #a0b3cc;
    flex-wrap: wrap;
}
.nav-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #d6e3ff;
}

/* =====================================================
   ВЫПАДАЮЩИЙ СПИСОК ЯЗЫКОВ (основная страница)
   ===================================================== */
.lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-dropdown .lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #141e2b;
    padding: 6px 14px 6px 12px;
    border-radius: 40px;
    border: 1px solid #2a384b;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b0c6e0;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}
.lang-dropdown .lang-trigger i {
    color: #6f93d6;
    font-size: 0.8rem;
}
.lang-dropdown .lang-trigger:hover {
    background: #1d2a3b;
    border-color: #4d6b94;
}

.lang-dropdown .lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #141e2b;
    border: 1px solid #2a384b;
    border-radius: 16px;
    padding: 8px 0;
    min-width: 160px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 100;
    backdrop-filter: blur(4px);
}
.lang-dropdown .lang-menu.open {
    display: block;
}
.lang-dropdown .lang-menu li {
    list-style: none;
    padding: 10px 20px;
    color: #b0c6e0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-dropdown .lang-menu li:hover {
    background: #1d2d45;
    color: #d6e7ff;
}
.lang-dropdown .lang-menu li.active {
    color: #d6e7ff;
    background: #1a2a40;
}
.lang-dropdown .lang-menu li i {
    color: #5f8aff;
    width: 18px;
    font-size: 0.9rem;
}

/* =====================================================
   КНОПКИ (общие)
   ===================================================== */
.btn-outline {
    border: 1px solid #3a4a62;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    color: #d0def0;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
    cursor: default;
}
.btn-outline:hover {
    background: #1f2a3a;
    border-color: #6a8bc0;
}

.btn-primary {
    background: #3f6eff;
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
    cursor: default;
    box-shadow: 0 8px 20px rgba(63, 110, 255, 0.25);
}
.btn-primary:hover {
    background: #2f5ae0;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(63, 110, 255, 0.35);
}

.btn-ghost {
    background: transparent;
    border: 1px solid #384b63;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    color: #c7d8f0;
    transition: 0.2s;
    cursor: default;
    display: inline-block;
    text-decoration: none;
}
.btn-ghost:hover {
    background: #1e2838;
    border-color: #5d7aa8;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #4d6f9f;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 700;
    color: #d6e5ff;
    transition: 0.2s;
    cursor: default;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
}
.btn-secondary:hover {
    background: #1f3149;
    border-color: #6f93d6;
}

.clean {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   ГЕРОЙ (общий для всех страниц)
   ===================================================== */
.hero {
    padding: 60px 0 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1 1 480px;
}
.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero-content h1 .highlight {
    background: linear-gradient(135deg, #b0cbf5, #5f8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc {
    font-size: 1.2rem;
    color: #b0c4dd;
    max-width: 520px;
    margin-bottom: 32px;
}

.network-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 16px;
}
.network-badge {
    background: #151e2a;
    border-radius: 40px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border: 1px solid #26313f;
    color: #bfd3ee;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.network-badge i {
    color: #6f93d6;
    font-size: 0.9rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.hero-stats div {
    font-weight: 600;
}
.hero-stats .num {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e0edff;
}
.hero-stats .label {
    font-weight: 400;
    font-size: 0.9rem;
    color: #889bb5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero-visual {
    flex: 1 1 380px;
    background: #10171f;
    border-radius: 32px;
    padding: 30px 28px;
    border: 1px solid #26313f;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.hero-visual .code-snip {
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    background: #0b1016;
    padding: 20px 18px;
    border-radius: 16px;
    color: #b8cef0;
    border-left: 3px solid #3f6eff;
    line-height: 1.7;
}
.hero-visual .code-snip .comment {
    color: #5f738d;
}
.hero-visual .code-snip .key {
    color: #86a9ff;
}
.hero-visual .code-snip .string {
    color: #a0d0a0;
}

/* =====================================================
   СЕКЦИЯ ВОЗМОЖНОСТЕЙ (общая)
   ===================================================== */
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.section-title i {
    color: #5f8aff;
    margin-right: 12px;
}
.section-sub {
    color: #9aafca;
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.feature-card {
    background: #121b26;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid #1f2b3a;
    transition: 0.25s;
}
.feature-card:hover {
    border-color: #3f6eff;
    transform: translateY(-6px);
    background: #16202e;
}
.feature-card i {
    font-size: 2.4rem;
    color: #5f8aff;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    color: #b0c4dd;
    font-size: 0.95rem;
}

.network-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 20px 0 30px;
}
.network-pill {
    background: #0f1822;
    border: 1px solid #293949;
    border-radius: 60px;
    padding: 8px 22px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #c4d6f0;
}
.network-pill i {
    margin-right: 8px;
    color: #5f8aff;
}

/* =====================================================
   ДОП ФУНКЦИИ (NFT, ИНДЕКСЁРЫ, DEDICATED)
   ===================================================== */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin: 40px 0 60px;
}
.extra-item {
    background: #101a24;
    border-radius: 20px;
    padding: 28px 20px;
    border: 1px solid #1f2c3d;
    text-align: center;
}
.extra-item i {
    font-size: 2.2rem;
    color: #5f8aff;
    margin-bottom: 16px;
}
.extra-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
}
.extra-item p {
    color: #9fb3cf;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* =====================================================
   CTA / ПОДВАЛ (общий)
   ===================================================== */
.cta-section {
    text-align: center;
    padding: 50px 0 30px;
    border-top: 1px solid #1c2838;
    margin-top: 20px;
}
.cta-section h2 {
    font-size: 2.6rem;
    font-weight: 700;
}
.cta-section .sub {
    color: #a6bbd8;
    font-size: 1.1rem;
    margin: 12px 0 32px;
}

.cta-extra {
    background: #101b28;
    border-radius: 40px;
    padding: 40px 32px;
    margin: 30px 0 20px;
    border: 1px solid #263544;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta-extra .text {
    font-size: 1.4rem;
    font-weight: 600;
}
.cta-extra .text i {
    color: #5f8aff;
    margin-right: 12px;
}
.cta-extra .text span {
    color: #b4caf0;
    font-weight: 400;
    font-size: 1rem;
    margin-left: 12px;
}

/* =====================================================
   СТРАНИЦА API
   ===================================================== */
.api-hero {
    padding: 50px 0 60px;
    border-bottom: 1px solid #1a2636;
}
.api-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.api-hero h1 .highlight {
    background: linear-gradient(135deg, #b0cbf5, #5f8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.api-hero .sub {
    font-size: 1.2rem;
    color: #b0c4dd;
    max-width: 700px;
}

.api-section {
    padding: 50px 0;
    border-bottom: 1px solid #1a2636;
}
.api-section:last-of-type {
    border-bottom: none;
}

.section-desc {
    color: #b0c4dd;
    font-size: 1.05rem;
    max-width: 800px;
    margin-bottom: 30px;
}

/* ----- СХЕМА / ДИАГРАММА ----- */
.schema-box {
    background: #101a28;
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid #1f2e42;
    margin: 20px 0 30px;
    overflow-x: auto;
}
.schema-box .schema-title {
    font-weight: 600;
    color: #9ab0d0;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.schema-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
}
.schema-flow .node {
    background: #1d2d45;
    padding: 12px 22px;
    border-radius: 16px;
    border: 1px solid #2f4a6a;
    color: #d0e2fd;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
}
.schema-flow .node i {
    color: #5f8aff;
    margin-right: 8px;
}
.schema-flow .arrow {
    color: #4d6b94;
    font-size: 1.4rem;
}
.schema-flow .arrow i {
    color: #4d6b94;
}
.schema-flow .node.light {
    background: #0f1a28;
    border-color: #1f3145;
}
.schema-flow .node.highlight-node {
    border-color: #3f6eff;
    background: #162a45;
}

/* ----- КОД ПРИМЕРОВ ----- */
.code-block {
    background: #0b1018;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #1a283c;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    color: #c8daf5;
    line-height: 1.8;
    overflow-x: auto;
    margin: 16px 0;
}
.code-block .comment {
    color: #5f738d;
}
.code-block .key {
    color: #86a9ff;
}
.code-block .string {
    color: #a0d0a0;
}
.code-block .method {
    color: #f5b87a;
}
.code-block .var {
    color: #c7a0d0;
}
.code-block .highlight-line {
    background: rgba(63, 110, 255, 0.1);
    border-left: 3px solid #3f6eff;
    padding-left: 12px;
    display: block;
}

/* ----- ТАБЛИЦА МЕТОДОВ ----- */
.method-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
}
.method-table th {
    text-align: left;
    padding: 12px 12px 10px 12px;
    color: #7a94b8;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #1f2d40;
}
.method-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #172231;
    color: #cfdef5;
}
.method-table tr:last-child td {
    border-bottom: none;
}
.method-table .badge {
    background: #1b2b40;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #9bb3d6;
    white-space: nowrap;
}
.method-table .badge.required {
    background: #1a3a4a;
    color: #7fc0d0;
}
.method-table .badge.optional {
    background: #2a2a3a;
    color: #b0aad0;
}
.method-table .badge.recommended {
    background: #1a3a2a;
    color: #80c0a0;
}
.method-table code {
    color: #86a9ff;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
}

/* ----- ДОП УСЛУГИ (API) ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 24px 0;
}
.service-card {
    background: #101a28;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #1f2e42;
    transition: 0.25s;
}
.service-card:hover {
    border-color: #3f6eff;
    transform: translateY(-4px);
    background: #16202e;
}
.service-card .icon {
    font-size: 2.2rem;
    color: #5f8aff;
    margin-bottom: 14px;
}
.service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.service-card p {
    color: #b0c4dd;
    font-size: 0.95rem;
}
.service-card .feature-list {
    margin-top: 12px;
    list-style: none;
    font-size: 0.9rem;
    color: #9ab0d0;
}
.service-card .feature-list li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-card .feature-list li i {
    color: #5f8aff;
    width: 18px;
}

/* ----- ДОПОЛНИТЕЛЬНЫЙ CTA ----- */
.cta-box {
    background: #101b28;
    border-radius: 32px;
    padding: 40px 36px;
    border: 1px solid #263544;
    text-align: center;
    margin: 30px 0 10px;
}
.cta-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-box p {
    color: #b0c4dd;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* =====================================================
   СТРАНИЦА НОД
   ===================================================== */
.nodes-hero {
    padding: 50px 0 60px;
    border-bottom: 1px solid #1a2636;
}
.nodes-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.nodes-hero h1 .highlight {
    background: linear-gradient(135deg, #b0cbf5, #5f8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nodes-hero .sub {
    font-size: 1.2rem;
    color: #b0c4dd;
    max-width: 700px;
}

/* ----- ГЕОГРАФИЯ (Ноды) ----- */
.geo-section {
    padding: 40px 0 50px;
    border-bottom: 1px solid #1a2636;
}

.geo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 24px 0 30px;
}
.geo-card {
    background: #101a28;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #1f2e42;
    text-align: center;
    transition: 0.25s;
}
.geo-card:hover {
    border-color: #3f6eff;
    transform: translateY(-4px);
    background: #16202e;
}
.geo-card .flag {
    font-size: 2.6rem;
    margin-bottom: 12px;
}
.geo-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.geo-card .location {
    color: #9ab0d0;
    font-size: 0.9rem;
}
.geo-card .badge {
    display: inline-block;
    background: #1a3a4a;
    color: #7fc0d0;
    padding: 2px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ----- ТАБЛИЦА ХАРАКТЕРИСТИК (Ноды) ----- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
}
.spec-table th {
    text-align: left;
    padding: 12px 12px 10px 12px;
    color: #7a94b8;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #1f2d40;
}
.spec-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #172231;
    color: #cfdef5;
}
.spec-table tr:last-child td {
    border-bottom: none;
}
.spec-table .badge {
    background: #1b2b40;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #9bb3d6;
    white-space: nowrap;
}
.spec-table .badge.green {
    background: #1a3a2a;
    color: #80c0a0;
}
.spec-table .badge.blue {
    background: #1a2a4a;
    color: #80a0c0;
}
.spec-table .badge.gold {
    background: #3a3a1a;
    color: #c0b080;
}

/* ----- ТАРИФЫ (Ноды) ----- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin: 30px 0 20px;
}
.pricing-card {
    background: #101a28;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid #1f2e42;
    text-align: center;
    transition: 0.25s;
}
.pricing-card:hover {
    border-color: #3f6eff;
    transform: translateY(-4px);
    background: #16202e;
}
.pricing-card .plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.pricing-card .plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d0e2fd;
    margin: 12px 0;
}
.pricing-card .plan-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #7a94b8;
}
.pricing-card .plan-desc {
    color: #b0c4dd;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.pricing-card .plan-features {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
    color: #9ab0d0;
    margin: 16px 0 24px;
}
.pricing-card .plan-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-card .plan-features li i {
    color: #5f8aff;
    width: 18px;
}
.pricing-card .btn-outline {
    display: inline-block;
    width: 100%;
    text-align: center;
}
.pricing-card .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
}
.pricing-card.popular {
    border-color: #3f6eff;
    background: #162a45;
}
.pricing-card.popular .popular-badge {
    display: inline-block;
    background: #3f6eff;
    color: white;
    padding: 2px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* =====================================================
   СТРАНИЦА ДАННЫХ (дополнительные стили)
   ===================================================== */
.data-hero {
    padding: 50px 0 60px;
    border-bottom: 1px solid #1a2636;
}
.data-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.data-hero h1 .highlight {
    background: linear-gradient(135deg, #b0cbf5, #5f8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.data-hero .sub {
    font-size: 1.2rem;
    color: #b0c4dd;
    max-width: 700px;
}

/* ----- СТАТИСТИКА (Данные) ----- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}
.stat-item {
    background: #101a28;
    border-radius: 18px;
    padding: 20px 20px 18px;
    border: 1px solid #1f2e42;
}
.stat-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7a94b8;
}
.stat-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: #e0edff;
    margin-top: 4px;
}
.stat-item .change {
    font-size: 0.75rem;
    color: #6f9f8a;
    background: #152b22;
    padding: 2px 10px;
    border-radius: 40px;
    display: inline-block;
    margin-top: 6px;
}

/* ----- ТАБЛИЦА ИНДЕКСОВ (Данные) ----- */
.index-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
}
.index-table th {
    text-align: left;
    padding: 12px 12px 10px 12px;
    color: #7a94b8;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #1f2d40;
}
.index-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #172231;
    color: #cfdef5;
}
.index-table tr:last-child td {
    border-bottom: none;
}
.index-table .badge {
    background: #1b2b40;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #9bb3d6;
    white-space: nowrap;
}
.index-table .badge.green {
    background: #1a3a2a;
    color: #80c0a0;
}
.index-table .badge.blue {
    background: #1a2a4a;
    color: #80a0c0;
}
.index-table .badge.gold {
    background: #3a3a1a;
    color: #c0b080;
}
.index-table .badge.purple {
    background: #2a1a4a;
    color: #b080c0;
}
.index-table .speed {
    color: #7fc0d0;
    font-weight: 600;
}

/* =====================================================
   СТРАНИЦА ДОКУМЕНТАЦИЯ (дополнительные стили)
   ===================================================== */
.docs-hero {
    padding: 50px 0 60px;
    border-bottom: 1px solid #1a2636;
}
.docs-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.docs-hero h1 .highlight {
    background: linear-gradient(135deg, #b0cbf5, #5f8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.docs-hero .sub {
    font-size: 1.2rem;
    color: #b0c4dd;
    max-width: 700px;
}

/* ----- ЛЕЙАУТ ДОКУМЕНТАЦИИ (сайдбар + контент) ----- */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.docs-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}
.docs-sidebar .sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7a94b8;
    margin-bottom: 16px;
    font-weight: 600;
}
.docs-sidebar ul {
    list-style: none;
}
.docs-sidebar ul li {
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 4px;
    color: #a0b6d4;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}
.docs-sidebar ul li i {
    color: #5f7fa8;
    width: 18px;
    font-size: 0.85rem;
}
.docs-sidebar ul li:hover {
    background: #182433;
    color: #c8daf5;
}
.docs-sidebar ul li.active {
    background: #1d2d45;
    color: #d6e7ff;
    border-left: 3px solid #3f6eff;
}
.docs-sidebar ul li .sub-items {
    margin-left: 30px;
    margin-top: 4px;
    font-size: 0.85rem;
}
.docs-sidebar ul li .sub-items li {
    padding: 6px 12px;
    border-left: 1px solid #1f2d40;
    border-radius: 0;
}
.docs-sidebar ul li .sub-items li:hover {
    background: transparent;
    color: #d6e7ff;
    border-left-color: #3f6eff;
}

/* ----- СЕКЦИЯ ДОКУМЕНТАЦИИ ----- */
.docs-section {
    padding: 40px 0;
    border-bottom: 1px solid #1a2636;
}
.docs-section:last-of-type {
    border-bottom: none;
}

/* ----- ТАБЛИЦА ПАРАМЕТРОВ (Документация) ----- */
.param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
}
.param-table th {
    text-align: left;
    padding: 12px 12px 10px 12px;
    color: #7a94b8;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #1f2d40;
}
.param-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #172231;
    color: #cfdef5;
}
.param-table tr:last-child td {
    border-bottom: none;
}
.param-table .badge {
    background: #1b2b40;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #9bb3d6;
    white-space: nowrap;
}
.param-table .badge.required {
    background: #1a3a4a;
    color: #7fc0d0;
}
.param-table .badge.optional {
    background: #2a2a3a;
    color: #b0aad0;
}
.param-table code {
    color: #86a9ff;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
}

/* ----- БУРГЕР-МЕНЮ (документация) ----- */
.burger-btn {
    display: none;
    background: #141e2b;
    border: 1px solid #2a384b;
    color: #b0c6e0;
    font-size: 1.2rem;
    padding: 6px 14px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
}
.burger-btn:hover {
    background: #1d2a3b;
}

/* =====================================================
   ПОДВАЛ (общий)
   ===================================================== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 20px;
    color: #6c81a0;
    font-size: 0.9rem;
    border-top: 1px solid #1a2535;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-social a {
    color: #6c81a0;
    margin-left: 20px;
    transition: 0.2s;
}
.footer-social a:hover {
    color: #b0caf5;
}

/* =====================================================
   АДАПТИВ (общий для всех страниц)
   ===================================================== */
@media (max-width: 992px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: relative;
        top: 0;
        display: none;
    }
    .docs-sidebar.mobile-open {
        display: block;
    }
    .burger-btn {
        display: inline-block !important;
    }
}

@media (max-width: 800px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .api-hero h1 {
        font-size: 2.4rem;
    }
    .nodes-hero h1 {
        font-size: 2.4rem;
    }
    .data-hero h1 {
        font-size: 2.4rem;
    }
    .docs-hero h1 {
        font-size: 2.4rem;
    }
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: space-between;
    }
    .cta-extra {
        flex-direction: column;
        text-align: center;
    }
    .lang-dropdown .lang-menu {
        right: auto;
        left: 0;
    }
    .schema-flow .arrow {
        display: none;
    }
    .schema-flow {
        flex-direction: column;
    }
    .schema-flow .node {
        width: 100%;
    }
    .geo-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 500px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .nav-links {
        gap: 12px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .method-table {
        font-size: 0.75rem;
    }
    .method-table td,
    .method-table th {
        padding: 8px 6px;
    }
    .spec-table {
        font-size: 0.75rem;
    }
    .spec-table td,
    .spec-table th {
        padding: 8px 6px;
    }
    .index-table {
        font-size: 0.75rem;
    }
    .index-table td,
    .index-table th {
        padding: 8px 6px;
    }
    .param-table {
        font-size: 0.75rem;
    }
    .param-table td,
    .param-table th {
        padding: 8px 6px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 24px 16px;
    }
    .cta-box h3 {
        font-size: 1.4rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-item .value {
        font-size: 1.4rem;
    }
    .code-block {
        font-size: 0.7rem;
        padding: 14px 16px;
    }
    .docs-sidebar ul li {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}