/* ============================================================
   GET_MAIN.CSS - PORTAL24
   ============================================================ */

.p24-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
    width: 100%;
    box-sizing: border-box;
}

/* ============ HERO SECTION ============ */
.p24-hero-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #eef0f3;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .p24-hero-new {
        grid-template-columns: 1fr 420px;
        align-items: center;
    }
}

.p24-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p24-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 12px;
}

.p24-hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

/* ============ AI КАРТОЧКА ============ */
.p24-ai-card-hero {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
}

.p24-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
}

.p24-ai-input-hero {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 12px;
    padding: 6px 6px 6px 16px;
    gap: 8px;
}

.p24-ai-input-hero input {
    border: 0;
    background: transparent;
    outline: 0;
    flex: 1;
    font-size: 14px;
    padding: 8px 0;
    min-width: 0;
}

.p24-ai-input-hero button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.p24-ai-input-hero button:hover {
    background: #1d4ed8;
}

.p24-chip {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    background: #f1f3f5;
    color: #495057;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.p24-chip:hover {
    background: #e9ecef;
}

.p24-ai-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eef0f3;
}

/* ============ СЕКЦИИ СЕРВИСОВ ============ */
.p24-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.p24-service-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    height: 100%;
}

.p24-service-card-mini:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.p24-service-icon-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e7f0ff;
    color: #2563eb;
    font-size: 18px;
    flex-shrink: 0;
}

.p24-group-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: all 0.2s ease;
}

.p24-group-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.p24-group-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.p24-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e7f0ff;
    color: #2563eb;
    font-size: 20px;
    flex-shrink: 0;
}

.p24-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p24-group-list li {
    border-bottom: 1px solid #f1f3f5;
}

.p24-group-list li:last-child {
    border-bottom: 0;
}

.p24-group-list a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    transition: color 0.15s ease;
}

.p24-group-list a:hover {
    color: #2563eb;
}

/* ============ МОДАЛКА ============ */
.p24-modal-content {
    border-radius: 16px;
    border: 0;
    overflow: hidden;
}

.p24-modal-header {
    background: #2563eb;
    color: #fff;
}

/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================================ */
@media (max-width: 991.98px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }

    .p24-main-container {
        padding: 12px !important;
        width: 100%;
        overflow-x: hidden;
    }

    .p24-hero-new {
        padding: 20px !important;
        border-radius: 16px !important;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .p24-hero-title {
        font-size: 1.6rem !important;
    }

    .p24-hero-subtitle {
        font-size: 0.95rem !important;
    }

    .p24-ai-card-hero {
        width: 100%;
        padding: 16px !important;
    }
}