/* ============================================
   MEDIA PAGE — Стили страницы медиа-партнёрства
   ============================================ */

.media-hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.media-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.media-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 550px;
    margin: 0 auto;
}

/* Сетка критериев */
.criteria-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: center !important;
    align-items: stretch !important;
    max-width: 1000px !important;
    margin: 0 auto 60px !important;
    padding: 0 20px !important;
}

.criteria-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    flex: 1 1 250px !important;
    max-width: 300px !important;
    min-width: 200px !important;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    display: block !important;
    width: auto !important;
}

.criteria-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.criteria-card .icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.criteria-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.criteria-card p {
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.5;
}

/* Преимущества */
.benefits {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.benefits h2 {
    margin-bottom: 32px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 28px 20px;
    flex: 1 1 200px;
    max-width: 260px;
}

.benefit-item .icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.benefit-item h4 {
    margin-bottom: 6px;
}

.benefit-item p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Шаблон заявки */
.template-box {
    max-width: 650px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.template-box h2 {
    margin-bottom: 10px;
}

.template-box .sub {
    opacity: 0.7;
    margin-bottom: 20px;
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    user-select: all;
    white-space: pre-wrap;
}

/* ----- КНОПКИ ----- */
.template-box .btn-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
    width: auto !important;
}

.template-box .btn-group a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.template-box .btn-group a:first-child {
    background: #5865F2 !important;
    color: #fff !important;
    border: none !important;
}

.template-box .btn-group a:first-child:hover {
    background: #4752c4 !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.template-box .btn-group a:last-child {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.template-box .btn-group a:last-child:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* CTA секция */
.cta-section {
    text-align: center;
    padding: 40px 20px 80px;
}

.cta-section h2 {
    margin-bottom: 10px;
}

.cta-section p {
    opacity: 0.75;
    margin-bottom: 24px;
}

.cta-section a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    background: #5865F2 !important;
    color: #fff !important;
    border: none !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: none !important;
}

.cta-section a:hover {
    background: #4752c4 !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
    text-decoration: none !important;
}