/* ----- БАННЕР (без изменений) ----- */
.dg-banner-container {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #0d2546 0%, #163e75 70%, #1a4a8c 100%);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    box-shadow: 0 12px 35px rgba(13, 37, 70, 0.3);
    margin-bottom: 40px;
	padding: 0;
}

.dg-banner-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.65;
}
.check-group{
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
}
#offerta-block.error-field {
    color: #ff4d4d;
}
.dg-banner-content {
    flex: 1;
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.dg-banner-text h2 {
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.dg-banner-text h2 span {
    color: #00d4ff;
}

.dg-banner-btn {
    background: #fff;
    color: #0d2546;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.2);
    white-space: nowrap;
}

.dg-banner-btn:hover {
    background: #ffffff;
    color: #163e75;
    box-shadow: 0 5px 16px rgba(255, 255, 255, 0.25);
}

.dg-banner-image-wrapper {
    width: 35%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: flex;
        justify-content: flex-end;
}
.dg-success{
    display:none;
    text-align:center;
    padding:40px 20px;
    animation:fadeIn .45s ease;
}

.dg-success.active{
    display:block;
}

.success-icon{
    width:90px;
    height:90px;
    margin:0 auto 25px;
    border-radius:50%;
    background:#00c853;
    color:#fff;
    font-size:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    transform:scale(.4);
    animation:pop .5s .15s forwards cubic-bezier(.17,1.7,.52,.98);
    box-shadow:0 15px 40px rgba(0,200,83,.35);
}

.dg-success h3{
    margin-bottom:10px;
    font-size:30px;
}

.dg-success p{
    color:#666;
    line-height:1.6;
}

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

@keyframes pop{
    to{
        transform:scale(1);
    }
}
.dg-banner-image-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, #163e75 0%, rgba(22, 62, 117, 0) 100%);
    z-index: 3;
    pointer-events: none;
}

.dg-banner-img {
    /* width: 100%; */
    height: 300px;

    object-fit: cover;
    object-position: center 0%;
}

@media (max-width: 1024px) {
    .dg-banner-text h2 {
        font-size: 18px;
    }
    .dg-banner-content {
        padding: 25px 30px;
    }
}

@media (max-width: 768px) {
    .dg-banner-container {
        flex-direction: column;
        min-height: auto;
    }
    .dg-banner-content {
        padding: 30px 24px;
        order: 1;
    }
    .dg-banner-text h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .dg-banner-btn {
        width: 100%;
        text-align: center;
    }
    .dg-banner-image-wrapper {
        display: none;
        width: 100%;
        max-width: 100%;
        height: 160px;
        order: 2;
        
    }
    .dg-banner-image-wrapper::before {
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, #163e75 0%, rgba(22, 62, 117, 0) 100%);
    }
}

/* ============================================
            НОВЫЙ БЛОК: КРИТЕРИИ ОТБОРА (ЛЕКТОР)
            ============================================ */
.dg-criteria-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 48px 32px;
    box-shadow: 0 4px 20px rgba(13, 37, 70, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(22, 62, 117, 0.06);
}

.dg-criteria-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.dg-criteria-header .icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0d2546, #1a4a8c);
    border-radius: 12px;
    flex-shrink: 0;
}

.dg-criteria-header .icon-badge svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #00d4ff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dg-criteria-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0d2546;
    letter-spacing: -0.5px;
}

.dg-criteria-header h3 span {
    color: #1a4a8c;
    font-weight: 600;
}

.dg-criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dg-criteria-card {
    background: #f8faff;
    border-radius: 12px;
    padding: 20px 22px 22px 22px;
    border: 1px solid #eef3fa;
    transition: all 0.25s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dg-criteria-card:hover {
    border-color: #c5d8f0;
    background: #f5f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 37, 70, 0.06);
}

.dg-criteria-card .num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #0d2546;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.dg-criteria-card .text {
    flex: 1;
}

.dg-criteria-card .text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0d2546;
    margin-bottom: 3px;
}

.dg-criteria-card .text p {
    font-size: 14px;
    color: #3d5470;
    line-height: 1.45;
    font-weight: 400;
}

.dg-criteria-card .text p .highlight {
    color: #1a4a8c;
    font-weight: 600;
}

.dg-criteria-card .text .tag {
    display: inline-block;
    background: #e1ebf9;
    color: #163e75;
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    border-radius: 20px;
    line-height: 22px;
    margin-top: 4px;
}

/* Карточка "Договор" — особый стиль */
.dg-criteria-card.contract-card {
    background: linear-gradient(135deg, #f0f7ff, #e6effa);
    border-color: #b8cee8;
}

.dg-criteria-card.contract-card .num {
    background: #00a3cc;
}

.dg-criteria-card.contract-card .text strong {
    color: #0a3b6b;
}

.dg-criteria-card.contract-card .text .contract-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #1a4a8c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px dashed rgba(26, 74, 140, 0.25);
    transition: border-color 0.2s;
}

.dg-criteria-card.contract-card .text .contract-link:hover {
    border-bottom-color: #1a4a8c;
}

.dg-criteria-card.contract-card .text .contract-link svg {
    width: 18px;
    height: 18px;
    stroke: #1a4a8c;
    stroke-width: 2;
    fill: none;
}

/* Адаптив для критериев */
@media (max-width: 1024px) {
    .dg-criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dg-criteria-section {
        padding: 32px 30px 38px 30px;
    }
    .dg-page-wrapper{
        padding: 0 12px;
    }
}

@media (max-width: 640px) {
    .dg-criteria-grid {
        grid-template-columns: 1fr;
    }
    .dg-criteria-section {
        padding: 24px 18px 30px 18px;
    }
    .dg-criteria-header h3 {
        font-size: 20px;
    }
    .dg-criteria-header .icon-badge {
        width: 38px;
        height: 38px;
    }
    .dg-criteria-card {
        padding: 16px 18px;
    }
}

/* ----- ПОП-АП (без изменений) ----- */
.dg-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 37, 70, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    padding: 15px;
}

.dg-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dg-popup-window {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    border-radius: 16px;
    padding: 35px 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.dg-popup-window::-webkit-scrollbar {
    width: 6px;
}
.dg-popup-window::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
    margin: 15px 0;
}
.dg-popup-window::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: background 0.2s ease;
}
.dg-popup-window::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dg-popup-overlay.active .dg-popup-window {
    transform: translateY(0);
}

.dg-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #8a9bb4;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.dg-popup-close:hover {
    color: #0d2546;
}

.dg-popup-window h3 {
    font-size: 24px;
    color: #0d2546;
    margin-bottom: 6px;
    font-weight: 700;
}

.dg-popup-window .subtitle {
    font-size: 14px;
    color: #627b9b;
    margin-bottom: 20px;
    line-height: 1.4;
}

.dg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}

@media (max-width: 600px) {
    .dg-form-grid {
        grid-template-columns: 1fr;
    }
}

.dg-form-group {
    margin-bottom: 14px;
    position: relative;
}

.dg-form-group.full-width {
    grid-column: 1 / -1;
}

.dg-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #163e75;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dg-form-group input,
.dg-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0d2546;
    outline: none;
    transition: border-color 0.2s;
}

.dg-form-group input:focus,
.dg-form-group textarea:focus {
    border-color: #1e569e;
}

.dg-form-group input.error-field {
    border-color: #ff4d4d !important;
    background-color: #fff6f6;
}

.dg-error-message {
    color: #ff4d4d;
    font-size: 11px;
    margin-top: 3px;
    display: none;
}

.dg-form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.dg-submit-btn {
    width: 100%;
    background: #163e75;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.dg-submit-btn:hover {
    background: #1e569e;
}

@media (max-width: 480px) {
    .dg-popup-window {
        padding: 25px 20px;
    }
    .dg-popup-window h3 {
        font-size: 20px;
    }
}