/* Добавляем стили для модального окна */
    .article-meta { margin: -6px 0 18px; color: #6c7a8e; font-size: 14px; }
    .article-meta time { font-style: normal; }
    .modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.7);
        backdrop-filter: blur(8px);
        animation: fadeIn 0.3s;
    }

    .modal-content {
        background-color: rgba(30,30,60,0.95);
        backdrop-filter: blur(20px);
        margin: 3% auto;
        padding: 30px;
        border: 1px solid rgba(255,255,255,0.15);
        width: 100%;
        max-width: 600px;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(100,150,255,0.15);
        animation: fadeIn 0.5s;
        position: relative;
        color: #ffffff;
    }

    .close {
        color: rgba(255,255,255,0.6);
        float: right;
        font-size: 32px;
        font-weight: bold;
        transition: all 0.3s;
        position: absolute;
        top: 18px;
        right: 22px;
        cursor: pointer;
    }

    .close:hover,
    .close:focus {
        color: white;
        text-decoration: none;
        transform: rotate(90deg);
    }

    .modal-content h2 {
        color: #ffffff;
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .modal-content p, .modal-content strong {
        color: rgba(255,255,255,0.9);
        line-height: 1.6;
    }

    @keyframes fadeIn {
        from {opacity: 0;}
        to {opacity: 1;}
    }

    .button-container {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        align-items: center;
        width: 100%;
    }

    .menu-button, .auth-form button {
        background-color: #007bff;
        color: white;
        padding: 5px 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .login-btn-styled {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        box-shadow: 0 4px 15px rgba(102,126,234,0.4);
        padding: 8px 20px !important;
        font-weight: 600;
    }

    .login-btn-styled:hover {
        background: linear-gradient(135deg, #7c8ff0 0%, #8b5bb8 100%) !important;
        box-shadow: 0 6px 20px rgba(102,126,234,0.5);
        transform: translateY(-1px);
    }

    .menu-btn-styled {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        box-shadow: 0 4px 15px rgba(102,126,234,0.4);
        padding: 8px 20px !important;
        font-weight: 600;
    }

    .menu-btn-styled:hover {
        background: linear-gradient(135deg, #7c8ff0 0%, #8b5bb8 100%) !important;
        box-shadow: 0 6px 20px rgba(102,126,234,0.5);
        transform: translateY(-1px);
    }

    .logout-btn-styled {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        box-shadow: 0 4px 15px rgba(102,126,234,0.4);
        padding: 8px 20px !important;
        font-weight: 600;
    }

    .logout-btn-styled:hover {
        background: linear-gradient(135deg, #7c8ff0 0%, #8b5bb8 100%) !important;
        box-shadow: 0 6px 20px rgba(102,126,234,0.5);
        transform: translateY(-1px);
    }

    .menu-button:hover, .auth-form button:hover {
        background-color: #0056b3;
    }

    .auth-form {
        margin: 0;
    }

    .renew-button {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-weight: 600;
        font-size: 15px;
        box-shadow: 0 6px 20px rgba(40,167,69,0.35);
        transition: all 0.3s ease;
    }

    .renew-button:hover {
        background: linear-gradient(135deg, #218838 0%, #1abc9c 100%);
        box-shadow: 0 8px 25px rgba(40,167,69,0.45);
        transform: translateY(-1px);
    }

    .renew-button:active {
        transform: translateY(0) scale(0.98);
    }

    .renew-key-input {
        width: 449px;
        max-width: 100%;
        padding: 14px 16px;
        margin-bottom: 10px;
        border: 2px solid rgba(255,255,255,0.15);
        border-radius: 14px;
        background: rgba(255,255,255,0.08);
        color: #fff;
        font-size: 15px;
        transition: all 0.3s;
        outline: none;
    }

    .renew-key-input:focus {
        border-color: rgba(102,126,234,0.6);
        background: rgba(255,255,255,0.12);
        box-shadow: 0 0 0 4px rgba(102,126,234,0.15);
    }

    .renew-key-input::placeholder {
        color: rgba(255,255,255,0.4);
    }

    .success-message, .error-message {
        padding: 12px 14px;
        border-radius: 12px;
        margin-bottom: 16px;
        font-weight: bold;
        font-size: 13.5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .success-message {
        background: linear-gradient(135deg, rgba(40,167,69,0.15), rgba(32,201,151,0.18));
        color: #b4ffb4;
        border: 1px solid rgba(40,167,69,0.3);
    }

    .error-message {
        background: linear-gradient(135deg, rgba(255,50,50,0.15), rgba(255,20,20,0.18));
        color: #ffb4b4;
        border: 1px solid rgba(255,80,80,0.3);
    }

/* Основные стили для блока proxy-list-content */
    .proxy-list-content {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        line-height: 1.7;
        margin: 0;
        padding: 0;
        background-color: #f4f4f4;
        color: #333;
    }

    .proxy-list-content h1, .proxy-list-content h2, .proxy-list-content h3 {
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Стиль для заголовков */
    .proxy-list-content h1 {
        font-size: 36px;
        margin-top: 30px;
    }

    .proxy-list-content h2 {
        font-size: 28px;
        border-bottom: 3px solid #3498db;
        padding-bottom: 10px;
        margin-top: 40px;
        color: #2980b9;
    }

    .proxy-list-content h3 {
        font-size: 22px;
        margin-top: 20px;
        color: #34495e;
    }

    /* Стиль для текста */
    .proxy-list-content p {
        color: #555;
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: justify;
    }

    .proxy-list-content ul {
        list-style-type: none;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .proxy-list-content ul li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 10px;
    }

    .proxy-list-content ul li:before {
        content: '\2022';
        color: #2980b9;
        font-size: 24px;
        position: absolute;
        left: 0;
        top: 0;
    }

    /* Примечания */
    .proxy-list-content .note {
        background-color: #ecf0f1;
        padding: 15px;
        border-left: 6px solid #3498db;
        margin: 30px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .proxy-list-content .note p {
        margin: 0;
        font-size: 16px;
    }

    /* Стиль для картинок и диаграмм */
    .proxy-list-content .diagram {
        text-align: center;
        margin: 30px 0;
    }

    .proxy-list-content .diagram img {
        max-width: 90%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Стиль для ссылок */
    .proxy-list-content a {
        color: #3498db;
        text-decoration: none;
    }

    .proxy-list-content a:hover {
        text-decoration: underline;
    }

    /* Медиазапросы для адаптивности */
    @media (max-width: 768px) {
        .proxy-list-content h1 {
            font-size: 28px;
        }
        .proxy-list-content h2 {
            font-size: 24px;
        }
        .proxy-list-content p {
            font-size: 14px;
        }
        .proxy-list-content .note {
            padding: 10px;
        }
        .proxy-list-content .diagram img {
            max-width: 100%;
        }
    }

.good-proxies-container {
    width: 1000px;
    max-width: 100%;
    background-color: #f9fbfd;
    border: 3px solid #d7e1ea;
    border-radius: 18px;
    padding: 24px;
    margin: 20px auto;
    box-shadow: 0 10px 28px rgba(20, 42, 63, 0.12);
    text-align: left;
}

html { scroll-behavior: smooth; }
.proxy-article { color: #243645; line-height: 1.72; }
.proxy-article h1 { margin: 0 0 14px; font-size: 32px; color: #1e2f3d; }
.proxy-article h2 { margin: 34px 0 12px; font-size: 25px; color: #1f5a82; border-bottom: 2px solid #d7e1ea; padding-bottom: 8px; }
.proxy-article h3 { margin: 18px 0 8px; font-size: 19px; color: #243b4d; }
.proxy-article p { margin: 0 0 14px; color: #334a5b; font-size: 16px; }
.proxy-article ul, .proxy-article ol { margin: 0 0 16px 22px; }
.proxy-article li { margin-bottom: 8px; }
.proxy-article a {
    color: #0d557e;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}
.proxy-article a:hover { color: #093c59; }
.proxy-article a:focus-visible {
    outline: 2px solid #0d557e;
    outline-offset: 2px;
}
.proxy-toc { background: #eef3f7; border: 1px solid #d6dee7; border-radius: 12px; padding: 14px; margin: 12px 0 24px; }
.proxy-toc-title { font-weight: 700; color: #2b4258; margin-bottom: 10px; display: block; }
.proxy-toc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.proxy-toc-links a { display: inline-block; padding: 7px 12px; background: #fff; border: 1px solid #cfd9e3; border-radius: 999px; color: #234e73; text-decoration: none; font-size: 14px; }
.proxy-toc-links a:hover,
.proxy-toc-links a:focus-visible { background: #e9f2fb; border-color: #8fb9d8; color: #163a55; }
.proxy-article table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.proxy-article th, .proxy-article td { border: 1px solid #d8dfe6; padding: 10px; text-align: left; vertical-align: top; }
.proxy-article th { background: #f1f5f9; color: #2b4258; }
.proxy-note { background: #fff8df; border-left: 4px solid #f2c94c; border-radius: 8px; padding: 10px 12px; margin: 12px 0 18px; color: #564000; }
.lang-swap-tip { font-size: 14px; color: #53687a; margin-bottom: 12px; }

.proxy-short-page {
    box-sizing: border-box;
    --gp-top-bar-height: 80px;
    width: min(1000px, calc(100% - 12px));
    margin: 12px auto 22px;
    padding: 5px 5px 5px;
    overflow: visible;
}

.proxy-short-article {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proxy-short-hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 20px 16px 18px;
    border: 1px solid #d7e5f1;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 212, 120, 0.22), transparent 35%),
        radial-gradient(circle at left center, rgba(110, 184, 255, 0.18), transparent 42%),
        linear-gradient(180deg, #ffffff, #f5f9fc);
    box-shadow: 0 16px 36px rgba(16, 41, 62, 0.12);
}

.proxy-short-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d7e5f1;
    background: #edf5fb;
    color: #2a587d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.proxy-short-hero h1 {
    margin-bottom: 12px;
}

.proxy-short-lead {
    max-width: 880px;
    margin-bottom: 16px;
    color: #3a556d;
    font-size: 16px;
    line-height: 1.8;
}

.proxy-short-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e7db3, #4aa3d9);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(30, 125, 179, 0.22);
}

.proxy-short-hero-link:hover,
.proxy-short-hero-link:focus-visible {
    background: linear-gradient(135deg, #176894, #3f94c5);
    color: #ffffff !important;
}

.proxy-short-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.proxy-short-layout,
.proxy-short-toc-wrap,
.proxy-short-sections,
.proxy-short-section {
    min-width: 0;
}

.proxy-short-toc-wrap {
    align-self: stretch;
    display: flex;
    min-height: 100%;
}

.proxy-short-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px;
}

.proxy-short-toc-head .proxy-toc-title {
    margin-bottom: 0;
}

.proxy-short-toc-close,
.proxy-short-toc-fab {
    display: none;
}

.proxy-short-toc-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(18, 54, 86, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #163a55;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.proxy-short-toc {
    position: sticky;
    top: calc(var(--gp-top-bar-height) + 8px);
    align-self: flex-start;
    max-height: calc(100dvh - var(--gp-top-bar-height) - 8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(16, 41, 62, 0.1);
    scrollbar-width: thin;
    scrollbar-color: #9bb9d0 #edf5fb;
}

.proxy-short-toc::-webkit-scrollbar {
    width: 10px;
}

.proxy-short-toc::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #edf5fb;
}

.proxy-short-toc::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid #edf5fb;
    background: linear-gradient(180deg, #9dc1da, #74a9ca);
}

.proxy-short-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proxy-short-section {
    scroll-margin-top: calc(var(--gp-top-bar-height) + 10px);
    padding: 20px 16px 16px;
    border: 1px solid #d7e5f1;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    box-shadow: 0 14px 28px rgba(16, 41, 62, 0.08);
}

.proxy-short-section > h2 {
    margin: 6px 0 14px;
}

.proxy-short-section p,
.proxy-short-section li,
.proxy-short-section a,
.proxy-short-section th,
.proxy-short-section td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.proxy-short-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 125, 179, 0.14), rgba(255, 208, 120, 0.28));
    color: #214f74;
    font-size: 13px;
    font-weight: 800;
}

.proxy-short-section .proxy-note {
    margin-top: 14px;
}

.proxy-short-section table {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
}

.proxy-short-section a[href*="/proxy-info/full/"] {
    color: #0c5da5;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(19, 116, 194, 0.48);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    box-shadow: inset 0 -0.62em 0 rgba(116, 190, 255, 0.2);
    border-radius: 5px;
    transition: color 0.18s ease, box-shadow 0.18s ease, text-decoration-color 0.18s ease;
}

.proxy-short-section a[href*="/proxy-info/full/"]:hover,
.proxy-short-section a[href*="/proxy-info/full/"]:focus-visible {
    color: #083c70;
    text-decoration-color: rgba(255, 184, 77, 0.74);
    box-shadow: inset 0 -0.72em 0 rgba(255, 208, 120, 0.3);
}

@media (max-width: 1080px) {
    .proxy-short-layout {
        grid-template-columns: 1fr;
    }

    .proxy-short-toc-wrap {
        align-self: start;
        display: block;
        min-height: 0;
    }

    .proxy-short-toc {
        position: static;
        top: auto;
        max-height: none;
    }
}

@media (max-width: 720px) {
    body.proxy-short-toc-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .proxy-short-page {
        padding: 4px 4px 4px;
    }

    .proxy-short-hero,
    .proxy-short-section {
        padding: 16px 14px;
        border-radius: 20px;
    }

    .proxy-short-article,
    .proxy-short-sections {
        gap: 12px;
    }

    .proxy-short-section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .proxy-short-section th,
    .proxy-short-section td {
        white-space: normal;
    }

    .proxy-short-toc {
        padding: 14px;
    }

    .proxy-short-toc-fab {
        position: fixed;
        left: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 1200;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 52px;
        padding: 0 18px;
        border: 1px solid rgba(18, 54, 86, 0.18);
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(242, 247, 251, 0.97));
        box-shadow: 0 14px 30px rgba(3, 8, 20, 0.2);
        color: #163a55;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    }

    .proxy-short-toc-fab-icon {
        font-size: 18px;
        line-height: 1;
    }

    body.proxy-short-toc-open .proxy-short-toc-fab {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }

    .proxy-short-toc {
        position: fixed;
        inset: 0;
        z-index: 1300;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        padding: calc(6px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(245,250,253,0.985));
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
        box-shadow: none;
    }

    body.proxy-short-toc-open .proxy-short-toc {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .proxy-short-toc-head {
        position: sticky;
        top: 0;
        z-index: 1;
        align-items: flex-start;
        margin: -2px 0 12px;
        padding: 0 0 12px;
        background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.88));
    }

    .proxy-short-toc-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

#login-key:focus { border-color: rgba(102,126,234,0.6); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 4px rgba(102,126,234,0.15); }
                #login-key::placeholder { color: rgba(255,255,255,0.4); }

#loginSubmit.loading { opacity: 0.9; pointer-events: none; }
        #loginSubmit.loading:after {
            content: '';
            position: absolute;
            right: -28px;
            top: 50%; transform: translateY(-50%);
            width: 16px; height: 16px; border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.6);
            border-top-color: transparent;
            animation: loginSpinner 0.8s linear infinite;
        }
        @keyframes loginSpinner { to { transform: translateY(-50%) rotate(360deg); } }

* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        margin: 0;
        font-family: 'Ubuntu', sans-serif;
        background: url("/img/bg-lightl-881.webp") repeat;
        color: #333;
        padding: 0 20px 20px;
    }

    .container {
    width: 100%;
    max-width: 1000px; /* Максимальная ширина для больших экранов */
    margin: 0 auto;
    border: 3px solid #ddd; /* Серый бордер */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Для экранов меньше 1000px */
@media (max-width: 1000px) {
    .container {
        padding: 15px; /* Уменьшить внутренние отступы */
        border-radius: 10px; /* Уменьшить радиус углов */
    }
}

/* Для экранов меньше 600px */
@media (max-width: 600px) {
    .container {
        padding: 10px; /* Ещё меньше отступов */
        font-size: 14px; /* Уменьшение шрифта, если требуется */
    }
}


    .user-info {
        font-size: 0.9rem;
        text-align: right;
    }

    .auth-form {
        display: flex;
        align-items: center;
    }

    .auth-form input {
        padding: 5px;
        margin-right: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .auth-form button, .logout-btn {
        padding: 5px 10px;
        border: none;
        background-color: #007bff;
        color: white;
        cursor: pointer;
        border-radius: 5px;
    }

    .online-proxies-container { 
    width: 100%;
    max-width: 1000px; /* Максимальная ширина для больших экранов */
    margin: 0 auto;
    background: #f9f9f9;
    padding: 10px;
    border: 3px solid #ddd; /* Серый бордер */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 10px;
}

/* Для экранов менее 1000px */
@media (max-width: 1000px) {
    .online-proxies-container {
        padding: 10px; /* Сохранить внутренние отступы */
        border-radius: 6px; /* Уменьшить радиус углов */
    }
}

/* Для экранов менее 600px (например, мобильные устройства) */
@media (max-width: 600px) {
    .online-proxies-container {
        padding: 8px; /* Ещё меньше отступов */
        font-size: 14px; /* Уменьшение шрифта, если необходимо */
    }
}


    .online-proxies-container p {
        margin: 5px 0;
    }

    .online-proxies-container strong {
        color: #000;
        font-weight: bold;
    }

    .online-proxies-container span {
        color: #007bff;
        font-weight: bold;
    }

    .flex-container {
    display: flex;
    justify-content: space-between;
    margin: 10px auto;
    width: 100%; /* Занимает всю ширину */
    max-width: 1000px; /* Ограничение максимальной ширины */
    flex-wrap: nowrap; /* По умолчанию элементы не переносятся */
}

/* Для экранов меньше 1000px */
@media (max-width: 1000px) {
    .flex-container {
        flex-wrap: wrap; /* Элементы начинают переноситься */
        justify-content: center; /* Центрировать элементы на малых экранах */
    }
}

/* Для экранов меньше 600px */
@media (max-width: 600px) {
    .flex-container {
        flex-direction: column; /* Перевод элементов в колонку */
        align-items: center; /* Центрировать элементы */
    }
}

    .flex-container h3 {
        color: #FAFAFA; /* Цвет текста заголовка */
    }

    .flex-item {
        width: calc(25% - 7.5px); /* 25% ширины контейнера минус половина отступа между элементами */
        height: 180px; /* Увеличиваем высоту контейнера */
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 20px;
        text-align: center;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        position: relative;
        overflow: hidden;
    }

    .flex-item:hover {
        transform: scale(1.05);
    }

    .flex-item h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        z-index: 1;
    }

    .flex-item p {
        margin: 5px 0;
        z-index: 1;
    }

    .flex-item .price {
        font-size: 1.2rem;
        font-weight: bold;
        z-index: 1;
    }

    .flex-item .price-per-day {
        font-size: 0.9rem;
        margin-bottom: 10px;
        z-index: 1;
    }

    .flex-item button {
        padding: 10px 20px;
        border: none;
        background-color: #f9f9f9;
        color: #333;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
        z-index: 1;
    }

    .flex-item button:hover {
        background-color: #333;
        color: #fff;
    }

    .flex-item.red {
        background: linear-gradient(135deg, #F25320, #F8A990);
    }

    .flex-item.green {
        background: linear-gradient(135deg, #00b09b, #CAE49E);
    }

    .flex-item.orange {
        background: linear-gradient(135deg, #f2994a, #F8E4A6);
    }

    .flex-item.blue {
        background: linear-gradient(135deg, #1c92d2, #f2fcfe);
    }

    .flex-item .letter {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20rem;
        opacity: 0.4;
        z-index: 0;
    }

    .flex-item.red .letter {
        color: #F25320;
    }

    .flex-item.green .letter {
        color: #00b09b;
    }

    .flex-item.orange .letter {
        color: #f2994a;
    }

    .flex-item.blue .letter {
        color: #1c92d2;
    }

    .filter-section {
        display: flex;
        justify-content: space-between;
    }

    .filters {
        width: 30%;
    }

    .filters h4 {
        margin-bottom: 10px;
        font-size: 1rem;
        color: #555;
        font-weight: bold; /* Делаем заголовки жирными */
    }

    .filter-group {
        margin-bottom: 15px;
    }

    .filter-group label {
        display: block;
        margin-bottom: 5px;
        cursor: pointer;
    }

    .filter-group input[type="checkbox"] {
        margin-right: 5px;
    }

    .filter-group input[type="text"], 
    .filter-group input[type="number"], 
    .filter-group select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-top: 5px;
    }

    .api-link {
        margin-top: 20px;
    }

    .api-link input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .api-link button {
        padding: 10px;
        border: none;
        background-color: #007bff;
        color: white;
        cursor: pointer;
        border-radius: 5px;
    }

    .buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }

    .buttons .open-btn {
        background-color: #28a745;
        color: white;
        padding: 10px;
        width: 48%;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .buttons .download-btn {
        background-color: #F25320;
        color: white;
        padding: 10px;
        width: 48%;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    footer {
        margin-top: 24px;
        text-align: center;
        font-size: 0.9rem;
        color: #375267;
        line-height: 1.7;
    }

    footer a {
        color: #123f60;
        font-weight: 600;
        text-decoration: underline;
        text-decoration-thickness: 0.08em;
        text-underline-offset: 0.18em;
    }

    footer a:hover,
    footer a:focus-visible {
        color: #0d2f48;
    }

    footer img {
        vertical-align: middle;
    }

    .disabled {
        pointer-events: none;
        opacity: 0.5;
    }

    /* Стили для блоков информации */
.info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.info-block:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.info-label {
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

/* Стили для кнопки "Продлить" */
.renew-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(40,167,69,0.35);
    transition: all 0.3s ease;
}

.renew-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1abc9c 100%);
    box-shadow: 0 8px 25px rgba(40,167,69,0.45);
    transform: translateY(-1px);
}

.renew-button:active {
    transform: translateY(0) scale(0.98);
}


.invalid-key-message-cloud { 
    position: fixed;
    top: 30%; /* Позиция выше, чем по центру */
    left: 50%;
    width: auto;
    transform: translateX(-50%) scale(0.7); /* Начальный масштаб меньше */
    background-color: rgba(255, 0, 0, 0.8); /* Красный фон с полупрозрачностью */
    color: #FFFFFF; /* Белый цвет текста */
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.6); /* Голубая тень вокруг */
    text-shadow: 0 2px 5px rgba(0, 191, 255, 0.8); /* Голубая тень для текста */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    max-width: 100%; /* Ограничиваем ширину на больших экранах */
    text-align: left; /* Выравнивание текста по левому краю */
    }

    /* Анимация для появления */
    .invalid-key-message-cloud.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1); /* Полный размер */
    }



    /* Стили для сообщения "Ключ действителен" */
    .valid-key-message {
        font-weight: bold;
        color: green;
        margin-right: 1px;
        padding: 1px;
        border: 0.5px solid green;
        border-radius: 5px;
        background-color: #e6ffe6;
        display: inline-block;
    }

.nav-count { color: #000; font-weight: 700; margin-left: 6px; }
.renew-title {
    margin: 20px 0 10px;
    color: #ffffff;
}

.renew-note {
    margin-bottom: 14px;
    color: rgba(255,255,255,0.84);
}

/* ── KB card grid ────────────────────────────────────────────── */
.kb-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.kb-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px 14px;
    border: 1px solid #d7e5f1;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 6px 16px rgba(16,41,62,0.07);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.kb-card:hover,
.kb-card:focus-visible {
    box-shadow: 0 14px 32px rgba(16,41,62,0.14);
    transform: translateY(-2px);
    border-color: #9dc9e7;
}

.kb-card-icon {
    font-size: 26px;
    line-height: 1;
    flex: 0 0 auto;
}

.kb-card-body {
    flex: 1;
}

.kb-card-body h3 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #1e3a52;
    font-weight: 700;
    text-align: left;
    border: none;
    padding: 0;
}

.kb-card-body p {
    margin: 0;
    font-size: 13.5px;
    color: #4a6478;
    line-height: 1.55;
    text-align: left;
}

.kb-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: #1e7db3;
    margin-top: 2px;
    flex: 0 0 auto;
}

.kb-card:hover .kb-card-cta {
    text-decoration: underline;
}

.kb-card.kb-card--featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
    border-color: #bcd8ef;
    background: linear-gradient(135deg, #f0f7fd, #fafcff);
}

.kb-card.kb-card--featured .kb-card-icon {
    font-size: 36px;
    margin-top: 2px;
}

.kb-card.kb-card--featured .kb-card-body h3 {
    font-size: 16px;
}

@media (max-width: 640px) {
    .kb-cards-grid {
        grid-template-columns: 1fr;
    }
    .kb-card.kb-card--featured {
        grid-column: span 1;
        flex-direction: column;
    }
}

