body{
    font-family:-apple-system,BlinkMacSystemFont,sans-serif;
    width:95%;
    max-width:420px;
    margin:auto;
    padding:8px;
    font-size:14px;
}
h3{
    margin:8px 0;
    text-align: center;
}
h4{
    margin:10px 0 4px 0;
}
input,select{
    width:100%;
    padding:6px;
    margin:4px 0;
    font-size:14px;
    border:1px solid #ccc;
    border-radius:6px;
}
button{
    width:49%;
    padding:8px;
    margin-top:6px;
    font-size:14px;
    border-radius:6px;
}
.row{
    display:flex;
    gap:6px;
}
.search-box{
    position:relative;
}
.dropdown{
    position:absolute;
    width:100%;
    max-height:160px;
    overflow-y:auto;
    border:1px solid #ccc;
    border-radius:6px;
    background:#fff;
    display:none;
    z-index:10;
}
.dropdown div{
    padding:6px;
    cursor:pointer;
}
.dropdown div:hover{
    background:#f2f2f2;
}
.small-label{
    font-size:13px;
    font-weight:bold;
    margin-top:4px;
}
.result{
    font-size:18px;
    font-weight:bold;
    margin-top:10px;
}
.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.reload-btn{
    width:auto;
    padding:4px 8px;
    font-size:16px;
    border-radius:6px;
}
/* кнопки */
.row button{
flex:1;
padding:10px;
font-size:14px;
border:none;
border-radius:8px;
cursor:pointer;
}

/* розрахувати */
.btn-calc{
background:#28a745;
color:#fff;
}

.btn-calc:hover{
background:#218838;
}

/* очистити */
.btn-clear{
background:#ccc;
color:#000;
}

.btn-clear:hover{
background:#bbb;
}
.nav{
display:flex;
margin-top:15px;
gap:10px;
}

.nav-btn{
flex:1;
padding:10px;
border:none;
border-radius:10px;
background:#ddd;
cursor:pointer;
font-weight:bold;
}

.nav-btn.active{
background:#28a745;
color:#fff;
}
