/* Info Pages Styles - Claude AI Style */

.info-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.info-header {
    text-align: center;
    margin-bottom: 60px;
}

.info-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.info-meta {
    display: flex;
    justify-content: center;
    gap: 300px;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    color: #666;
    font-size: 14px;
}

.info-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-content {
    line-height: 1.8;
    color: #374151;
    font-size: 16px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.info-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    text-align: left;
}

.info-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
    text-align: left;
}

.info-content p {
    /* 👇 БЫЛО 20px. Ставим 10px.
       Текст станет плотнее, дыры между абзацами исчезнут. */
    margin-bottom: 10px;
}

.info-content ul, .info-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.info-content li {
    margin-bottom: 10px;
}

.info-content a {
    color: #3b82f6;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

/* Custom Language Selector - macOS style */
.custom-lang-wrapper {
    position: relative;
    display: inline-block;
}

.custom-lang-trigger {
    padding: 6px 32px 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 120px;
    position: relative;
}

.custom-lang-trigger:hover {
    border-color: #d1d5db;
}

.custom-lang-trigger.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-lang-arrow {
    position: absolute;
    right: 10px;
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
    pointer-events: none;
}

.custom-lang-trigger.active .custom-lang-arrow {
    transform: rotate(180deg);
}

.custom-lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fafafa;
    border-radius: 8px;
    padding: 4px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    min-width: 120px;
}

.custom-lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-lang-option {
    padding: 8px 12px;
    color: #1a1a1a;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.custom-lang-option:hover {
    background: #f3f4f6;
}

.custom-lang-option.selected {
    background: #e5e7eb;
}

/* Hide original select */
.language-selector {
    display: none;
}

/* =========================================================
   FIXES AND RESPONSIVE (МОБИЛЬНАЯ АДАПТАЦИЯ)
   ========================================================= */

/* 1. Стили для пунктов "1. Порядок..." */
.info-content .info-heading {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-top: 32px !important;
    margin-bottom: 4px !important;
}

/* 2. Стандартная мобильная версия (До 768px включительно) */
/* 👇 МЫ ВЕРНУЛИ 768px, КАК ТЫ ПРОСИЛ */
@media (max-width: 768px) {
    .info-container {
        padding: 90px 20px 40px 20px;
    }

    .info-title {
        font-size: 32px;
        margin-bottom: 20px;
        word-wrap: break-word;
    }

    .info-meta {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        /* Для телефонов ставим маленький отступ по умолчанию */
        gap: 20px;
        flex-wrap: wrap;
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e7eb;
    }

    .info-header {
        margin-bottom: 30px;
    }

    .info-content {
        font-size: 15px;
    }

    .info-content h2 {
        font-size: 24px;
        margin-top: 30px;
    }
}

/* 3. СПЕЦ-ПАТЧ ДЛЯ ПЛАНШЕТОВ (iPad Mini и т.д.) */
/* Это работает ПОВЕРХ блока 768px.
   Если экран шире 600px (то есть это не телефон), мы возвращаем широкий отступ. */
@media (min-width: 600px) and (max-width: 768px) {
    .info-meta {
        gap: 300px !important; /* 🔥 Возвращаем красоту как на компе */
    }
}