* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7fbea;
    color: #333;
    min-height: 100vh;
    border-top: 3px solid #4a90e2;
}

.top-bar {
    padding: 25px 50px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    background-color: #2c2c2c;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
}

.brand-icon::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 5px;
    height: 10px;
    background-color: white;
}

.brand-icon::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 17.5px;
    width: 5px;
    height: 16px;
    background-color: white;
}

.brand-icon span {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 5px;
    height: 8px;
    background-color: white;
}

.brand-text {
    font-size: 26px;
    font-weight: 700;
    color: #ff5757;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-size: 52px;
    font-weight: 700;
    color: #ff5757;
    margin-bottom: 50px;
    text-align: center;
}

.form-container {
    background-color: #e0e0e0;
    padding: 60px 80px;
    border-radius: 25px;
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    margin-bottom: 35px;
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

label {
    font-size: 22px;
    font-weight: 600;
    color: #ff5757;
    min-width: 130px;
}

input[type="number"] {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    background-color: white;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

input[type="number"]:focus {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

button {
    padding: 18px 60px;
    background-color: #ff5757;
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(255, 87, 87, 0.3);
}

button:hover {
    background-color: #ff4040;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 87, 87, 0.4);
}

button:active {
    background-color: #e74c3c;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 87, 87, 0.3);
}

.result {
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.result-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.result-text:last-child {
    border-bottom: none;
}

.result-text:first-child {
    font-weight: 700;
    font-size: 22px;
    color: #ff5757;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 20px 25px;
    }
    
    .brand-icon {
        width: 35px;
        height: 35px;
    }
    
    .brand-text {
        font-size: 22px;
    }
    
    .main-title {
        font-size: 40px;
        margin-bottom: 35px;
    }
    
    .form-container {
        padding: 40px 35px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 100%;
    }
    
    label {
        min-width: auto;
        font-size: 20px;
    }
    
    input[type="number"] {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    button {
        font-size: 20px;
        padding: 16px 50px;
        width: 100%;
        max-width: 250px;
    }
}