/* ============================================================
   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, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Декоративное свечение на фоне */
.p24-hero-new::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

@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;
    position: relative;
    z-index: 1;
}

.p24-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.p24-hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 32px;
}

/* ============ QUICK LINKS (Кнопки быстрого доступа) ============ */
.p24-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.p24-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.p24-quick-btn i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.p24-quick-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #ffffff;
}

/* ============ AI КАРТОЧКА ============ */
.p24-ai-card-hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.p24-ai-card-hero:hover {
    transform: translateY(-5px);
}

.p24-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.p24-ai-card-hero h5 {
    color: #1e293b;
    font-size: 1.3rem;
}

.p24-ai-input-hero {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
    gap: 8px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s;
}

.p24-ai-input-hero:focus-within {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.p24-ai-input-hero input {
    border: 0;
    background: transparent;
    outline: 0;
    flex: 1;
    font-size: 15px;
    padding: 10px 0;
    min-width: 0;
    color: #1e293b;
}

.p24-ai-input-hero button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.p24-ai-input-hero button:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.p24-chip {
    display: inline-block;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 100px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.p24-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.p24-ai-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* ============ СЕКЦИИ СЕРВИСОВ ============ */
.p24-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.p24-service-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.p24-service-card-mini:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    color: #2563eb;
}

.p24-service-icon-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 20px;
    flex-shrink: 0;
}

.p24-group-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: all 0.2s ease;
}

.p24-group-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: #e2e8f0;
}

.p24-group-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.p24-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
    flex-shrink: 0;
}

.p24-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p24-group-list li {
    border-bottom: 1px solid #f1f5f9;
}

.p24-group-list li:last-child {
    border-bottom: 0;
}

.p24-group-list a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    transition: all 0.2s ease;
}

.p24-group-list a:hover {
    color: #2563eb;
    padding-left: 4px;
}

/* ============ МОДАЛКА ============ */
.p24-modal-content {
    border-radius: 16px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.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: 16px !important;
        width: 100%;
        overflow-x: hidden;
    }

    .p24-hero-new {
        padding: 24px !important;
        border-radius: 20px !important;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 24px;
    }

    .p24-hero-title {
        font-size: 1.8rem !important;
    }

    .p24-hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

    .p24-quick-links {
        gap: 8px;
    }

    .p24-quick-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 10px;
        font-size: 0.85rem;
    }

    .p24-ai-card-hero {
        width: 100%;
        padding: 20px !important;
    }
}