/* Оверлей (затемнение) */
.conv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
}

.conv-modal-overlay.active {
    display: block;
}

/* Модальное окно */
.conv-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conv-modal.active {
    right: 0;
}

/* Шапка */
.conv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9edf2;
    background: #ffffff;
}

.conv-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e2a3e;
    margin: 0;
}

.conv-modal-close {
    background: #f7f7f7;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    line-height: 14px;
    color: #5a6874;
}

.conv-modal-close:hover {
    background: #f7f7f7;
    color: #1e2a3e;
    transform: scale(1.05);
}

/* Тело */
.conv-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f7f7f7;
}

.conv-modal-body p {
    color: #334155;
    line-height: 1.5;
    margin-bottom: 16px;
}

.conv-converter-placeholder {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-top: 16px;
}

.conv-converter-placeholder h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #0f172a;
}

.conv-input-group:not(:last-child) {
    margin-bottom: 16px;
}

.conv-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

.conv-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    transition: all 0.2s;
    height: 34px;
}
.conv-input-group select {
    border: solid 1px #d4d4d4;
    border-radius: 3px;
    padding-left: 5px;
    width: 80px;
    color: #777;
    height: 34px;
    cursor: pointer;
}
.conv-input-group input:focus {
    outline: none;
    /*border-color: #c8180f;*/
}

.conv-input-group {
    gap: 10px;
}

.conv-converter-descr {
    margin-top: 10px; 
    font-size: 12px; 
    color: #64748b;
}

/* Футер */
.conv-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9edf2;
    background: #ffffff;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.conv-btn-secondary {
    background: #f2f4f8;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #334155;
    transition: all 0.2s;
}

.conv-btn-primary {
    background: #c8180f;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

/*.conv-btn-primary:hover {
    background: #0f172a;
}

.conv-btn-secondary:hover {
    background: #e6e9f0;
}*/

@media (max-width: 480px) {
    .conv-modal {
        width: 100%;
        right: -100%;
    }
}