/* --- Diagnostic Card Section: строгий премиальный стиль, компактно, на всю ширину, без скруглений --- */
.diagnostic-card-section {
    padding: 0px 0 32px 0;
    background: #faf7ef;
    position: relative;
    z-index: 2;
    width: 100%;
    ;
    box-sizing: border-box;
}

.diagnostic-card-section:before {
    content: "";
    display: block;
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #85855A 100%);
}

.diagnostic-card {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #85855A;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 36px 0 36px 0;
    color: #fff;
    text-align: center;
    z-index: 1;
    border-bottom: 2px solid #bfbfa0;
}

.diagnostic-card-bg {
    display: none;
}

.diagnostic-card-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.diagnostic-card-icon {
    margin-bottom: 20px;
    opacity: 0.8;
    display: inline-block;
    vertical-align: middle;
}

.diagnostic-card-title {
    font-family: 'Prata', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    font-weight: 400;
    color: #F4E3C1;
    text-transform: uppercase;
}

.diagnostic-card-desc {
    font-size: 1.05rem;
    margin-bottom: 22px;
    line-height: 1.6;
    color: #f4f4e6;
}

.diagnostic-card-list {
    list-style: none;
    margin: 14px 0 14px 0;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.diagnostic-card-list li {
    position: relative;
    padding-left: 1.1em;
    margin-bottom: 6px;
    font-size: 1em;
    font-weight: 400;
    color: #fff;
}

.diagnostic-card-list li:before {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    background: #fff4d2;
    border-radius: 0;
    position: absolute;
    left: 0;
    top: 0.45em;
    opacity: 0.7;
}

.diagnostic-card-btn {
    margin-top: 10px;
    background: #fff4d2;
    color: #85855A;
    border: none;
    padding: 13px 35px;
    font-size: 17px;
    font-family: inherit;
    border-radius: 0;
    font-weight: 600;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.14s;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    border: 1.5px solid #bfbfa0;
}

.diagnostic-card-btn-secondary {
    display: inline-block;
    padding: 13px 32px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    background: #ffffff00;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    text-decoration: none;
}

.diagnostic-card-btn-secondary:hover,
.diagnostic-card-btn-secondary:focus {
    background: #ffffff;
    color: #85855A;
    border-color: #85855A;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .diagnostic-card-btn-secondary {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .diagnostic-card-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .diagnostic-card-btn {
        width: 100%;
    }
}

.diagnostic-card-btn:hover {
    background: #fff;
    color: #6c6c44;
    transform: translateY(-1px) scale(1.03);
    border-color: #fff4d2;
}

/* --- Diagnostic Modal --- */
.diagnostic-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.diagnostic-modal.active {
    display: flex;
    animation: fadeInModal 0.3s;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.diagnostic-modal-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 20, 0.32);
    z-index: 0;
    animation: fadeInModal 0.3s;
}

.diagnostic-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #222;
    border-radius: 0;
    max-width: 410px;
    width: 96vw;
    padding: 32px 22px 20px 22px;
    box-shadow: 0 10px 42px rgba(133, 133, 90, 0.14);
    animation: modalPopIn 0.33s cubic-bezier(.42, 1.8, .6, 1);
    border: 2px solid #bfbfa0;
}

@keyframes modalPopIn {
    from {
        transform: translateY(60px) scale(.92);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.diagnostic-modal-close {
    position: absolute;
    top: 0px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #85855A;
    cursor: pointer;
    opacity: 0.66;
    transition: opacity 0.15s;
    z-index: 2;
}

.diagnostic-modal-close:hover {
    opacity: 1;
}

/* --- Diagnostic Form --- */
.diagnostic-form {
    margin-top: 10px;
}

.diagnostic-form .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.diagnostic-form label {
    font-size: 1rem;
    color: #85855A;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.diagnostic-form input,
.diagnostic-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #e7e3d6;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    background: #faf7ef;
    margin-top: 2px;
    transition: border-color 0.2s;
    color: #222;
}

.diagnostic-form input:focus,
.diagnostic-form textarea:focus {
    border-color: #85855A;
    outline: none;
    background: #fff;
}

.diagnostic-form textarea {
    height: 80px;
    resize: vertical;
}

.diagnostic-form .submit-btn {
    background: #85855A;
    color: #fff;
    border: none;
    padding: 12px 0;
    font-size: 1.05rem;
    border-radius: 0;
    width: 100%;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.18s;
    border: 1.5px solid #bfbfa0;
    text-transform: uppercase;
}

.diagnostic-form .submit-btn:hover {
    background: #6c6c44;
    border-color: #fff4d2;
}

/* --- Notification --- */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #85855A;
    color: #fff;
    padding: 16px 28px;
    border-radius: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20000;
    box-shadow: 0 6px 24px rgba(133, 133, 90, 0.14);
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid #bfbfa0;
}

.notification.active {
    display: block;
    opacity: 1;
    animation: fadeInNotification 0.3s;
}

@keyframes fadeInNotification {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* --- Адаптивность --- */
@media (max-width: 900px) {
    .diagnostic-card-content {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .diagnostic-card {
        padding: 40px 0 25px 0;
    }

    .diagnostic-card-btn {
        padding: 13px 15px;
    }

    .diagnostic-card-title {
        font-size: 19px;
    }

    .diagnostic-modal-content {
        padding: 10px 2px 8px 2px;
        border-width: 1px;
    }

    .notification {
        top: 10px;
        right: 8px;
        padding: 13px 10px;
        font-size: 14px;
        border-width: 1px;
    }

    .diagnostic-card-desc p {
        font-size: 1.2rem;
    }
}



.cta-diagnostic-section {
    background: #85855A;
    border-top: 2px solid #bfbfa0;
    border-bottom: 2px solid #bfbfa0;
    padding: 44px 0 36px 0;
    margin-top: 0;
}

.cta-diagnostic-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-diagnostic-title {
    font-family: 'Prata', serif;
    font-size: 2rem;
    font-weight: 00;
    color: #F4E3C1;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.cta-diagnostic-text {
    font-size: 1.08rem;
    color: #ffffff;
    margin-bottom: 28px;
    line-height: 1.5;
}

.cta-diagnostic-btn {
    background: #fff4d2;
    color: #85855A;
    border: 1.5px solid #bfbfa0;
    border-radius: 0;
    padding: 13px 35px;
    font-size: 1.08rem;
    font-family: inherit;
    font-weight: 600;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.14s, border-color 0.18s;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.cta-diagnostic-btn:hover {
    background: #fff;
    color: #6c6c44;
    transform: translateY(-1px) scale(1.03);
    border-color: #fff4d2;
}

@media (max-width: 600px) {
    .cta-diagnostic-section {
        padding: 30px 0 30px 0;
    }

    .cta-diagnostic-title {
        font-size: 1.2rem;
    }

    .cta-diagnostic-btn {
        padding: 12px 10px;
        font-size: 1rem;
    }
}