.konvertus-container {
    max-width: 980px;
    margin: 40px auto;
    padding: 28px;
    border: 1px solid #dfe3eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    font-family: Inter, system-ui, sans-serif;
}

.konvertus-top {
    display: flex;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 20px;
}

.konvertus-dropzone {
    flex: 1;
    min-height: 60px;
    border: 2px dashed #cfd7e6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fafcff;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.konvertus-dropzone:hover,
.konvertus-dropzone.dragover {
    border-color: #3b49df;
    background: #f2f5ff;
}

.konvertus-right {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.konvertus-label-small {
    font-size: 14px;
    color: #667085;
    margin-bottom: 6px;
    font-weight: 600;
}

.konvertus-select {
    width: 100%;
    height: 54px;
    border-radius: 12px;
    border: 1px solid #d0d7e2;
    background: #fff;
    padding: 0 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}









.konvertus-btn {
    position: relative; /* Важно для позиционирования слоя */
    z-index: 1; /* Чтобы текст остался сверху */
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(90deg, #7036be 0%, #269ef1 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden; /* Чтобы черный цвет не вылезал за скругление */
}

/* Создаем черный фон */
.konvertus-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000000;
    z-index: -1; /* Прячем под текст */
    opacity: 0; /* Изначально прозрачный */
    transition: opacity 0.3s ease; /* Плавное проявление */
}

/* При наведении делаем черный слой видимым */
.konvertus-btn:hover::before {
    opacity: 1;
}

.konvertus-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}



















.konvertus-hidden-input {
    display: none;
}

.konvertus-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 18px;
    display: none;
}

.konvertus-progress-bar {
    height: 100%;
    width: 0%;
    background: #3b49df;
    transition: width .2s linear;
}

.konvertus-files {
    margin-bottom: 18px;
}

.konvertus-file {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    font-size: 15px;
    color: #344054;
    font-weight: 500;
}

.konvertus-results {
    margin-top: 18px;
}

.konvertus-result-item {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #f9fafb;
}

.konvertus-download-link {
    color: #3b49df;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}

.konvertus-download-link:hover {
    text-decoration: underline;
}



.konvertus-zip-btn {
    position: relative; 
    z-index: 1; 
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 50px;
    border-radius: 20px;
    background: linear-gradient(90deg, #7036be 0%, #269ef1 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden; 
}

/* Создаем черный фон */
.konvertus-zip-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000000;
    z-index: -1; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

/* При наведении делаем черный слой видимым и держим текст белым */
.konvertus-zip-btn:hover::before {
    opacity: 1;
}

.konvertus-zip-btn:hover {
    color: #fff; /* Удерживает белый цвет текста */
}




.konvertus-select {
    width: 100%;
    height: 50px;
    border-radius: 18px;
    border: 2px solid #2746d8;
    background-color: #fff;
    color: #111827;
    padding: 0 62px 0 22px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='38' height='30' viewBox='0 0 38 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 15L14 25L34 5' stroke='%2300b341' stroke-width='7' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 30px 20px;
}

.konvertus-label-small {
    font-size: 15px;
    color: #111827;
    margin-bottom: 8px;
    font-weight: 800;
}


.konvertus-options-row {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.konvertus-option-item {
    flex: 1;
    min-width: 0;
}

.konvertus-quality-item {
    flex: 0 0 115px;
}

.konvertus-quality,
.konvertus-select {
    width: 100%;
}

.konvertus-label-small {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}


.konvertus-quality {
    width: 100%;
    height: 50px;
    border-radius: 18px;
    border: 2px solid #2746d8;
    background-color: #fff;
    color: #111827;
    padding: 0 48px 0 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='38' height='30' viewBox='0 0 38 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 15L14 25L34 5' stroke='%2300b341' stroke-width='7' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 30px 20px;
}

.konvertus-quality:focus,
.konvertus-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 70, 216, 0.12);
}

.konvertus-quality-unavailable {
    text-align: center;
    padding-right: 0;
    background-image: none !important;
    opacity: 0.7;
    cursor: default;
}


@media (max-width: 768px) {
    .konvertus-top {
        flex-direction: column;
    }

    .konvertus-right {
        width: 100%;
    }

    .konvertus-container {
        padding: 18px;
    }
}
