/**
 * ND54 — публичная страница вступления (apply.php), CRM-стандарт.
 */
body.nd54-page-apply {
    --nd54-apply-navy: #1e3a8a;
    --nd54-apply-accent: #10b981;
    --nd54-apply-text: #1f2937;
    --nd54-apply-muted: #6b7280;
    --nd54-apply-border: #e5e7eb;
    --nd54-apply-bg: #f3f4f6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--nd54-apply-bg) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--nd54-apply-text);
}

body.nd54-page-apply::before {
    display: none !important;
}

body.nd54-page-apply .nd54-apply-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    box-sizing: border-box;
}

body.nd54-page-apply .nd54-apply-header {
    background: #1e3a8a !important;
    background-image: none !important;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px 12px 0 0;
}

body.nd54-page-apply .nd54-apply-header__logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

body.nd54-page-apply .nd54-apply-header__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

body.nd54-page-apply .nd54-apply-header__sub {
    margin: 8px 0 0;
    font-size: 0.95rem;
    opacity: 0.92;
    color: #e2e8f0;
}

body.nd54-page-apply .nd54-apply-card {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

body.nd54-page-apply .nd54-apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 28px 36px;
    align-items: start;
}

body.nd54-page-apply .nd54-apply-form-col h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

body.nd54-page-apply .nd54-apply-form-col .lead-text {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

body.nd54-page-apply .nd54-apply-field {
    position: relative;
    margin-bottom: 16px;
}

body.nd54-page-apply .nd54-apply-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 2;
    pointer-events: none;
}

body.nd54-page-apply .nd54-apply-field input {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0 14px 0 42px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    box-sizing: border-box;
}

body.nd54-page-apply .nd54-apply-field input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

body.nd54-page-apply .nd54-apply-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #10b981;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

body.nd54-page-apply .nd54-apply-submit:hover {
    background: #059669;
}

body.nd54-page-apply .nd54-apply-home-link {
    display: inline-block;
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
}

body.nd54-page-apply .nd54-apply-home-link:hover {
    color: #1f2937;
    text-decoration: underline;
}

body.nd54-page-apply .nd54-apply-reviews__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}

body.nd54-page-apply .nd54-apply-testimonial {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #f3f4f6;
}

body.nd54-page-apply .nd54-apply-testimonial__quote {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #d1d5db;
    font-size: 1rem;
}

body.nd54-page-apply .nd54-apply-testimonial__text {
    margin: 0;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: normal;
    padding-right: 24px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

body.nd54-page-apply .nd54-apply-testimonial__author {
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
}

body.nd54-page-apply .nd54-apply-hero-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    object-fit: cover;
    max-height: 220px;
}

body.nd54-page-apply h1,
body.nd54-page-apply h2,
body.nd54-page-apply p,
body.nd54-page-apply a,
body.nd54-page-apply label {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 767.98px) {
    body.nd54-page-apply .nd54-apply-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 20px 16px 28px;
    }

    body.nd54-page-apply .nd54-apply-header {
        padding: 28px 16px;
        border-radius: 12px 12px 0 0;
    }

    body.nd54-page-apply .nd54-apply-header__title {
        font-size: 1.2rem;
    }
}
